Minecraft commands are very powerful tools that can help you exercise things in Minecraft very rapidly. They tin can even be essential components in the pattern and cosmos of your own mini-games inside a Minecraft world. Some commands are relatively simple to use, whereas some are complex and crave lots of specific information to function correctly. Today we'll share some of our favorites with you!

If yous're excited nigh learning more virtually Minecraft, be sure to bank check out our Minecraft camps and free Minecraft class led live online by an practiced and designed past professionals from Google, Stanford, and MIT.

What are Minecraft commands?

A Minecraft command is a manner to brand something specific happen in a Minecraft world. In that location are many different commands bachelor. There are commands that can give a role player a certain item, change the fourth dimension in the world, teleport an entity, fill an area with blocks, then on. Commands are kind of like a computer language in that they are used by players to tell the game what to exercise. For the game to understand and execute each command given by the histrion, the player must provide proper syntax or else the control will non work every bit intended.

Screen-Shot-2021-09-07-at-3.52.53-PM

How to Utilise Minecraft Commands

A control is executed by typing the control proper name in the Conversation and Commands window and and then pressing the Enter key or clicking the ship push. The departure between a chat message and a command is that commands always start with a slash, e.grand. /help. Although the player tin can printing T or Enter on the keyboard to open the Chat and Commands window, pressing / on the keyboard will also open up the Chat and Commands window but with a slash already added.

Because commands allow players to control what happens in a Minecraft world, commands are considered a cheat.  If you are playing in a Minecraft world with cheats disabled, commands will not work.  If you accept never used a Minecraft command before, follow these steps beneath to practise running your first Minecraft command:

  1. Make a new Artistic world with cheats enabled.
  2. Open the creative inventory and put some items in your hotbar.
  3. Press "/" to open the Chat and Commands window.  Observe that there's already a slash in the text field.
  4. Blazon "clear" so that your text looks like /clear.
  5. Send the bulletin to execute the control.  Detect that unlike chatting, executing a command automatically closes the Chat and Commands window.
  6. Observe your hotbar.  If your control ran correctly, you volition see that the items you acquired in Stride ii are gone.  By executing the command /clear, you cleared all the items from your inventory.  If you instead received an mistake message in the chat, y'all may have typed /clear incorrectly; the game won't understand the command if there are whatever errors in information technology.

Congratulations on running your first command! Yous may accept noticed that after you pressed / to open the Chat and Commands window, a list of commands were displayed instead of the usual chat log. When you are typing commands, Minecraft will automatically suggest commands based on what letters you accept typed.  If yous do not want to blazon the unabridged command proper name, y'all tin can press the Tab key to cycle through the listing suggested by the game. Also, if you demand to run a command you have previously used, yous can press the Up arrow cardinal to whorl through commands you've already executed.

Some commands aren't every bit simple as a single discussion.  Some commands need extra information. These extra pieces of information are called arguments.  One command that needs an statement is /weather. If you send the command /weather in the Chat and Commands window, you will receive an error. That is considering the /atmospheric condition command needs an argument merely none was provided.

When you type /atmospheric condition and then press the spacebar, you'll see a list of suggestions of what argument to type next and two versions of the /weather command. The suggested arguments you lot'll run into are articulate, query, rain, and thunder. The query argument is not like the others, which describe different types of weather.  That's because at that place are two different versions of the /atmospheric condition command.

Ane way to employ the /conditions command is /weather query.  Past running this command, the game will simply country the current weather in the chat. The other mode of using the /weather command is to fix the atmospheric condition. Try changing the conditions using the /weather command like and so:

  1. Run /weather rain; notice that it will start raining in the game.
  2. Run /weather clear; notice that it volition cease raining.
  3. Run /weather thunder 10

The ten in stride 3 is an additional argument for controlling how long the specified weather state will concluding.  In this case, the game volition set the weather to thunder for 10 seconds (Java Edition) or 10 ticks (Boulder Edition) and then return to clear.

Cool Minecraft Commands List

Here we'll share crawly commands from bones to more advanced! Explore the best Minecraft coding for kids courses to learn even more.

Basic Minecraft commands

The following commands are relatively simple ones to get started with. They simply use relatively uncomplicated arguments such as a number and/or suggestions provided by the Chat and Control window. Practice with these commands to get a amend feeling for how to use commands.

i. /assistance

Use the /help command to learn about other commands.  Adding a number statement (e.g. /help 3) will bear witness you in the chat a listing of commands from the virtual control handbook on the folio number you specified.  Instead of adding a number argument, y'all tin can add a control name as an statement (e.g. /help weather) to come across a description of the control and the syntax associated with it.

2. /fourth dimension

Employ the /time command to do unlike deportment associated with time.  You tin set the time with commands like /time fix midnight or /time ready 1200; y'all can fifty-fifty add to the current time with /time add together 1200.

3. /gamerule

Utilize the /gamerule control to toggle different rules in the world.  At that place are many unlike rules to alter; the Conversation and Command screen volition suggest them as arguments.  One such rule is fire damage, which determines whether or not players volition be hurt by fire.  To turn fire impairment on, utilize /gamerule firedamage true; to turn fire harm off, use /gamerule firedamage false.  In that location are many other rules you can experiment with.

Selector required Minecraft commands

This adjacent group of commands are a lilliputian bit more challenging because they require a very specific type of statement called a selector.  Knowing which selector to use is very helpful in using commands to target only sure entities.

