/fog Command in Minecraft Bedrock Edition

Add or Remove Fog Settings for Players

Bedrock EditionWorld & BlocksPermission: Game DirectorsCheats: Yes

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.

Syntax (2 forms)

  1. /fog <victim: target> push <fogId: string> <userProvidedId: string>

    Add fog

  2. /fog <victim: target> <mode: delete> <userProvidedId: string>

    Remove fog

Arguments

ArgumentTypeWhat it means
fogIdstringA `string` that specifies the fog.
modedeleteDelete mode
userProvidedIdstringRequired. A `string` that identifies the fog to use.
victimtargetA `string` or `target selector` to identify which player perceives the fog.

Examples

Tips

Common mistakes

Bedrock vs Java

Minecraft Java Edition does not have a /fog command, so this feature is exclusive to Bedrock Edition.

FAQ

What permission level is needed to use the /fog command?

You must have the Game Directors permission level and cheats enabled in your world to use the /fog command.

Why does the /fog command ask for two different IDs when adding fog?

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.

Can I use the /fog command in Minecraft Java Edition?

No, Java Edition has no command with this name, as /fog is only available in Minecraft Bedrock Edition.

Related commands

/clone/daylock/difficulty/fill/gamerule/locate/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather