Minecraft seems like a simple game at first, but there’s a lot more to it than meets the eye. From collecting resources and crafting items to fighting hostile mobs and exploring massive worlds, there’s always something new to discover. However, keeping track of every gameplay mechanic can feel overwhelming, especially if you’re just starting out.
That’s where Minecraft commands come in. These built-in instructions let you control different aspects of your world, whether you want to switch to Creative mode, teleport to a location, change the weather, summon mobs, or give yourself valuable items. Some players use them to make Survival easier, while others rely on them to experiment with builds and create custom experiences.
To help you get started, here’s a guide to the most useful Minecraft cheats and commands, including how to enable cheats, how to use commands, and examples for different gameplay situations.
All Minecraft commands at a glance
| Command | What it does |
|---|---|
| /help [CommandName] | Provides detailed info about a specific console command. |
| /give <player><item>[Amount]</item></player> | Provides a player with a certain amount of a selected item. |
| /tp [TargetPlayer] x y x | Moves a player to a selected portion of the map. |
| /kill [TargetPlayer] | Kills a mob or player. |
| /gamemode creative | Switches your entire server to Creative Mode. |
| /weather WeatherType | Change the weather to Rain, Thunder or Snow. |
| /time | Change the time of day. |
| /gamemode survival | Switch your server to Survival Mode. |
| /difficulty [Setting] | Change difficulty between Peaceful, Easy, Normal and Hard. |
| /summon | Create the target object. |
| /seed | Display the code for your current seed. |
| /atlantis | Increase the amount of water in your world. |
| /falldamage | Enable or disable fall damage. |
| /instantmine | Mine anything in the world with one single click. |
| /firedamage | Enable or disable fire damage. |
| /waterdamage | Enable or disable water damage. |
| /dropstore | Store your inventory in a chest. |
| /duplicate | Make a duplicate of the item you are holding. |
| /instantplant | Grow plants instantly. |
| /gamerule keepInventory true | Keep all your items after death. |
| /gamerule doDaylightCycle false | Puts an end to the day/night cycle. |
| /ride | Makes one entity ride another in Java Edition. |
| /Freeze | Freezes all mobs. |
| /superheat | Turns all items into their smelted form. |
| /itemdamage | Stops wear damage on all weapons. |
| /locate [location name] | Gives you the coordinates for generated structures. |
| /camerashake | Shakes the camera. |
| /clearspawnpoint | Removes spawn point for a player. |
| /connect | Connects to the WebSocket servers on the provided URL. |
| /deop | Revokes operator status for players. |
| /dialogue | Opens NPC dialogue for players. |
| /effect | Adds or removes status effects. |
| /enchant | Adds an enchantment to the player’s selected item. |
| /event | Triggers an event for the specific object(s). |
| /fill | Fills all or parts of a region with a specific block. |
| /fog | Adds or removes a fog setting file. |
| /damage | Applies damage to entities. |
| /execute summon | Allows customisation of a newly spawned entity. |
How to enable cheats in Minecraft
In order to use Minecraft commands, you’ll first need to enable cheats in your world. The process is quite different for Java and Bedrock Edition, so let’s walk you through the steps for each version.
1. Java Edition
New World
- Launch Minecraft.
- Choose Singleplayer from the main menu.
- Click on Create New World.
- Open the More World Options menu.
- Locate “Allow Cheats” and switch it ON.
- Create your world to start playing.
Existing World
- Load your single-player world.
- Press Esc to open the pause menu.
- Choose Open to LAN.
- Turn Allow Cheats to ON.
- Hit Start LAN World.
Note:
Keep in mind that enabling cheats through Open to LAN is temporary. The setting applies to that LAN session rather than permanently changing the world’s original cheat setting.
2. Bedrock Edition
New World
- Open Minecraft.
- Click on Create New World and open settings.
- Find the Cheats section.
- Switch on the Activate Cheats option.
- Create the world and begin playing.
Existing World
- Return to the world selection screen and find your saved world.
- Click on the pencil icon right next to the world to edit its settings.
- Scroll down to the Cheats section.
- Switch on Activate Cheats.
- Load the world.
Note:
Enabling cheats in a Bedrock world disables achievements for that world. This change cannot be reversed for that save, so consider making a backup before enabling cheats.
How to use Minecraft commands
Once cheats have been enabled, running commands in Minecraft is quite simple. Just follow these steps to enter and execute any command in your world:
- Press T on your Keyboard or open the chat window.
- Type / followed by the command you want to execute.
- Enter any additional information necessary for the command, such as the player’s name or coordinates.
- Press Enter or the send button on your platform to execute the command.
- The command will be executed as long as you have the required permissions.
Before experimenting with commands, there are a few things worth remembering. Minecraft commands and their effects can depend on whether you’re playing Java or Bedrock Edition. If you’re unsure what commands you have access to on a multiplayer or single-player server, you can type / in the chat window to see what’s available.
All Minecraft game mode and difficulty commands
Minecraft offers four main game modes, each designed for a different playstyle. You can switch between them using the /gamemode command.
1. Game mode commands
Minecraft lets you choose between four game modes: Survival, Creative, Adventure, and Spectator. Here are the commands to switch between each of them.
| Game mode | Command |
|---|---|
| Survival | /gamemode survival |
| Creative | /gamemode creative |
| Adventure | /gamemode adventure |
| Spectator | /gamemode spectator |
2. Difficulty commands
You can also adjust the difficulty of your world. There are four levels, and each affects the game in multiple ways.
| Difficulty | Command |
|---|---|
| Peaceful | /difficulty peaceful |
| Easy | /difficulty easy |
| Normal | /difficulty normal |
| Hard | /difficulty hard |
3. Minecraft teleport commands
| Command | What it does |
|---|---|
| /tp @s 100 70 100 | Teleports you to the coordinates X=100, Y=70, Z=100. |
| /tp PlayerName 100 70 100 | Teleports a specific player to the specified coordinates. |
| /tp @s PlayerName | Teleports yourself to another player’s location. |
| /tp Player 1 Player2 | Teleports Player1 to Player2’s location. |
| /tp @a 100 70 1000 | Brings all players to the specified coordinates. |
| /tp @s ~ ~10 ~ | Moves yourself 10 blocks upward from your current position. |
| /tp @s ~10 ~ ~ | Moves yourself 10 blocks along the positive X-axis. |
| /tp @s ~ ~ ~ 10 | Moves yourself 10 blocks along the positive Z-axis. |
4. Minecraft item and inventory commands
If you want to get specific items, clear your inventory, or enchant your equipment, these commands can save you plenty of time.
| Command | Effect |
|---|---|
| /give <player> <item> [amount] | Gives a player a specific quantity of items. |
| /clear [player] [item] [maxCount] | Removes items from an inventory. |
| /item | Modifies or replaces items in block or entity slots. |
| /replaceitem | Replaces a specific item in inventory in Bedrock edition. |
| /enchant <player> <enchantment> [level] | Applies an enchantment to the item a player is holding. |
| /loot | Generates or distributes loot from loot tables. |
| /recipe take <player> [recipe] | Takes away a crafting recipe for a player in Java Edition. |
| /recipe give <player> [recipe] | Gives access to a crafting recipe for a player in Java Edition. |
| /summon <entity> | Summons a mob or entity. |
5. Minecraft weather and time commands
| Command | Effect |
|---|---|
| /weather clear | Clears all weather effects in the world. |
| /weather thunder | Begins a thunderstorm. |
| /weather rain | Begins rain. |
| /time query gametime | Shows the total in-game time elapsed in ticks. |
| /time query daytime | Shows the current time of day in ticks. |
| /time query day | Shows the number of in-game days passed. |
| /time add <ticks> | Pushes the in-game time by the specified number of ticks. |
| /time set day | Sets the time to day. |
| /time set noon | Sets the time to noon. |
| /time set night | Sets the time to night. |
| /time set midnight | Sets the time to midnight. |
| /time set sunrise | Sets the time to sunrise. |
| /time set sunset | Sets the time to sunset. |
6. Minecraft mob and entity commands
| Command | Effect |
|---|---|
| /summon <entity> [position] | Spawns a mob or an entity at your specified coordinates. |
| /kill <target> | Eliminates a targeted mob or player. |
| /tp <target> <destination> | Teleports a mob, entity, or player to another location. |
| /effect give <target> <effect> [seconds] [amplifier] | Applies any kind of status effect to a player or a mob. |
| /tag <target> add <name> | Adds a tag to an entity in the world. |
| /ride <target> mount <vehicle> | Displays the entity’s data in Java Edition. |
| /data get entity <target>= | Makes one entity ride another in Java Edition. |
| /gamerule doMobSpawning false | Stops the spawn of mobs. |
| /gamerule doMobLoot false | Stops the loot drop from mobs. |
7. Minecraft building and world-editing commands
If you enjoy building structures, designing custom maps, or experimenting with different blocks, world-editing commands can make the process much faster.
| Command | Effect |
|---|---|
| /fill <from> <to> <block> | Completely fills an area with a specific block between two sets of coordinates. |
| /setblock <position> <block> | Replaces or places a single block at your specified coordinate. |
| /clone <begin> <end> <destination> | Copies blocks from one area to another. |
| /fill <from> <to> air | Clears blocks in a selected area. |
| /fill <from> <to> <block> outline | Builds the outer boundary of an area without filling the interior. |
| /fill <from> <to> <block> hollow | Creates a structure made out of walls with the chosen block. |
| /place structure <structure> | Places a supported structure at your location. |
| /fill <from> <to> <block> replace <filter> | Replaces specific blocks in a selected area. |
| /place feature <feature> | Place a supported structure at your location. |
| /place structure <structure> | Generates a supported world feature. |
| /locate structure <structure> | Finds the coordinates of a specified structure. |
Wrapping up
Minecraft commands are a useful way to control your world, whether you want to teleport to specific locations, give yourself diamonds, change the weather, summon mobs, or build structures faster. To use them, enable cheats in your world or make sure you have the required permissions on a multiplayer server, then enter your chosen command in the chat window.
Remember that Java and Bedrock Edition don’t support every command in exactly the same way. Check the syntax for your edition before using a command, and consider making a backup before experimenting with commands that modify large parts of your world.



