From b9f4cc97c9afd10aff27153eace4046a20732bde Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 7 Jun 2022 21:01:20 +0200 Subject: [PATCH] Updated fogs --- source/resource/fog/fog.json | 69 ++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/source/resource/fog/fog.json b/source/resource/fog/fog.json index 54e8dc18..644c814a 100644 --- a/source/resource/fog/fog.json +++ b/source/resource/fog/fog.json @@ -30,13 +30,13 @@ "properties": { "fog_start": { "title": "Fog Start", - "description": "The distance from the player that the fog will begin to appear. `fog_start` must be less than or equal to `fog_end`.", + "description": "The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.", "type": "number", "minimum": 0 }, "fog_end": { "title": "Fog End", - "description": "The distance from the player that the fog will become fully opaque. `fog_end` must be greater than or equal to `fog_start`.", + "description": "The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'.", "type": "number", "minimum": 0 }, @@ -52,6 +52,71 @@ "description": "Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.", "type": "string", "enum": ["fixed", "render"] + }, + "transition_fog": { + "title": "Transition Fog", + "description": "Additional fog data which will slowly transition to the distance fog of current biome.", + "type": "object", + "default": false, + "properties": { + "init_fog": { + "title": "Initial Fog", + "description": "Initial fog that will slowly transition into water distance fog of the biome when player goes into water.", + "type": "object", + "properties": { + "fog_color": { + "title": "Fog Color", + "description": "The color that the fog will take on.", + "type": "string", + "format": "color-hex", + "examples": ["#FFFFFF"] + }, + "fog_start": { + "title": "Fog Start", + "description": "The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.", + "type": "number", + "minimum": 0 + }, + "fog_end": { + "title": "Fog End", + "description": "The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'.", + "type": "number", + "minimum": 0 + }, + "render_distance_type": { + "title": "Render Distance Type", + "description": "Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.", + "enum": ["fixed", "render"] + } + } + }, + "min_percent": { + "title": "Minimum Percent", + "description": "The minimum progress of fog transition.", + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "mid_seconds": { + "title": "Midpoint Seconds", + "description": "The time takes to reach certain progress('mid_percent') of fog transition.", + "type": "number", + "minimum": 0 + }, + "mid_percent": { + "title": "Midpoint Percent", + "description": "The progress of fog transition after 'mid_seconds' seconds.", + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "max_seconds": { + "title": "Maximum Seconds", + "description": "Total amount of time takes to complete fog transition.", + "type": "number", + "minimum": 0 + } + } } } },