BetaReadonlyentityReadonlyisReadonlytypeStatic ReadonlycomponentWorld mutationA stack of fog definition identifiers to set on the player's fog stack (e.g. ['minecraft:fog_bamboo_jungle']). Maximum of 16 entries.
Optionaltag: stringAn optional tag to associate with the new entries, used to target them with pop or remove.
World mutationAn array of tag strings associated with fog settings on the stack.
World mutationOptionaltag: stringAn optional tag identifying which entry to pop. If provided, searches the stack from top to bottom and removes the most recently pushed entry with this tag. If omitted, removes the most recently pushed entry regardless of tag.
Returns the identifier of the popped fog definition, or undefined if the stack was unchanged.
World mutationThe identifier of the fog definition to push onto the stack (e.g. 'minecraft:fog_bamboo_jungle').
Optionaltag: stringAn optional tag used to label this fog definition on the stack, allowing it to be targeted by pop or remove. If omitted, the entry is stored with the tag 'untagged'.
Returns the zero-based index at which the fog definition was inserted into the stack.
World mutationOptionaltag: stringAn optional tag identifying which the entries to remove. If omitted, clears all fog definitions regardless of tag.
Returns true if at least one entry was removed, or false if the stack was unchanged.
Provides access to the fog definitions stack of a player entity, allowing scripts to push, pop, remove, and query active fog definitions.