Add or Remove Fog Settings for Players
The /fog command in Minecraft Bedrock Edition lets you add or remove a fog settings file for specific players. It requires cheats to be enabled and a Game Directors permission level to run.
Map makers and server administrators use this command to control which fog settings a player perceives at any given time. By assigning a custom identifier to each fog setting you push, you can easily track and delete that specific fog later.
/fog <victim: target> push <fogId: string> <userProvidedId: string>Add fog
/fog <victim: target> <mode: delete> <userProvidedId: string>Remove fog
| Argument | Type | What it means |
|---|---|---|
fogId | string | A `string` that specifies the fog. |
mode | delete | Delete mode |
userProvidedId | string | Required. A `string` that identifies the fog to use. |
victim | target | A `string` or `target selector` to identify which player perceives the fog. |
/fog @s push custom_fog_1 my_first_fogAdds a fog setting specified as custom_fog_1 to yourself and labels it as my_first_fog.
/fog @p push spooky_mist haunted_zoneApplies the spooky_mist fog setting to the nearest player with the custom identifier haunted_zone.
/fog @a push dense_cloud global_weatherPushes the dense_cloud fog setting to every player in the world under the ID global_weather.
/fog Alex push dark_cave_fog underground_idAdds the dark_cave_fog setting specifically to the player named Alex with the label underground_id.
/fog @r push arena_smoke match_fogAssigns the arena_smoke fog setting to one random player and names the instance match_fog.
/fog @a[r=20] delete haunted_zoneRemoves the fog setting labeled haunted_zone from all players within a 20-block radius.
Minecraft Java Edition does not have a /fog command, so this feature is exclusive to Bedrock Edition.
You must have the Game Directors permission level and cheats enabled in your world to use the /fog command.
The fogId tells the game which fog setting file to use, while the userProvidedId is a custom name you pick so you can target and delete that exact fog later.
No, Java Edition has no command with this name, as /fog is only available in Minecraft Bedrock Edition.
/clone/daylock/difficulty/fill/gamerule/locate/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather