How to Use the Fog Command in Minecraft
This Minecraft tutorial explains how to use the /fog command with screenshots and step-by-step instructions.
You add or remove a specific type of fog in your world using the /fog command in Minecraft. Let's explore how to use this cheat (game command).
Subscribe
Supported Platforms
The /fog command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
Java Edition (PC/Mac) | No |
Pocket Edition (PE) | Yes (1.16.100) |
Xbox 360 | No |
Xbox One | Yes (1.16.100) |
PS3 | No |
PS4 | Yes (1.16.100) |
Wii U | No |
Nintendo Switch | Yes (1.16.100) |
Windows 10 Edition | Yes (1.16.100) |
Education Edition | Yes (1.17.30) |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Fog Command
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Fog Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), the /fog command has different syntaxes depending on what you want to do.
To add fog:
/fog <victim> push <fogId> <userProvidedId>
To remove fog (there are two different delete modes - remove and pop):
/fog <victim> remove <userProvidedId>
/fog <victim> pop <userProvidedId>
Definitions
- victim is the name of a player (or a target selector) that you will apply fog to.
- fogId is a string value (usually entered in quotes) that is the Minecraft ID for the type of fog you wish to apply. See list of Fog IDs.
- userProvidedId is a string value (usually entered in quotes) that is the name associated with this specific fog. You will reference this name to add and remove the fog in the game.
Fog Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, the /fog command has different syntaxes depending on what you want to do.
To add fog:
/fog <victim> push <fogId> <userProvidedId>
To remove fog (there are two different delete modes - remove and pop):
/fog <victim> remove <userProvidedId>
/fog <victim> pop <userProvidedId>
Definitions
- victim is the name of a player (or a target selector) that you will apply fog to.
- fogId is a string value (usually entered in quotes) that is the Minecraft ID for the type of fog you wish to apply. See list of Fog IDs.
- userProvidedId is a string value (usually entered in quotes) that is the name associated with this specific fog. You will reference this name to add and remove the fog in the game.
Fog Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, the /fog command has different syntaxes depending on what you want to do.
To add fog:
/fog <victim> push <fogId> <userProvidedId>
To remove fog (there are two different delete modes - remove and pop):
/fog <victim> remove <userProvidedId>
/fog <victim> pop <userProvidedId>
Definitions
- victim is the name of a player (or a target selector) that you will apply fog to.
- fogId is a string value (usually entered in quotes) that is the Minecraft ID for the type of fog you wish to apply. See list of Fog IDs.
- userProvidedId is a string value (usually entered in quotes) that is the name associated with this specific fog. You will reference this name to add and remove the fog in the game.
Fog Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, the /fog command has different syntaxes depending on what you want to do.
To add fog:
/fog <victim> push <fogId> <userProvidedId>
To remove fog (there are two different delete modes - remove and pop):
/fog <victim> remove <userProvidedId>
/fog <victim> pop <userProvidedId>
Definitions
- victim is the name of a player (or a target selector) that you will apply fog to.
- fogId is a string value (usually entered in quotes) that is the Minecraft ID for the type of fog you wish to apply. See list of Fog IDs.
- userProvidedId is a string value (usually entered in quotes) that is the name associated with this specific fog. You will reference this name to add and remove the fog in the game.
Fog Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, the /fog command has different syntaxes depending on what you want to do.
To add fog:
/fog <victim> push <fogId> <userProvidedId>
To remove fog (there are two different delete modes - remove and pop):
/fog <victim> remove <userProvidedId>
/fog <victim> pop <userProvidedId>
Definitions
- victim is the name of a player (or a target selector) that you will apply fog to.
- fogId is a string value (usually entered in quotes) that is the Minecraft ID for the type of fog you wish to apply. See list of Fog IDs.
- userProvidedId is a string value (usually entered in quotes) that is the name associated with this specific fog. You will reference this name to add and remove the fog in the game.
Fog Command in Minecraft Education Edition
In Minecraft Education Edition, the /fog command has different syntaxes depending on what you want to do.
To add fog:
/fog <victim> push <fogId> <userProvidedId>
To remove fog (there are two different delete modes - remove and pop):
/fog <victim> remove <userProvidedId>
/fog <victim> pop <userProvidedId>
Definitions
- victim is the name of a player (or a target selector) that you will apply fog to.
- fogId is a string value (usually entered in quotes) that is the Minecraft ID for the type of fog you wish to apply. See list of Fog IDs.
- userProvidedId is a string value (usually entered in quotes) that is the name associated with this specific fog. You will reference this name to add and remove the fog in the game.
Examples
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Pocket Edition (PE)
To add the fog that has an ID of minecraft:fog_basalt_deltas
to the player named DigMinecraft and assign it the name "DigMinecraft_test1" in Minecraft PE:
/fog DigMinecraft push "minecraft:fog_basalt_deltas" "DigMinecraft_test1"
To remove the fog that was assigned the name "DigMinecraft_test1" from the player named DigMinecraft:
/fog DigMinecraft remove "DigMinecraft_test1"
Example in Xbox One Edition
To add the fog that has an ID of minecraft:fog_hell
to the nearest player and assign it the name "DigMinecraft_test2" in Minecraft Xbox One Edition:
/fog @p push "minecraft:fog_hell" "DigMinecraft_test2"
To remove the fog that was assigned the name "DigMinecraft_test2" from the nearest player:
/fog @p remove "DigMinecraft_test2"
Example in PS4 Edition
To add the fog that has an ID of minecraft:fog_crimson_forest
to all players and assign it the name "DigMinecraft_test3" in Minecraft PS4 Edition:
/fog @a push "minecraft:fog_crimson_forest" "DigMinecraft_test3"
To remove the fog that was assigned the name "DigMinecraft_test3" for all players:
/fog @a remove "DigMinecraft_test3"
Example in Nintendo Switch Edition
To add the fog that has an ID of minecraft:fog_warped_forest
to a random player and assign it the name "DigMinecraft_test4" in Minecraft Nintendo Switch Edition:
/fog @r push "minecraft:fog_warped_forest" "DigMinecraft_test4"
To remove the fog that was assigned the name "DigMinecraft_test4" for a random player:
/fog @r remove "DigMinecraft_test4"
Example in Windows 10 Edition
To add the fog that has an ID of minecraft:fog_the_end
to all players and assign it the name "DigMinecraft_test5" in Minecraft Windows 10 Edition:
/fog @a push "minecraft:fog_the_end" "DigMinecraft_test5"
To remove the fog (using the pop removal mode) that was assigned the name "DigMinecraft_test5" from all players:
/fog @a pop "DigMinecraft_test5"
Example in Education Edition
To add the fog that has an ID of minecraft:fog_soulsand_valley
to the nearest player and assign it the name "DigMinecraft_test6" in Minecraft Education Edition:
/fog @p push "minecraft:fog_soulsand_valley" "DigMinecraft_test6"
To remove the fog that was assigned the name "DigMinecraft_test6" from the nearest player:
/fog @p remove "DigMinecraft_test6"
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For PS4, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
In this example, we will add fog that has an ID of minecraft:fog_basalt_deltas
to the player named DigMinecraft and assign it the name "DigMinecraft_test1" with the following command:
/fog DigMinecraft push "minecraft:fog_basalt_deltas" "DigMinecraft_test1"
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the fog setting will be added.
You will see the message "Fog setting was successfully added for DigMinecraft with id DigMinecraft_test1" appear in the top left corner of the game window to indicate that the command has successfully completed. In this case, DigMinecraft will now see the fog (that normally appears in the Basalt Deltas) in the current Minecraft World, regardless of the biome that DigMinecraft is in.
Congratulations, you have learned how to use the /fog command in Minecraft.