+370 5 205 5502 sales@monovm.com

Minecraft Command Line

While Minecraft could be played without any commands, where is the fun in that? Today we will explain everything there is to know about the Minecraft command line and how to use it. Additionally, we added the most commonly used ones.

14 Dec, 21 by Antoniy Yushkevych 14 min Read

List of content you will read in this article:

Are you looking to get an edge over your opponent in the Minecraft game? Minecraft command lines are the best way to skip a hell of a lot of work. It gives access to use cheat codes in Minecraft. The uses of cheats make your gameplay a little bit easier and if you want to level up your game and increase your survival time in the game, then these command lines are going to be an instrumental tool for you.  

There are plenty of command lines available in Minecraft but they are restricted to PC users only and are unavailable for PlayStation, Xbox, Switch, or mobile users. The commands are very much helpful, whether you want to spawn a land or item, increase your game level, switch the time of the day, alter the weather, shift your location, or change the mode of the game. This article will cover all the valuable Minecraft commands, their uses, and how to use them.


Often termed as the “sand-box game”, Minecraft has quickly emerged in the world since its introduction in 2009. The game, which Microsoft acquired, was created by a famous Swedish video game development studio named Mojang. This game is very popular among children as it emphasizes creativity, organization skills, and exploring capability. It not only helps children to find a solution for a specific problem but also helps them to improve their communication skills and their ability to perform as a unit. 

The game mainly has two modes: Survival and Creative you can also join the spectator and adventure mode. It features a limitless world that comprises more than 400 unique items, giving the players enough opportunity to explore and discover. The blocky appearance and deceptive adventures make this an ideal game for any sort of gamer. Minecraft is making the rise in educational centers as well. 

For example, Minecraft was used at Stackpole VC School to make a premise scale model of their school premise. Teachers from various institutes have also used Minecraft to demonstrate to children about Mathematics, Information and Communication Technologies, and Programming languages. Children who are suffering from autism and Attention deficit hyperactivity disorder (ADHD) can also be benefitted from the Minecraft server.


The command line or windows command line is a text-based user interface used for inspecting, managing, and operating files that are present in a computer system. A user gets connected with a computer program or operating system through the command-line interface. The command line is a blank line that is directed on a computer system by entering commands with a keyboard instead of using a mouse for navigation purposes. Press the Enter key when you are finished entering your command and then your command will be executed. 

After receiving the command, the computer system sends a reply to the command, and only then the user can move on to the next command. The same process is followed to execute a series of command lines that are given by the user. The users are provided with both Graphical User Interface and Command Line Interface by the operating systems. The major operating systems, like, Windows, Ubuntu, Mac, UNIX, Linux, etc., purposely support the command line that is given by the programmers to perform file management tasks.

Every operating system has a different command-line interface. For example, it is “C:\Windows>" for Windows operating system, "%" for UNIX, “>” for Linux or “finder” for Mac. Terminal, cmd, CLI, prompt, or console are some other names that are given to a command-line interface.


A Command Line Interface can do all the tasks that a Graphical User Interface can do. There are specific situations when a Command Line Interface takes less time to finish than a Graphical User Interface. It is also much easier to operate and more important a CLI can perform remotely. The different valuable commands are the heart-beat of any command-line interface; their uses are many and should never be neglected. The prompt, super-fast response makes CLI an ideal tool for programmers and administrators.

For example, a user who is working on Windows Operating System wants to rename all the files that are present in a folder, this looks like a time taking tedious task. However, the user can perform this whole task within a minute by entering a single command in the command-line interface.


Command Blocks are special, in-game elements that are used for executing certain commands in multiplayer as well as custom servers. With its world-bending effects, command blocks are also available on Minecraft but because of this feature command blocks are not useful in Survival mode. These blocks are customizable and can regulate various activities on Minecraft. Once you acquire a command block, you can then use as many commands as you want in the Minecraft server. 

Command Blocks with their series of commands help the players to do complex things. It allows you to use cheats in Minecraft and it also ensures enhanced experience points for the user. Make sure to activate the command block before using it every time. The users (players) need to get a command block and then activate it before using it in the game.


Follow the steps shown below to acquire a command block in Minecraft Bedrock Edition:

  1. Go to the World page in Creative Mode or go to the Realm settings in Creative Mode to enable cheats.
  2. Go to the third row of the selected World page and activate Creative Mode in the World Page or Realm settings.
  3. Clear cache memory to create space in the inventory.
  4. To open the chat menu in the Minecraft server, press “T” and type the following command:

 /give [your username] command_block

  1. Press Enter to place the command block in its desired location.

Note: To find the location of the command block in the Minecraft server, Go to the inventory and press “E”. You can also turn off the cheats and Creative Mode, once you’ve placed the block.


Follow the steps mentioned below to acquire a command block in Minecraft Java Edition:

  1. Open the config files from the server and then click on the “server. properties” file.
  2. Find the “enable-command-block=false” line and rename it with “enable-command-block=true
  3. Clear cache to make space in the inventory.
  4. To open the chat menu in the Minecraft server, press “T” and type the following command:

/give [your username] minecraft: command_block

  1. Type /gamemode c in the chat menu box to activate Creative Mode in the game.
  2. Press Enter to place the command block in its desired location.

Note: Once you’ve placed the command block, you can again switch the game mode back to “Survival” by typing /gamemode s.


