Commands, also known as cheats, are inputs you can use to control your world in Minecraft. Here's a complete list of Commands for the Java and Bedrock Editions and how to use them!
List of Contents
Command | Description |
---|---|
/clear | Clears items from player inventory. |
/clone | Clones blocks from one region to another. |
/difficulty | Sets the difficulty level. |
/effect | Add or remove status effects. |
/enchant | Adds an enchantment to a player's selected item. |
/execute | Executes a command on behalf of one or more entities. |
/experience | Adds or removes player experience. |
/fill | Fills all or parts of a region with a specific block. |
/function | Runs commands found in the corresponding function file. |
/gamemode | Sets a player's game mode. |
/gamerule | Sets or queries a game rule value. |
/give | Gives an item to a player. |
/help | Provides help/list of commands. |
/kick | Kicks a player from the server. |
/kill | Kills entities (players, mobs, etc.). |
/list | Lists players on the server. |
/locate | Displays the coordinates for the closest strucutre of a given type. In Java Edition, you can also locate specific biomes and points of interest. |
/loot | Drops the given loot table into the specified inventory or into the world. |
/me | Displays a message about yourself. |
/msg | Sends a private message to one or more players. |
/particle | Creates a particle emitter |
/playsound | Plays a sound. |
/reload | Reloads all function files from all behavior packs. |
/say | Sends a message in the chat to other players. |
/schedule | Schedules an action to be executed once an area is loaded. |
/scoreboard | Tracks and displays scores for various objectives. |
/setblock | Changes a block to another block. |
/setworldspawn | Sets the world spawn. |
/spawnpoint | Sets the spawn point for a player. |
/spreadplayers | Teleports entities to random locations. |
/stopsound | Stops a sound. |
/summon | Summons an entity. |
/tag | Manages tags stored in entities. |
/teleport | Teleports entities (players, mobs, etc.). |
/tell | Sends a private message to one or more players. |
/tellraw | Sends a JSON message to players. |
/time | Changes or queries the world's game time. |
/title | Controls screen titles. |
/tp | Teleports entities (players, mobs, etc.). |
/w | Sends a private message to one or more players. |
/weather | Sets the weather. |
/xp | Adds or removes player experience. |
Command | Description |
---|---|
/advancement | Grants or revokes a player's advancements. |
/attribute | Adds, removes, or queries an entity's attribute. |
/bossbar | Modifies or queries bossbars. |
/data | Gets, merges, modifies, or removes NBT data. |
/datapack | Allows players to control downloaded data packs. |
/debug | Starts or stops a debugging session |
/defaultgamemode | Sets the default game mode of a world. |
/forceload | Force loads a chunk. |
/item | Modifies items in inventories. |
/jfr | Starts or stops JFR profiling. |
/place | Places a feature, structure, template, or jigsaw (part of a structure) at a given location. |
/publish | Opens a world to the LAN so other players can join in. |
/recipe | Gives or takes player recipes. |
/seed | Displays the world's seed. |
/spectate | Sets a player's game mode to spectator mode. |
/team | Modifies teams. |
/teammsg | Sends a message to a team. |
/tm | Sends a message to a team. |
/trigger | Sets a trigger that activates. |
/worldborder | Modifies world border. |
Command | Description |
---|---|
/? | Provides help/list of commands. |
/alwaysday | Locks and unlocks the day-night cycle. |
/camerashake | Applies shaking to the players' camera with a specified intensity and duration. |
/clearspawnpoint | Removes the spawn point for a player. |
/connect | Attempts to connect to the websocket server on the provided URL. |
/damage | Apply damage to the specified entities. |
/daylock | Locks and unlocks the day-night cycle. |
/deop | Revokes operator status from a player. |
/dialogue | Opens NPC dialogue for a player. |
/event | Triggers an event for the specified object(s) |
/fog | Add or remove fog settings file |
/mobevent | Controls what mob events are allowed to run. |
/music | Allows you to control playing music tracks. |
/op | Grants operator status to a player. |
/playanimation | Makes one or more entities play a one-off animation. |
/replaceitem | Replaces items in inventories. |
/ride | Makes entities ride other entities, stops entities from riding, makes rides evict their riders, or summons rides or riders. |
/setmaxplayers | Sets the maximum number of players for this game session. |
/structure | Saves or loads a structure in the world. |
/testfor | Counts entities (players, mobs, items, etc.) matching specified conditions. |
/testforblock | Tests whether a certain block is in a specific location. |
/testforblocks | Tests whether the blocks in two regions match. |
/tickingarea | Add, remove, or list ticking areas. |
/titleraw | Controls screen titles with JSON messages. |
/toggledownfall | Toggles the weather. |
/wsserver | Attempts to connect to the websocket server on the provided URL. |
A Command that changes the current weather. If you visit a Snowy Tundra biome while the weather is set to rain, it will snow instead.
Command | Effect |
---|---|
/weather clear | Clear the weather |
/weather rain | Set the weather to rain |
/weather thunder | Set the weather to thunderstorm |
This Command locks and unlcoks the current time. This lets you enjoy a particular time of the day.
Command | Effect |
---|---|
/gamerule doDaylightCycle false | Stops time |
/gamerule doDaylightCycle true | Resumes the day-night cycle |
This sets the world's time.
Command | Effect |
---|---|
/time set day | Changes time to daytime |
/time set night | Changes time to nighttime |
Instead of "day" or "night", you can also input numbers that corresponds the exact time you want. For example, you can type in /time set 12000 to change the time to sunset.
You can place (or replace) blocks within a given range using this Command.
Command | Effect |
---|---|
/fill [x y z] [x y z] [block name] | Place blocks specified in [block id] from the coordinates entered in the first [xyz] up to the coordinates in the second [xyz]. |
This moves the target player to a specific spot.
Command | Effect |
---|---|
/tp [player name] [x y z] | Teleports the target player to the coordinates in [x y z]. You can also teleport yourself by entering @p as the target player. |
This sets the location where you spawn upon first entering a world.
Command | Effect |
---|---|
/setworldspawn [x y z] | Spawn at the given coordinates upon entering the world. |
This gives an item to a target player.
Command | Effect |
---|---|
/give [player name] [item name] [quantity] | Gives the specified item to the target player. You can also give yourself an item by entering @p as the target player. |
This Command gives you the coordinates of the nearest structure that you specify. In Java Edition, you need to add the word "structure" after locate.
Command | Effect |
---|---|
/locate endcity | Gives the coordinates of the nearest End City |
/locate fortress | Gives the coordinates of the nearest Nether Fortress |
/locate mineshaft | Gives the coordinates of the nearest Mineshaft |
/locate monument | Gives the coordinates of the nearest Ocean Monument |
/locate stronghold | Gives the coordinates of the nearest Stronghold |
/locate temple | Gives the coordinates of the nearest Jungle Temple, Desert Pyramid, Witch Hut, or Igloo. |
/locate village | Gives the coordinates of the nearest Village |
Commands are features you can use to control your world and the entities within. These Commands are very useful for when you want to test things out or want to make the game easier. However, we don't recommend using Commands while playing in Survival Mode, as these will trivialize the game and upset the game balance.
To use Commands, you have to turn on Cheats in your world first. Commands are available for both Java and Bedrock editions, though some Commands are exclusive to an edition.
Open your chat window by pressing T or / (forward slash) for PC players or by pressing D-pad right for Console players. Input your Command and press the Enter key to activate it.
With the 1.13 update for the PC version, a short list of Commands will be displayed immediately after typing /. Valid arguments (or values) will also be shown as you type a Command that can also be selected quickly by pressing the TAB key.
You can also use Command Blocks to handle more complex Commands! You can give your character Command Blocks by typing /give @p command_block. Place the Command Block and use it to customize the Command it executes.
Command Blocks are activated using Redstone signals emitted by objects like buttons or pressure plates.
List of All Commands and Cheats
Genshin Impact Walkthrough & Guides Wiki
Pokemon TCG Pocket (PTCGP) Strategies & Guides Wiki
Call of Duty Black Ops 6 (BO6) Walkthrough & Guides Wiki
Honkai: Star Rail Walkthrough & Guides Wiki
Dragon Quest 3 HD-2D Remake (DQ3) Walkthrough & Guides Wiki
Metaphor: ReFantazio Walkthrough & Guides Wiki
Dragon Age: The Veilguard Walkthrough & Guides Wiki
Pokemon Scarlet and Violet (SV) Walkthrough & Guides Wiki
Wuthering Waves Walkthrough & Guides Wiki
Zenless Zone Zero Walkthrough & Guides Wiki
Super Smash Bros. Ultimate Walkthrough & Guides Wiki
Pokemon Legends: Arceus Walkthrough & Guides Wiki
New Pokemon Snap Walkthrough & Guides Wiki
Elden Ring Shadow of the Erdtree Walkthrough & Guides Wiki
Hyrule Warriors: Age of Calamity Walkthrough & Guides Wiki
The Legend of Zelda: Breath of the Wild Walkthrough & Guides Wiki
FF7 Remake Walkthrough & Guides Wiki
Mojang ©2009-2022. "Minecraft" is a trademark of Mojang Synergies AB
The copyrights of videos of games used in our content and other intellectual property rights belong to the provider of the game.
The contents we provide on this site were created personally by members of the Game8 editorial department.
We refuse the right to reuse or repost content taken without our permission such as data or images to other sites.