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
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 9: Line 9:
== JSON format ==
== JSON format ==
<div class="treeview">
<div class="treeview">
* {{nbt|compound}} The root tag
* {{nbt|compound}}
** {{nbt|string|format_version}}: The 3-part schema version used in the file, usually  <code>1.16.110</code> or <code>1.21.90</code>.
** {{nbt|string|format_version}}: The 3-part schema version used in the file, usually  <code>1.16.110</code> or <code>1.21.90</code>.
** {{nbt|compound|minecraft:fog_settings}}
** {{nbt|compound|minecraft:fog_settings}}
Line 33: Line 33:
**** {{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]].
****** {{nbt|float|max_density}}: The multiplier on how much fog disrupts the light, between 0.0 (no fog) and 1.0 (opaque). Can be key framed in 26.30.{{upcoming}}
****** {{nbt|compound|}}{{nbt|float|max_density}}: The multiplier on how much fog disrupts the light, between 0.0 (no fog) and 1.0 (opaque).
****** {{nbt|bool|uniform}}: Whether fog density is distributed evenly across all heights.
****** {{nbt|compound|}}{{nbt|bool|uniform}}: Whether fog density is distributed evenly across all heights.
****** {{nbt|float|zero_density_height}}: The height in blocks that fog will begin to appear, when <code>uniform</code> is false. Can be key framed in 26.30.{{upcoming}}
****** {{nbt|compound|}}{{nbt|float|zero_density_height}}: The height in blocks that fog will begin to appear, 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. Can be key framed in 26.30.{{upcoming}}
****** {{nbt|compound|}}{{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 [[Minecraft:Fire Resistance]] effect.
Line 43: Line 43:
**** {{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|compound|}}{{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. Can be key framed in 26.30.{{upcoming}}
****** {{nbt|compound|}}{{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|compound|}}{{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. Can be key framed in 26.30.{{upcoming}}
****** {{nbt|compound|}}{{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 [[Minecraft: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>.
***** {{nbt|compound|air}}
***** {{nbt|compound|air}}
****** {{nbt|compound|}}{{nbt|float|henyey_greenstein_g}}: Controls the distribution of scattered light in air, between -1.0 and 1.0, defaults to 0.75. Positive values result in forward-scattering while negative values result in backward-scattering. Can be key framed in 26.30.{{upcoming}}
****** {{nbt|compound|}}{{nbt|float|henyey_greenstein_g}}: Controls the distribution of scattered light in air, between -1.0 and 1.0, defaults to 0.75. Positive values result in forward-scattering while negative values result in backward-scattering.
***** {{nbt|compound|water}}
***** {{nbt|compound|water}}
****** {{nbt|compound|}}{{nbt|float|henyey_greenstein_g}}: Controls the distribution of scattered light in water, between -1.0 and 1.0, defaults to 0.6. Positive values result in forward-scattering while negative values result in backward-scattering. Can be key framed in 26.30.{{upcoming}}
****** {{nbt|compound|}}{{nbt|float|henyey_greenstein_g}}: Controls the distribution of scattered light in water, between -1.0 and 1.0, defaults to 0.6. Positive values result in forward-scattering while negative values result in backward-scattering.
</div>{{Fnlist}}
</div>{{Fnlist}}



Latest revision as of 11:08, 15 September 2026

Template:Exclusive

Minecraft: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.

Configurations for volumetric fog can be key framed to change effects with the Minecraft:daylight cycle. Instead of specifying one float or color, they are objects containing keys and the values. The key can be 0-1, corresponding to the daylight cycle (1 is noon). Values are linearly interpolated between keys.

JSON format

Template:Fnlist

History

Template:HistoryTable

External links

Navigation

Template:Navbox resource packs Template:Navbox Bedrock Edition