跳转至

Fog

文档版本:1.21.0.24

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_versionformat_version
format_version:
string
minecraft:fog_settingsobject
The definition of a single fog.
minecraft:fog_settings
descriptionobject
The identifying description of this fog settings.
description
identifieridentifier
The identifier for these fog settings. The identifier must include a namespace.
identifier:
string
distanceobject
The distance fog settings for different camera locations.
distance
airobject
The fog settings when the camera is in the air.
air
fog_startnumber
The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.
fog_endnumber
The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'.
fog_colorstring
The color that the fog will take on.
render_distance_typestring
Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.
transition_fogobject
Additional fog data which will slowly transition to the distance fog of current biome.
transition_fog
init_fogobject
Initial fog that will slowly transition into water distance fog of the biome when player goes into water.
init_fog
fog_colorstring
The color that the fog will take on.
fog_startnumber
The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.
fog_endnumber
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_typestring
Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.
min_percentnumber
The minimum progress of fog transition.
mid_secondsnumber
The time takes to reach certain progress('mid_percent') of fog transition.
mid_percentnumber
The progress of fog transition after 'mid_seconds' seconds.
max_secondsnumber
Total amount of time takes to complete fog transition.
weatherobject
The fog settings for when the camera is in the air with active weather (rain, snow, etc..).
weather
waterobject
The fog settings when the camera is in water.
water
lavaobject
The fog settings when the camera is in lava.
lava
lava_resistanceobject
The fog settings when the camera is in lava and the player has the lava resistance effect active.
lava_resistance
powder_snowobject
The fog settings when the camera is inside a Powder Snow block.
powder_snow
volumetricobject
The volumetric fog settings.
volumetric
densityobject
The density settings for different camera locations.
density
airobject
Fog density values as light passes through air blocks.
air
max_densitynumber
The maximum amount of opaqueness that the ground fog will take on. A value from [0.0, 1.0].
max_density_heightnumber
The height in blocks that the ground fog will become it's maximum density.
zero_density_heightnumber
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.
uniformboolean
When set to true, the density will be uniform across all heights.
waterobject
Fog density values as light passes through water blocks.
water
lavaobject
Fog density values as light passes through lava blocks.
lava
lava_resistanceobject
Fog density values as light passes through lava blocks while the player has lava resistance.
lava_resistance
media_coefficientsobject
The coefficient settings for the volumetric fog in different blocks.
media_coefficients
airobject
Fog coefficient values while light passes through air.
air
absorptionarray
Proportion of light that is absorbed (lost) per block.
absorption
0..0number
1..1number
2..2number
absorptionstring
Proportion of light that is absorbed (lost) per block.
scattering
Proportion of light that is scattered per block.
waterobject
Fog coefficient values while light passes through water.
water
cloudobject
Fog coefficient values while light passes through clouds.
cloud