4. /tell

Use the /tell command to send a chat message only to a specific player or players.  The outset argument after the /tell command will make up one's mind the histrion or players you lot wish to send the message to.  The game volition automatically propose other players past their gamertags and a list of selectors.  A selector is a preset target or group of targets.  For example, the @a selector targets all players. The second argument is the bulletin yous wish to transport.  This sample command /tell @r hi will send the bulletin "hello" to a random actor.

five. /kill

Apply the /kill command to kill specific entities or players in the world.  Like the /tell control, /kill requires a target.  For case, you can impale all entities with /kill @east.  Yous can alter a selector to limit the targets to a sure subset.  For example, if y'all only desire to kill all the zombies, you would use /impale @e[type=zombie].

6. /give

Use the /give command to give a player (or players) a certain item.  For example, /give @s apple would requite you one apple.  You lot can add more arguments to control how many items and which versions of items you would like to receive.  The command /requite @a wool 64 one would give all players 64 orangish wool blocks (1 is the data value of the orange version of the wool block).

7. /articulate

Apply the /clear command to remove items from the inventory of a role player (or players).  We've already seen that /clear without any arguments removes everything from your own inventory.  The control /articulate @r diamond will remove all the diamonds from a random role player's inventory, whereas /clear @r emerald 1 will remove just one emerald from a random thespian's inventory.

eight. /upshot

Use the /effect command to utilise an outcome to a player.  For case, /effect @a blindness will put all players under the incomprehension effect for thirty seconds since no argument for fourth dimension has been indicated.  Arguments can be added to specify the elapsing of the consequence and the level of the effect, and then /effect @s speed 15 1 volition apply the second level speed effect to yourself for 15 seconds.  The levels for each effect offset with 0, so the first level is 0, the 2d level is i, etc.  To remove effects from all players, employ /consequence @a articulate.

More advanced Minecraft commands

This side by side group of commands are a scrap more advanced considering they utilise coordinates to represent where in the world something should happen. For these commands, information technology is strongly recommended that you practise using them in a world where you wouldn't heed destroying annihilation because there is no like shooting fish in a barrel way to undo the results of a /fill or /clone command.

9. /teleport

Use the /teleport or /tp control to teleport an entity.  At that place are many unlike versions of this function.  You tin teleport yourself to a random player's location with /tp @s @r.  Or you can teleport a random role player to a specific location in the world using coordinates with a control such as /tp @r 100 65 100.  The three numbers correspond a location in the Minecraft world with 3-D coordinates.  If you don't specify a target thespian or entity to teleport, you lot will be the one who is teleported.  For case, /tp ~0 ~0 ~-10 volition teleport you ten blocks north of where you were standing because the tilde (~) represents coordinates relative to your location.  In that location are besides additional arguments to control which direction a target is facing later existence teleported.

10. /setblock

Utilize the /setblock command to identify a certain block in a specific location in the earth.  For example, /setblock fifty 60 70 physical 15 will identify a black concrete cake (since 15 is the information value for black concrete) at the location (l, 60, 70).  If the data value argument is omitted, it will default to 0.  To alter the block you're standing on into air, employ /setblock ~0 ~-i ~0 air because the relative coordinate (0, -1, 0) represents the block directly beneath you lot.

11. /make full

Utilise the /make full command to fill an entire 3-D book with a specific blazon of block.  The /fill command is very similar to /setblock but instead requires 2 sets of coordinates.  The first set of coordinates will represent i corner of the book to fill up and the second set of coordinates will represent the contrary corner.  This command can be a big fourth dimension saver because it tin can place a lot of blocks upon execution.  If y'all want to build a column fifty blocks tall out of sand at location (-250, 70, -300), you would need to execute the control /fill -250 70 -300 -250 119 -300 sand.  To build a square platform under where you're standing, you could use something similar /make full ~-5 ~-one ~-5 ~5 ~-one ~5 obsidian.

12. /clone

Use the /clone control to re-create an entire volume from one spot to another.  This can be very useful for copying or moving something y'all've congenital into another area.  The /clone command requires three sets of coordinates.  The first set of coordinates is one corner of the book to be copied, and the second fix of coordinates is the reverse corner of the volume to be copied.  The tertiary set of coordinates is the corner of the area where the volume will be copied to with the lowest values.  For case, to copy a 5x5x5 cube located at (20, 50, -eighty) to the spot one block south of the role player's location, the control would be /clone 20 50 -80 24 54 -76 ~0 ~0 ~1.

Attempt your new Minecraft commands!

The Minecraft Wiki is a not bad resource for learning what other commands yous can use and their boosted arguments, if they have whatsoever.  In that location are many commands to larn and master. In improver to learning what the commands are, learning how to use target selectors is very important. Furthermore, a stiff understanding of the coordinate organisation will be crucial for being able to effectively employ commands that make employ of coordinate arguments. The key to getting better at using commands is practice.

Up next, learn more about how to code Minecraft mods or go started with our fun live Minecraft Modding Quest grade.

Screen-Shot-2021-09-07-at-3.52.53-PM

Written by Chris Youngs, who worked on Minecraft for over four years. He spent nigh of that time testing Minecraft: Education Edition, with a heavy accent on the CodeBuilder characteristic. He joined the Create & Learn team to help teach young students the basics of programming with Minecraft: Education Edition.