Commands/fog

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Bedrock Edition.
fog
Restrictions

Operator

First introduced

BE 1.16.100 (1.16.100.54)

Used for managing active fog settings for players.

Syntax[edit]

fog <victim: target> push <fogID: string> <userProvidedId: string>
fog <victim: target> <mode: delete> <userProvidedId: string>

Arguments[edit]

<victim: target>: CommandSelector<Actor>

Must be a player name or a target selector
Specifies the entity(s) to be triggered. If not specified, defaults to the command's executor.

fogID: string: basic_string

Must be a string. And it must be either a single word (no spaces) or a quoted string.
Should be in a fog definition name (e.g. minecraft:fog_plains), or fog defined under the Json path "minecraft:fog_settings"."identifier" in the <a_resource_pack>/fogs/<biomes_name>_fog_setting.json file (e.g. fog_plains for plains biome fog).
Specifies the biome fog to display.

<mode: delete>

Must be one of pop and remove.
Specifies whether to remove the fog in pop or remove mode.

userProvidedId: string: basic_string

Must be a string. And it must be either a single word (no spaces) or a quoted string.
Should be in the format of name.

Result[edit]

CommandTriggerBedrock Edition
anythe arguments are not specified correctly Failed
if victim: target fails to resolve to one or more online entities (named players must be online)
On successFog setting successfully added

Output[edit]

CommandEditionSituationSuccess Count
anyBedrock EditionOn fail0
On success1

History[edit]

Bedrock Edition
1.16.100beta 1.16.100.54Added /fog.