Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Fog definition: Difference between revisions

From SAS Gaming Wiki
imported>MinecraftBedrockPlayer7
 
SyncBot (talk | contribs)
Remove broken links to missing pages
Line 1: Line 1:
{{Exclusive|bedrock}}
{{Exclusive|bedrock}}


[[Minecraft:Fog]] settings are stored as JSON files in a resource pack in the {{File|directory|fogs|inline=1}} directory. Multiple fog settings can be created and each [[Minecraft:biome]] can be assigned a fog setting in the [[Minecraft:Resource pack#Biomes|client biome JSON files]]. Fog settings can also be applied with the {{cmd|fog}} command, which will override the biome fog settings.
Fog settings are stored as JSON files in a resource pack in the {{File|directory|fogs|inline=1}} directory. Multiple fog settings can be created and each [[Minecraft:biome]] can be assigned a fog setting in the client biome JSON files. Fog settings can also be applied with the {{cmd|fog}} command, which will override the biome fog settings.


All fog settings are optional, if not specified they will equal to lower settings in the fog stack, first data default values and then hardcoded values. Default fog settings can be specified in the <code>biomes_client.json</code> file which will overwrite all fog settings that are not specified in the resource pack.
All fog settings are optional, if not specified they will equal to lower settings in the fog stack, first data default values and then hardcoded values. Default fog settings can be specified in the <code>biomes_client.json</code> file which will overwrite all fog settings that are not specified in the resource pack.
Line 19: Line 19:
***** {{nbt|int array}}{{nbt|string|fog_color}}: The color of the fog, supports RGB array or HEX string.
***** {{nbt|int array}}{{nbt|string|fog_color}}: The color of the fog, supports RGB array or HEX string.
**** {{nbt|compound|lava}}: Fog settings while the camera is inside [[Minecraft:lava]].
**** {{nbt|compound|lava}}: Fog settings while the camera is inside [[Minecraft:lava]].
**** {{nbt|compound|lava_resistance}}: Fog settings while the camera is inside lava under the [[Minecraft:Fire Resistance]] effect.
**** {{nbt|compound|lava_resistance}}: Fog settings while the camera is inside lava under the Fire Resistance effect.
**** {{nbt|compound|water}}: Fog settings while the camera is inside [[Minecraft:water]].
**** {{nbt|compound|water}}: Fog settings while the camera is inside [[Minecraft:water]].
***** {{nbt|compound|transition_fog}}: Settings for the transition between fogs when the camera has just entered water.
***** {{nbt|compound|transition_fog}}: Settings for the transition between fogs when the camera has just entered water.
Line 27: Line 27:
****** {{nbt|float|mid_percent}}: The progress of fog transition after the specified seconds.
****** {{nbt|float|mid_percent}}: The progress of fog transition after the specified seconds.
****** {{nbt|float|max_seconds}}: Total amount of time it takes to complete transition in seconds, when the transition fog completely disappears.
****** {{nbt|float|max_seconds}}: Total amount of time it takes to complete transition in seconds, when the transition fog completely disappears.
**** {{nbt|compound|weather}}: Fog settings while the camera is inside air during [[Minecraft:precipitation]].
**** {{nbt|compound|weather}}: Fog settings while the camera is inside air during precipitation.
*** {{nbt|compound|volumetric}}:{{Fn|Only in resource packs with <code>"pbr"</code> capability|name=pbr}} Volumetric fog settings exclusive to [[Minecraft:Vibrant Visuals]] and [[Minecraft:ray tracing]].
*** {{nbt|compound|volumetric}}:{{Fn|Only in resource packs with <code>"pbr"</code> capability|name=pbr}} Volumetric fog settings exclusive to [[Minecraft:Vibrant Visuals]] and ray tracing.
**** {{nbt|compound|density}}
**** {{nbt|compound|density}}
***** {{nbt|compound|air}}: Volumetric fog settings while the camera is inside [[Minecraft:air]].
***** {{nbt|compound|air}}: Volumetric fog settings while the camera is inside [[Minecraft:air]].
Line 36: Line 36:
****** {{nbt|float|max_density_height}}: The height in blocks that fog reaches its maximum density value, when <code>uniform</code> is false.
****** {{nbt|float|max_density_height}}: The height in blocks that fog reaches its maximum density value, when <code>uniform</code> is false.
***** {{nbt|compound|lava}}: Volumetric fog settings while the camera is inside [[Minecraft:lava]].
***** {{nbt|compound|lava}}: Volumetric fog settings while the camera is inside [[Minecraft:lava]].
***** {{nbt|compound|lava_resistance}}: Volumetric fog settings while the camera is inside lava under the [[Minecraft:Fire Resistance]] effect.
***** {{nbt|compound|lava_resistance}}: Volumetric fog settings while the camera is inside lava under the Fire Resistance effect.
***** {{nbt|compound|water}}: Volumetric fog settings while the camera is inside [[Minecraft:water]].
***** {{nbt|compound|water}}: Volumetric fog settings while the camera is inside [[Minecraft:water]].
***** {{nbt|compound|weather}}: Volumetric fog settings while the camera is inside air during [[Minecraft:precipitation]].
***** {{nbt|compound|weather}}: Volumetric fog settings while the camera is inside air during precipitation.
**** {{nbt|compound|media_coefficients}}
**** {{nbt|compound|media_coefficients}}
***** {{nbt|compound|air}}: Fog effects applied to light when it passes through [[Minecraft:air]].
***** {{nbt|compound|air}}: Fog effects applied to light when it passes through [[Minecraft:air]].
****** {{nbt|int array}}{{nbt|string|scattering}}: How much of each RGB color of the light is spread by the fog; supports RGB array or HEX string.
****** {{nbt|int array}}{{nbt|string|scattering}}: How much of each RGB color of the light is spread by the fog; supports RGB array or HEX string.
****** {{nbt|int array}}{{nbt|string|absorption}}: How much of each RGB color of the light is absorbed by the fog; supports RGB array or HEX string.
****** {{nbt|int array}}{{nbt|string|absorption}}: How much of each RGB color of the light is absorbed by the fog; supports RGB array or HEX string.
***** {{nbt|compound|cloud}}: Fog effects applied to light when it passes through [[Minecraft:clouds]].
***** {{nbt|compound|cloud}}: Fog effects applied to light when it passes through clouds.
***** {{nbt|compound|water}}: Fog effects applied to light when it passes through [[Minecraft:water]].
***** {{nbt|compound|water}}: Fog effects applied to light when it passes through [[Minecraft:water]].
**** {{nbt|compound|henyey_greenstein_g}}: Exclusive to [[Minecraft:Vibrant Visuals]], requires format version <code>1.21.90</code>.
**** {{nbt|compound|henyey_greenstein_g}}: Exclusive to [[Minecraft:Vibrant Visuals]], requires format version <code>1.21.90</code>.
Line 55: Line 55:
{{HistoryTable
{{HistoryTable
|{{HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.54|Separated fog settings from <code>[[Minecraft:Resource pack#Biomes|biomes_client.json]]</code> in favor of new fog definitions for each biome, with many more customization options.|Added volumetric fog options used for ray tracing.}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.54|Separated fog settings from <code>biomes_client.json</code> in favor of new fog definitions for each biome, with many more customization options.|Added volumetric fog options used for ray tracing.}}
|{{HistoryLine||1.16.200|exp=Caves and Cliffs|dev=beta 1.16.200.52|Added powder snow fog.}}
|{{HistoryLine||1.16.200|exp=Caves and Cliffs|dev=beta 1.16.200.52|Added powder snow fog.}}
|{{HistoryLine||Preview 1.20.60.21|exp=Render Dragon Features for Creators|Added volumetric fog and light shafts to [[Minecraft:Deferred Technical Preview|deferred lighting]].}}
|{{HistoryLine||Preview 1.20.60.21|exp=Render Dragon Features for Creators|Added volumetric fog and light shafts to deferred lighting.}}
|{{HistoryLine||Preview 1.21.10.20|exp=Render Dragon Features for Creators|Volumetric fog density settings are now supported for [[Minecraft:weather]] when a format version of <code>1.21.0</code> or higher is specified.}}
|{{HistoryLine||Preview 1.21.10.20|exp=Render Dragon Features for Creators|Volumetric fog density settings are now supported for weather when a format version of <code>1.21.0</code> or higher is specified.}}
|{{HistoryLine||1.21.90|dev=Preview 1.21.90.20|Added [[Minecraft:Vibrant Visuals]] in stable releases outside of experiments, which allows usage of volumetric fog.}}
|{{HistoryLine||1.21.90|dev=Preview 1.21.90.20|Added [[Minecraft:Vibrant Visuals]] in stable releases outside of experiments, which allows usage of volumetric fog.}}
|{{HistoryLine|||dev=Preview 1.21.90.26|Added <code>henyey_greenstein_g</code> settings to the fog json files, exclusive to [[Minecraft:Vibrant Visuals]].}}
|{{HistoryLine|||dev=Preview 1.21.90.26|Added <code>henyey_greenstein_g</code> settings to the fog json files, exclusive to [[Minecraft:Vibrant Visuals]].}}

Revision as of 15:50, 9 April 2026

Template:Exclusive

Fog settings are stored as JSON files in a resource pack in the Template:File directory. Multiple fog settings can be created and each Minecraft:biome can be assigned a fog setting in the client biome JSON files. Fog settings can also be applied with the Template:Cmd command, which will override the biome fog settings.

All fog settings are optional, if not specified they will equal to lower settings in the fog stack, first data default values and then hardcoded values. Default fog settings can be specified in the biomes_client.json file which will overwrite all fog settings that are not specified in the resource pack.

JSON format

  • Template:Nbt The root tag
    • Template:Nbt: The 3-part schema version used in the file, usually 1.16.110 or 1.21.90.
    • Template:Nbt
      • Template:Nbt
        • Template:Nbt: The identifier for these settings, which can be specified in the Template:File files. Must include a namespace. For a full list of vanilla identifiers that are applied to biomes, see Template:Slink.
      • Template:Nbt: The regular fog settings that are always visible.
        • Template:Nbt: Fog settings while the camera is inside Minecraft:air.
          • Template:Nbt: The distance where fog will begin to appear.
          • Template:Nbt: The distance where fog becomes opaque.
          • Template:Nbt: The type of measuring used for fog distances. When set to render, the above values are measured in decimals as a percentage of the current render distance. When set to fixed, the above values are measured in blocks and the fog distance does not change with the render distance.
          • Template:NbtTemplate:Nbt: The color of the fog, supports RGB array or HEX string.
        • Template:Nbt: Fog settings while the camera is inside Minecraft:lava.
        • Template:Nbt: Fog settings while the camera is inside lava under the Fire Resistance effect.
        • Template:Nbt: Fog settings while the camera is inside Minecraft:water.
          • Template:Nbt: Settings for the transition between fogs when the camera has just entered water.
            • Template:Nbt: Fog settings for the initial fog applied when the camera has just entered water.
            • Template:Nbt: The minimum progress of fog transition.
            • Template:Nbt: The time it takes to reach the mid_percent of fog transition in seconds.
            • Template:Nbt: The progress of fog transition after the specified seconds.
            • Template:Nbt: Total amount of time it takes to complete transition in seconds, when the transition fog completely disappears.
        • Template:Nbt: Fog settings while the camera is inside air during precipitation.
      • Template:Nbt:Template:Fn Volumetric fog settings exclusive to Minecraft:Vibrant Visuals and ray tracing.

Template:Fnlist

History

Template:HistoryTable

External links

Navigation

Template:Navbox resource packs Template:Navbox Bedrock Edition