Once you’ve finished placing the command block in the desired location, you’ll get the option to activate it. Follow the below steps to activate a command block in Minecraft:

  1. Select the activation time for the Command Block.
  2. Select among “Impulse”, “Current” or “Repeat”, and “Chain” and finalize the activation time.

- The “Impulse” option means that the command will run only once and then stop.

- The “Current” or “Repeat” option means that the command will repeat constantly till the command is powered.

- The “Chain” option is more suitable for players who like complex systems as it allows the block to run only when the connected Command Block is also running.

A Command Block set at “Conditional” mode means that the block will run if and only if the previous block had also run while a Command Block set at “Unconditional” mode means that the present block will run irrespective of the running status of the previous Command Block.

  1. The user can select up to be influenced by Redstone for their Command Block. If the user selects “Needs Redstone” it will mean that the block will activate if and only if it has Redstone whereas if the user selects “Always Active” it will mean that the command line will run at every condition.

After the user sets up the command, it then moves to the “Command Input” section. The user can use these commands to kill their enemies in the game.


Most people know the name of the commands but don’t know how to use them. Let’s see how to use them. To use Minecraft Command, firstly, we need to open the Minecraft game and press the forward slash key (/) to open up the chat window. To activate the command, enter the Minecraft command and then hit the Enter key. Use the up and down arrow keys to see the commands that you’ve entered previously. The player must enable the cheats while creating the game world and if somehow they fail to do so then they have to load the game in LAN and select the “Allow Cheats” option. Next, we’ll talk about the most commonly used Minecraft Command Lines.

Note: The commands that we use in Minecraft are case-sensitive. [Capital Letters are not allowed]

What are the arguments?

Several Minecraft commands use an argument. An argument can be a single statement or a sequence of statements that succeed a command. For example, the command:

/gamemode Survival

Here “gamemode” is the command and “Survival” is the argument. The argument is commanding your game to run in Survival mode.

The arguments are sometimes followed by a <angle bracket> or [square bracket]. An angle bracket means that the use of an argument is mandatory whereas a square bracket means that the use of an argument is not mandatory.

What are targets?

The argument that we use in Minecraft Commands is sometimes also referred to as targets. These special types of targets indicate on whom the command will be targeted. Here are some commonly used target arguments:

@p (it targets the player who is nearest to you)

@r (it targets any random player in the game)

@a (it targets every single player in the world)

@e (it targets all the entities in the world that are active)

@s (it targets the user i.e. you)

For example, the command:

/gamemode survival @a

This command will switch the game mode for every player on the same server to Survival Mode.


Now let’s get started with the most useful and commonly used commands in Minecraft.

1. Teleporting

Syntax: /tp [player name]

Uses: In case you get lost in the game world, you can use this command to find your friends in the game.

2. Seek Help

Syntax: /help [<command>]

Uses: It displays all the Minecraft commands and shows a detailed information list about those commands.

3. Give objects and items

Syntax: /give <player name> <item name> [<count>]

Uses: Use this command to give or lend items from the inventory to any other player.

4. Summon an Object

Syntax: /summon [creature or object name]
Uses: It helps to deliver any in-game object or creature to your desired location.

5. Change Difficulty

Syntax: /difficulty <difficulty name>

Uses: Use this command to set the difficulty level. The available difficulty levels are: peaceful, easy, normal, and hard.

6. Kill

Syntax: /kill

Uses: Using this command you can destroy any character, including your character, on the current game server.

7. Creative Mode

Syntax: /gamemode creative

Uses: Using this command you can switch the game modes and can join the Creative Mode

8. Survival Mode

Syntax: /gamemode survival

Uses: If you want to change your game mode to Survival and face more challenges, then use this command.

9. Set the Time of the Day

Syntax: /time set <time>

Uses: Use this command to set the game time of your preference. Set the time to “0” during the morning, set to “6000” during the afternoon, “12000” during the evening, and “18000” during the night.

10. Set your preferred Weather

Syntax: /weather

Uses: Use this command to manage the weather condition of your game world. In Minecraft, you will find two weather features: one is the superficial feature and the other is a critical game component.

11. Send Private Messages

Syntax: /tell

Uses: Use this command if you want to privately communicate with any player on the server.

12. Locate Game Structures

Syntax: /locate <structureType>

Uses: This command helps you to find the stronghold that is nearest to you.

13. Entity Counting

Syntax: /testfor

Uses: Counts all the entities and objects that are present in your world.

14. Manage your Team

Syntax: /team

Uses: This command provides several options that allow you to take care of things in the Minecraft game.

15. Enchant

Syntax: /enchant <player> <enchantment ID> [level]

Uses: This command helps you enchant the name of a player.

16. Customize Player XP

Syntax: /xp [add|set] <players> <amount> [points|levels]

Uses: Use this command to add, set, remove, or check the XP of any player on the server.

Other than these, several other commands are used in Minecraft. But, these 16 Minecraft Command Lines are widely used by the players.


The command lines that we use in Minecraft provide a layer of shortcuts for us. It helps us to manage our game world in a better way and it also enhances our gaming XP. Minecraft provides a handful of commands for the players so that they can perform well in the game and each of the commands has its impact to make the elements in the game easier.

To get regular updates on the Minecraft command and check the Minecraft commands’ complete list, please visit “Minecraft Wiki”. You will find a guide listing all the usefulness of the commands.

Antoniy Yushkevych

Master of word when it comes to technology, internet and privacy. I'm also your usual guy that always aims for the best result and takes a skateboard to work. If you need me, you will find me at the office's Counter-Strike championships on Fridays or at a.yushkevych@monovm.com