Fog¶
文档版本:1.21.50.25
UNDOCUMENTED.
架构¶
fog:
{
format_version "format_version"
object "minecraft:fog_settings" : opt
{
object "description" : opt
{
identifier "identifier"
}
object "distance" : opt
{
object "air" : opt
{
number "fog_start" : opt
number "fog_end" : opt
string "fog_color" : opt
string "render_distance_type" : opt
object "transition_fog" : opt
{
object "init_fog" : opt
{
string "fog_color" : opt
number "fog_start" : opt
number "fog_end" : opt
string "render_distance_type" : opt
}
number "min_percent" : opt
number "mid_seconds" : opt
number "mid_percent" : opt
number "max_seconds" : opt
}
}
object "weather" : opt
{
}
object "water" : opt
{
}
object "lava" : opt
{
}
object "lava_resistance" : opt
{
}
object "powder_snow" : opt
{
}
}
object "volumetric" : opt
{
object "density" : opt
{
object "air" : opt
{
number "max_density" : opt
number "max_density_height" : opt
number "zero_density_height" : opt
boolean "uniform" : opt
}
object "water" : opt
{
}
object "lava" : opt
{
}
object "lava_resistance" : opt
{
}
}
object "media_coefficients" : opt
{
object "air" : opt
{
array "absorption" : opt
{
number "0..0" : opt
number "1..1" : opt
number "2..2" : opt
}
string "absorption" : opt
"scattering" : opt
}
object "water" : opt
{
}
object "cloud" : opt
{
}
}
}
}
}
format_version:format_version
minecraft:fog_settings:object- The definition of a single fog.
minecraft:fog_settingsdescription:object- The identifying description of this fog settings.
descriptionidentifier:identifier- The identifier for these fog settings. The identifier must include a namespace.
distance:object- The distance fog settings for different camera locations.
distanceair:object- The fog settings when the camera is in the air.
airfog_start:number- The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.
fog_end:number- The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'.
fog_color:string- The color that the fog will take on.
render_distance_type:string- Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.
transition_fog:object- Additional fog data which will slowly transition to the distance fog of current biome.
transition_foginit_fog:object- Initial fog that will slowly transition into water distance fog of the biome when player goes into water.
init_fogfog_color:string- The color that the fog will take on.
fog_start:number- The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.
fog_end:number- The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'.
render_distance_type:string- Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.
min_percent:number- The minimum progress of fog transition.
mid_seconds:number- The time takes to reach certain progress('mid_percent') of fog transition.
mid_percent:number- The progress of fog transition after 'mid_seconds' seconds.
max_seconds:number- Total amount of time takes to complete fog transition.
weather:object- The fog settings for when the camera is in the air with active weather (rain, snow, etc..).
weatherwater:object- The fog settings when the camera is in water.
waterlava:object- The fog settings when the camera is in lava.
lavalava_resistance:object- The fog settings when the camera is in lava and the player has the lava resistance effect active.
lava_resistancepowder_snow:object- The fog settings when the camera is inside a Powder Snow block.
powder_snowvolumetric:object- The volumetric fog settings.
volumetricdensity:object- The density settings for different camera locations.
densityair:object- Fog density values as light passes through air blocks.
airmax_density:number- The maximum amount of opaqueness that the ground fog will take on. A value from [0.0, 1.0].
max_density_height:number- The height in blocks that the ground fog will become it's maximum density.
zero_density_height:number- The height in blocks that the ground fog will be completely transparent and begin to appear. This value needs to be at least 1 higher than
max_density_height.
uniform:boolean- When set to true, the density will be uniform across all heights.
water:object- Fog density values as light passes through water blocks.
waterlava:object- Fog density values as light passes through lava blocks.
lavalava_resistance:object- Fog density values as light passes through lava blocks while the player has lava resistance.
lava_resistancemedia_coefficients:object- The coefficient settings for the volumetric fog in different blocks.
media_coefficientsair:object- Fog coefficient values while light passes through air.
airabsorption:array- Proportion of light that is absorbed (lost) per block.
absorption0..0:number
1..1:number
2..2:number
absorption:string- Proportion of light that is absorbed (lost) per block.
scattering- Proportion of light that is scattered per block.
water:object- Fog coefficient values while light passes through water.
watercloud:object- Fog coefficient values while light passes through clouds.
cloud