The same commands as in regular chat. What is command block how to get it and how to use it? In this article, we will tell you about it!

This is really a very useful block and it expands the possibilities of creating maps in Minecraft

You can find a complete list of commands at, but not all of them work in Minecraft on Android, IOS and Windows 10 versions.

Last time, we explained the positioning system and its associated commands and arguments. Just creation game cards is why people usually want to learn how to use command blocks. If you're here for this reason, you can look forward to other tutorials that focus on mapping. First, we will add knowledge about the missing arguments.

Next argument. This argument, as you might, returns the "type" and "type of the object", in other words, which object is involved. You can also use the prefix "!" To select a different type of object. Let's now try what we just learned. Find our closest two pigs.

+ command blocks in MCPE:

  • Unlike the PC version, the command blocks in PE do not make large loads, i.e. the FPS will be stable.
  • The command block interface is adapted for mobile devices.
- command blocks in MCPE:
  • Too little functionality.
How do I get a command block?
In the game, you cannot get a command block by crafting, but you can issue it using the command / give Steve command_block, where Steve the nickname of the player to whom the team will give this block. You can also use @p instead of Steve, which means you give the block to yourself. Don't forget to enable cheats in the world settings.

How do I fit a command into a command block?
To do this, you need to open its interface. This is done very easily, just tap on it. In field Command entry the command itself fits in, which the command block will execute. Below is a field in which you can see an error if you entered something wrong.

Or, if you are making a selection of all objects, but do not want the player to. These arguments represent "levels of experience" or the number of "levels" of experience that is "green" that you use to enchant. The current level is displayed above the active inventory with a green number. So let's write a simple alert script that lets players understand how this is happening. You will need two command blocks to connect to the watch. The only problem is that the script will spam the chat players every time the outline is complete, how to deal with it in the scoreboard system tutorial.



Examples of commands:
  • give @p apple 5 - Gives the player five apples.
  • setblock ~ ~ + 1 ~ wool - Places a wool block in player coordinates.
  • tp Player 48 41 14 - the player with the nickname Player moves to a point at coordinates x = 48, y = 41, z = 14
Who do the command blocks work with?
Thanks to the pointers, you can point to the player or creature on which the command will be executed:
  • @p is the player who activated the command.
  • @a - all players.
  • @r is a random player.
  • @e - all entities (including mobs).
Auxiliary pointers:
But how to make it so that, let's say, it moves all players to some point, except for itself? It's easy, for this you need to use additional pointers, for example: tp @a 228 811 381- teleports all players, except for the player with the nickname Admin exactly x = 228, y = 811, z = 381... All parameters:
  • x - coordinate along the X axis.If you put instead of a value ~
  • y -coordinate along the Y axis.If you put instead of the value ~
  • z - coordinate along the Z axis.If you put instead of a value ~ , then the point will be the command block.
  • r is the maximum search radius.
  • rm is the minimum search radius.
  • m - game mode.
  • l is the maximum level of experience.
  • lm is the minimum experience level.
  • name - player's nickname.
  • c is an optional argument to @a that limits the number of players to execute the command. For example, if you enter @a - then the command will affect the first five players from the list, @a - the last five from the list.
  • type - as an example, / kill @e will kill all skeletons, and / kill @e will kill all non-player entities.
Example command:
  • give @p gold_ingot 20 - gives the nearest player who is within a 10 block radius of 20 gold bars.


Commands for manipulating the world

However, this is a real-world scenario where you can invent thousands of people with the right knowledge. Now you can imagine the commands used to manipulate the world, which will be useful for you, for example, when you create a playable map yourself or simply when you want to adapt the test world.

You set this mode by default when you create the world, it is creative. Try to change it now for survival. When a new player joins the world, the game mode will be set to survival. As you can guess, this command changes the difficulty. There are four in the game, and you can specify them in different ways.

Command Block Modes

There are three command block modes available: pulse, chain, and repetition - the block color changes depending on the mode.
  • Pulse mode (orange): activates the set command
  • Chaining mode (green): the command will work if the block is attached to another command block and is connected to other command blocks
  • Repeat mode (blue): The command is repeated every tick as long as the block is powered.


The difficulty is saved for each world separately, so if you go into the settings, you see the difficulties of the last loaded world. As you know, a difficulty can be "blocked" for of the given world, which makes it impossible to change it. However, this command does not look at the blocking, so it is not 100% protection, however, when cheats are disabled, the player in the blocked world cannot change it. If the command is run on the server, the complexity changes, but the next time the server starts, it will again be the default for the server because it is set by the server properties at startup time.


Pulse mode
These are ordinary command blocks that are used to interact with blockchains, but you can also execute commands simply in these blocks.



Chain mode
I think that already from the name it is clear that this command block mode works according to the "chain" scheme.

Please note that for the chain type to work, you need a command block with an impulse, which will exactly send the signal, as well as a redstone block, without which the chain type command block will not work.

You can make this command one of the few when cheats are disabled. He has no arguments and displays the seed of the world where he is. This number tells the world generator "how to generate it", i.e. two newly created worlds with the same seed will look the same. This number can be entered when creating the world.

If it's raining, stops, and if not, starts. The first required argument is the weather state for setting the command. Clearly rain does not mean rain means thunderstorm rain means rain and bruising.

  • If the flash hits the vine, it charges it.
  • If he hits a pig, he will do Pigman.
You can also specify the duration. This is the minimum amount of time the condition will take. Over time, he will be able to re-establish new status in Game. This time is given in so called “ticks”, you can enter a value between 1.



Command title and its parameters:
  • title clear - clears messages from the player's screen.
  • title reset - clears messages from the player's screen and resets parameters.
  • title title - The title that shows the text on the screen.
  • title subtitle - The subtitle that is displayed when the title appears.
  • title actionbar - displays the title above the inventory.
  • title times - appearance, delay and disappearance of text. The default values ​​are 10 (0.5 s), 70 (3.5 s) and 20 (1 s).
Example of command execution:
  • title @a title §6Start - title with orange color.
  • title @a actionbar Hello! - displays text above inventory.
  • title @a subtitle Chapter 1 - subtitle.

Also known as Boss Update, is the addition of slash commands. What are slash commands, you ask? If you've played the PC version of the game, you probably know they are there. In the chat window, you must enter a slash (/) and then enter the command.

So let's try to turn on the storm now. If you play, like me, in desert biomes, you will only see a cloudy sky, but no rain or lightning. This is because each biomass has its own temperature, which determines whether it is raining, snowing, or nothing at all.

Either execute only the command, then the place is set in accordance with the coordinator of the executor or enter the coordinates. As you may have come across, this personal spawn point is always set next to the bed you sleep in - after death, you will find yourself at your base, and not at the starting point. If you want to install your own point appearances where you are now, you don't need to provide any arguments. When you set it to another player, but you do not need to specify the coordinates at the point where you are now.

Slash commands in 0.15.9 / 0.16.0

Teams provide the player with an incredible amount of functionality on the PC version of Minecraft. The beta version of Pocket Edition 0.15.9 / 0.16.0 is currently available. We got our hands on the beta, and here are the commands we found.

/ clearfixedinv- Completely clears the inventory of the specified player or only removes the objects specified by ID from it.

Otherwise, the team requires a complete specification. Use this command to determine the number of hours. The query request command tells how much time has passed since a certain point. This can also be seen in the debug screen. ... You probably have a few more questions about exactly how platform-wide convergence should shake.

Q: Is the best update being updated for all editions? If there are platforms that interest you where we haven’t been before, please let us know. Q: Is the kid-safe update better for kids? We're not quite ready to announce a release date yet, but we're aiming to release this year. Q: What is the best update to the foreclosure process for disc owners?

/ clone [mode] [mode2]- Clones an area from point 1 (x1 y1 z1) to point 2 (x2 y2 z2) to point 3 (x3 y3 z3) using mode (mode) and sub mode (mode2). The mode (mode) can have 3 values: replace, masked and filtered, and the mode (mode2) can be normal, force or move.

/ deop- Removes operator privileges from the player.

/ execute - Executes a given command with respect to an entity. Relative coordinates are specified by the x, y, and z parameters. If the detect parameter is specified, then the specified command is triggered only if there is a block in the coordinates x2, y2, z2 with the specified ID and metadata.

Please be prepared for a short wait though, as it may take several days to process all buyout requests. Q: What's the deal with a five hour call? When you launch it, you will see the name of the game on the splash screen. This is very interesting job but presents many complexities to the development process. You can continue playing the old version of the console to continue earning what you missed.

Will they transfer to a new console version? Q: Are add-ons being added to the console editions? Q: When will console players be able to use custom skins or create custom super-flat and enhanced worlds? The server browser has a list of verified servers that you can join with one click.

/ fill [Block parameters] [Replacement method]- Fills the selection from to with blocks with block parameters [Block parameters] using the [Overwrite method] method with.

Replacement methods:

  • keep - will only replace air blocks
  • hollow - creates a cube with a void inside
  • outline - Identical to hollow, except that this replacement method will leave the inside unchanged
  • destroy - will replace all blocks in the specified area with the ability to pick them up as a drop
  • replace - replaces all blocks in the specified area

There is also an alternative version of the command that only works with the replace method:
fill replace

It requires a large number administrative and backend functions so that they can focus on building and maintaining great online communities. Q: How do potential server partners start to integrate into the server browser? Although we have three servers at launch, we plan to bring more servers into the game over time.

We plan to add more servers over time. Q: Why did you choose these partners instead of others? On consoles, due to platform restrictions, access to the server is limited to partner servers only. Will the studio stop updating the game because the new game process and mini-games are available via servers? Q: How to play mini-games from old version console?

Translation of parameters:

  • TileName - the name of the new block
  • dataValue - parameters of the new block
  • replaceTileName - the name of the block to be replaced
  • replaceDataValue - parameters of the block to be replaced

/ gamemode [goal]- Changes the game mode for a specific player. Survival (survival, s or 0), Creativity (creative, c or 1), Adventure (adventure, a or 2), Observation (spectator, sp or 3).

Q: Will you invite links for all platforms? Q: Are the servers safe for my kids? Our official server partners have also taken steps to ensure safe and comfortable online play for all ages, including chat filtering, in-game reporting, and constant moderation.

Parents can turn off chat, which will allow children to join the servers, but not see or participate in any communications on the server with other players. Parents can restrict multiplayer play to only “friends” or “not,” which prevents kids from connecting to the servers at all. Q: What should I do if someone is bullying me?

If the player's nickname is not specified, then the team will change the game mode for the one who entered it. For the team to work, the player must be online.

/ give [number] [ Additional Information] - Gives the player a specific item / block in the specified quantity according to the data numbering.

For example, if you enter / give John 4, this will give the player with the nickname John 1 a block of cobblestone, / give John 35 64 11 (will give a full stack of blue wool, / give John 278 1 1000 - a diamond pickaxe damaged by 1000 units, and / give John 373 10 8193 will dispense 10 bubbles of regeneration potion.

/ help [page | command] or/? [page | command]- Lists all available console commands. The list is divided into pages, so the command can take a page number as an argument. You can also display help for a specific command. Some commands are not included in the help.

/ kill [player]- Kills the player, causing him about 3.4 × 1038 points of damage, similar in effect to the damage from the Void (armor is ignored). Useful if the player gets lost, gets stuck or dies of hunger (if after death the player can easily find things). Works in Creative mode.

/ list- Displays a list of all players connected to the server.

/ msg

/ op - Gives the specified player operator privileges.

/ say - Shows your message to all players on the server.

/ setblock [Extra options ]- Places the block at the given coordinates. For example, the command / setblock ~ ~ 1 ~ minecraft: stone will place a stone over the player who called the command.

/ setfixedinvslot- Adds a slot on the right to the inventory

/ setworldspawn - Sets the spawn point for the whole world according to the coordinates of the player or according to those specified in the command syntax. Example: / setworldspawn 50 74 -87

/ spawnpoint [goal]- Sets the spawn point for the player. If no player is specified, the command is executed for the player who typed the command. If no coordinates are specified, the spawn point is set to the current position.

/ summon [coordinates] [additional parameters]- Spawn the specified entity at coordinates with the specified parameters. If no coordinates are specified, the spawn point will be the player's current position. For example: / summon Pig ~ ~ ~ (Saddle: 1, CustomName: "Mr. Pig", CustomNameVisible: 1).

This command will create a pig with a saddle and the name Mister Pig. The name is visible even through the walls. If CustomNameVisible equals zero, then the nickname is visible only if the sight is aimed at the mob.

/ teleport - Teleports the entity to x, y, z coordinates. The x and z values ​​must be between 30,000,000 and -30000000, and y between -4096 and 4096.

Use the y-angle to rotate horizontally (180 to North, 0 to South, 90 to West, and -90 to East), and the x-angle to rotate vertically (-90 up, 90 down).

/ tell - Sends a private message to the player.

/ testforblock [Add. options]- Checks for the presence of a block on the coordinates, and, if it is there, the comparator will output a signal. Also, using this command, you can check the presence of items in the chests.

/ testforblocks [Mode]-Checks the coincidence of two areas and if both areas are identical, the comparator will output a signal. The "mode" section can take on the values ​​masked or all; when masked, air is not taken into account.

/ time add - Adds the specified value to the current time of day. The number parameter can take non-negative integer values.

/ time query

  • daytime - Displays the number of game ticks since dawn
  • gametime - Displays the age of the world in game ticks
  • day - Displays the number of elapsed game days

/ time set - Sets the time of day. The number parameter can take integer values ​​in the range from 0 to 24000.0 - dawn, 6000 - noon, 12000 - sunset, and 18000 - midnight (that is, the hours are halved). day equals 1000 (dawn) and night equals 13000 (sunset).

/ toggledownfall- Rain switch.

/ tp - Teleports the first player to the second, that is, "player1" to "player2"

/ w - Sends a private message to another player. Used on servers to write something to another player without others seeing it.

/ xp - Gives the specified player a certain amount of experience points, the allowed values ​​are from 0 to 2,147,483,647. If you enter l after the number, the specified number of levels will be added. In addition, the levels can be lowered, for example, -10l will decrease the player's level by 10.

In which the long-awaited innovation was added - command blocks.

With the help of command blocks, you can set certain commands that can be distributed both to the entire server and to a random player.

Important to know: Only creators can ask commands. game world and only in creative mode. Command Blocks in Survival Mode do not work.

Many players do not know and do not understand how to use these blocks and what commands need to be entered in order for them to be active.

To get a command block, you need to open a chat and write the command / give @p command_block

Then we select it and install a lever or any other activator to it.

How do I set a command for a command block?

In order for the command block to perform this or that function, it needs to set a specific command. To do this, click on the command block and a window with settings opens. In the "Console Command" field, you need to enter the command we need.

Below will be presented the Top 15 most popular commands for the command block for mobile minecraft.

Top 15 Comanels for Minecraft PE

/ title @a tittle Your message. With the help of this command you can write and send to everyone on the server some kind of message or instruction.

/ effect @a regeneration 2000 2000... Regeneration team. 2000 is the level and quantity.

/ tp @a 0 0 0. Where are your coordinates, and 0 0 0 are the coordinates where you want to teleport. To find out your coordinates, you need to download a special mod.

/ clone ~ -1 ~ 1 ~ 3 ~ 3 ~ -3 ~ 4 ~ -1 ~ -3 Command for endless road for mine cart. That is, the road will be constantly cloned and created.

/ setblock its coordinates are diamond_block. A team for an endless diamond block. This way you can get rich very quickly.

/ weather rain. The command to change the weather to rain.

/ weather clean - The clear weather change command turns off rain.

/ gamemode 0 - Fast transition to Survival mode. / gamemode 1 - switch to creative mode. We expose for whom the mode will change, for example / gamemode 0 @a - this way the mode will be applied to all players.

/ time set night - this command changes the time of day to night. / time set day - thanks to this command, a day will come in minecraft.

/ give @a diamon 1 is a command that gives you the items you specify. In our case, these are diamonds. Where 1 is the number of diamonds.

/ spawnpoint - thanks to this command you can set the spawn point after you die.

/ kill - The command that kills everything on the map. You can ask what exactly needs to be killed, for example, animals or creeps.

/ difficulty - a program that changes the difficulty in the game. You can bet from 0 to 3.

/ say - a command with which you can also communicate with players on the server.

Today we'll talk about what a command block in Minecraft is, how to get it, why you need it and how, where and what it can be used for.

What are command blocks?

In Minecraft, the command block (KB) can automatically execute certain console commands as long as it is activated by a red stone.

They work in adventure mode, and allow the creators of the map to improve the interaction with the player. At the same time, the player is not able to destroy blocks and build new ones.

Command Blocks cannot be interacted with or destroyed in Survival Mode.

They cannot be crafted and cannot be found in your inventory while playing in creative mode. Creative players and server admins can use console command"Give" to get the KB or make it available to other players. It looks like this:

/ give minecraft: command_block

When typing a command, remove the parentheses around the edges of the player's name and quantity:

/ give atombox minecraft: command_block 1

KB has a graphical interface with a text field, accessible by right-clicking the mouse.

Only creative players and players with server admin status can place command blocks, enter commands, and save changes.

To use them in single player or multiplayer worlds, you need to enable LAN mode and enable cheats.

Where Command Blocks Are Used

Have you ever played adventure maps where it is always night or where the weather never changes? You could download maps where players receive special rewards, upgrades or experience at the push of a button or for completing a mission. All this becomes possible thanks to KB. When creating your Minecraft map, you need command blocks if:

  • You want permanent day or night;
  • You want to change the weather;
  • You want to change the difficulty of the game;
  • You want to play a specific sound;
  • You want to send a message to the player;
  • You want to teleport to another location;
  • You want to give the players items.

There are tons of videos on YouTube describing a variety of Minecraft maps. Multiplayer maps are especially popular. There are many categories of downloadable Minecraft maps that use command blocks to enhance the player's convenience. There are many reasons for their use by map developers. Among them are maps of the following categories:

  • Adventure cards;
  • Parkour maps;
  • Puzzle maps;
  • Survival maps;

Adventure cards focused on the plot, and the gamer acts as the main character of the narrative. Previously, adventure cards relied on storytelling through signs and books, but now narration is available through dialogue and sounds, all thanks to KB.

Parkour maps force the player to travel from one end of the world to the other with minimum amount deaths. They often contain incredible jumps and other deadly obstacles. Command blocks make it possible to set spawn points of a character in front of difficult obstacles.

Puzzle maps emphasize problem-solving skills with mazes, traps and other challenges. Some of these cards have a storyline, just like adventure cards. Using KB allows such maps to more easily suggest directions, plot-related dialogues and sounds.

Survival maps can focus on survival in single player or multiplayer, or include a story along the way. CBs can give players a starting point for spawning, as well as story-related information. The possibilities here are endless.

How to use the command block

Setting them up is easier than most Minecraft players think. The commands can be confusing, but some of them (like setting the time of day) are very easy to program. Larger projects can be planned later, but first try to master the basics of hosting, configuring, and using KB.

Keep in mind that Command Blocks can only appear in Creative Game Mode. To go to it, you need the appropriate privileges on the server (if available) or activated cheats.


In the chat box, type "/ gamemode c", "/ gamemode creative" or "/ gamemode 1" without quotes.

2. Clicking on the command block with the right mouse button

In creative mode, right-click on the Command Block to access it. To generate it, you need to use the "give" command, as described above in the text:

/ give minecraft: command_block

Command blocks only work when connected to electrical circuit red stone (by the way, there is good mod, allowing to increase the transmission distance). Right-clicking opens a dialog box where you can enter a server command. The maximum command length can be 254 characters.

3. Enter the command and click "Finish"

When you enter a command into a block, you need to indicate which player it is aimed at. This can be done by entering a player's name or by choosing three different variables: "@p" (closest player), "@r" (random player), or "@a" (all players). These variables are especially useful in situations where the player who activates the command is unknown. After specifying the command, click "Finish" to save it.


Remember, one KB can only execute one command!

Practical examples of use

The following examples are simple and practical command block applications in single and multiplayer Minecraft worlds.

How to change the rules of the game

Game Rules is a relatively new feature that allows players and command blocks to change certain basic settings of the Minecraft world. There are nine described game rules that can be controlled using the command block on the map.

You can use game rules to create permanent daylight or darkness, disable spawning mobs, drop items from mobs, and much more. When entering the "gamerule" command, use the following command:

Game rule Effect of the rule
commandBlockOutput Enables / disables text input in KB
doDaylightCycle Enables / disables the day / night cycle
doFireTrick Enables / disables fire spread / disappearance
doMobLoot Enables / disables the dropping of items from mobs
doMobSpawning Enables / disables spawning mobs
doTileDrops Enables / disables drops of items from KB when they are destroyed
keepInventory Enables / disables saving items in inventory after a player dies
mobGriefing Enables / disables destruction of KB by creepers or endermen
naturalRegeneration Enables / disables health regeneration for players


How to set the weather

Some cards have a dark theme that blends perfectly with rainy weather or thunder, while others are better played with clear sky... There are many options for controlling the weather using command blocks. A simple example of a weather command:

In this case, the word input can be replaced with “clear”, “rain” or “thunder”.


You can connect a button or lever to the command unit to manually switch the weather, or create automatic circuit red stone for constant switching of weather. This is easily accomplished using repeaters, a button, and a building block.

How to set the spawn point

Spawn points are an important component of many Minecraft maps, including adventure, parkour cards, puzzles and others. Having to replay the map from the very beginning every time you die is extremely annoying. Using the "spawnpoint" command, you can save game progress and respawn after death at the nearest passed checkpoint. The command looks like this:

By connecting the command block to the building with a button or pressure plate, players can set a spawn point at the location of the KB.


If you need something more complicated, you can add coordinates to the command to specify the location of the spawn point.

Running from one place to another is tiring, especially on a multiplayer server. With the use of the command "teleport", players can move to certain coordinates of the world of Minecraft or to the location of other players. Enter in the command block:

With them, you can have a certain set of coordinates for teleporting the player, like the location of the next part of the adventure map.


If the block is not intended for a specific player, you can use "@p" to select the closest player.

If you are on a multiplayer server, you can bind the command block to yourself by using your username in Minecraft.

These are just a few of the options for how to use command blocks in single and multiplayer Minecraft games. There are many much more complex redstone commands and schemes that map creators use.

The execution of any actions assigned by the game participants is carried out by command blocks. You can't create a team like that playing in survival mode. Calling them as tools while using the creative game mode will not work either. To get such blocks functionally, you need to use a couple of fairly simple commands, which, in fact, will allow you to execute their call. Let's look at some simple methods.

Get a command block in Minecraft: method 1

Start Minecraft and select single player mode. Complete the creation of a world that has cheats enabled.

Open the chat window and press the "/" key. This symbol will open a window where you can enter commands.

Enter the destination you want by choosing from the following lines:

  • "/ Give" the name of minecraft: command_block and the desired number - after entering it into the console, the summoned items will appear among the tools;
  • "/ Setblock x y z minecraft: command_block" - this line turns one of the blocks into another, making it a command one, and to find it, you need to press F3 and select one of the found ones;
  • "/ Summon Item x y z (Item: (id: minecraft: command_block, Count: 1))" - by entering this sequence, the game participant will call the blocks to wherever he needs.

Get a command block in Minecraft: method 2

Run the game, select single mode. Log in to your existing world, possibly a server. Enter the chat required to set commands by clicking on "/".

Enter one of the suggested options:

  • "/ Give minecraft name: command_block the desired number" - this line allows you to call the required number of items and add them to the existing inventory;
  • "/ Setblock x y z minecraft: command_block" - if you enter such a text, you can replace any existing block with a command one, and to determine the location in which it is located, you need to press the F3 key;
  • "/ Summon Item x y z (Item: (id: minecraft: command_block, Count: 1))" - blocks will appear in the specified area.


Get a command block in Minecraft: method 3

  • Use the "E" key to drag the block and place it on the panel. Click on the right mouse button and place the object on the ground.
  • Click on it again with the same mouse button. This will open a menu where you can configure actions.
  • In this window you need to enter the symbol "/". The options in these blocks are similar to those used in chat. They are sometimes associated with an electrical board. This allows commands to be executed automatically.
  • Press the "/" key, the console window will appear, in which write the word "help". After it, type the name of the subject to which the sequence of commands is prescribed.

You probably know about the existence of commands for working with blocks in Minecraft, but do not know exactly how to use them. And if you are a map builder, then I think this will be very, very useful to you! Well, let's get started at last.

Let's take a closer look at this command:

X, Y, Z - coordinates of the place where the block will be set or changed

TileName is the name of the block, that is, its ID, it should look like this:

minecraft: Block name (in small letters only)

Example: minecraft: wool or minecraft: iron_block

DataValue is the block type, i.e. wool color, clay color, sandstone type, etc.

Example: 15 - type of wool, that is, black

How it should look: minecraft: wool 15

OldBlockHandling is a new syntax, it comes in three types:

keep - checks if there is a block at the specified coordinates, if there is already some block there, then this syntax is not

will allow you to put the specified block in this place.

Example: / setblock ~ ~ 1 ~ minecraft: wool 15 keep

destroy - if there is a block at the specified coordinates, then it breaks it (with particle animation and sound)

Example: / setblock ~ ~ 1 ~ minecraft: wool 15 destroy

replace - simply replaces the block at the specified coordinates

Example: / setblock ~ ~ 1 ~ minecraft: wool 15 replace

DataTag - block or item tags, that is:

We want to install a command block, in which some command will already be written, how to do this:

We write the command to install the block and add to it (tags are denoted by such brackets ()) (Command:

/ setblock ~ ~ 1 ~ minecraft: command_block 0 Syntax (For example: replace) (Command: / say @p Ololo)

And when the command block is installed, it will contain this command.

Let me give you another example:

We want to set the chest so that there is some kind of item or items in it, for this there is an items tag, to it

You can also add an enchant tag, but more on that in another part of the tutorial.

The items tag has 4 parameters:

Id - item id

Count - number of items

Slot - a slot that will fit an item or items

Damage - a parameter that indicates how damaged the item is

How to do it all:

/ setblock ~ ~ 1 ~ (id of the block where this item will fit) 0 replace (items:

[(id: 276, Count: 1, Slot: 0, Damage: 50)])

We get a chest containing 1 diamond sword, which is damaged by 50.

If you do not know what the ~ sign means, then I will explain now:

This is a coordinate sign, if you wrote this sign, then the block will take the same coordinate where the command block is.

If you add a digit, then it will move the block by the specified number of blocks:

/ setblock ~ 2 ~ 2 ~ -2 minecraft: iron_block 0

The block will move from the command block (or from the player, if you are writing a command in chat) 2 blocks up, 2 blocks forward, 2 blocks to the right, well, I think you can figure it out.

This concludes my first guide. Good luck to all! And wait for the second part of the guide!

After you have received the command block, put it on the ground and click on it RMB. You will have a menu, and a line where it says "Console command". In this line we will enter all the commands!

But before entering the command, we need to deal with some of the words that you see below!


These are commands, with the help of them you will designate who will receive the effect, things or something else!
For example, you want to give a friend a diamond breastplate, to give it you need to register in the command block:

How to change the difficulty in the game. To change it you need to write the command in the console:

    • / difficulty [Difficulty]

Difficulty can be: peaceful, hard, easy, normal.

This way you can change the difficulty in the game!

There is another quite important command, how to clear the inventory, this command can be used on the server!

    • / clear [to]

You can choose to clear the inventory of nearby players [@p], or register a nickname!


How to make a command block in minecraft?

The command block did not appear in minecraft right away. Only in version 1.4 do players have new opportunities. It is in this version of minecraft that users learn what a command block is, which is closely related to console commands.

What is a command block

Actually, the command block is a block in which the players prescribe certain commands. The command block can be opened by clicking on it with the mouse. After that, a field will appear in which the commands for execution are written. Below will be displayed information about the result of the commands entered.

How to make a command block

Unfortunately, it is impossible for an ordinary user to make a command block in minecraft himself, despite the player's great desire, because using the command block in the virtual world, you can completely control the map and chat with all the players at the same time. You can't make a command block yourself, you can only get it. There are several options for how to get the command block.

Commands

To receive you need to full list commands that can be written in the command block, just enter the word help in the chat window.

By entering these commands, you will get the desired output:

  • give @p iron_ingot 10 - 10 iron ingots
  • setblock 42 21 60 wool - set the block at coordinates x = 42, y = 21, z = 60
  • tp Player 42 21 60 - teleport to a point with coordinates x = 42, y = 21, z = 60

You can also use pointers to players:

  • @p - nearest player;
  • @a - all players;
  • @r - random player;
  • @e - all entities.
  • x - X coordinate of the search center;
  • y - Y coordinate of the search center;
  • z - Z coordinate of the search center;
  • r - maximum value of the search radius;
  • rm - minimum value of the search radius;
  • m - game mode;
  • l - maximum amount the experience of the player;
  • lm is the minimum amount of experience a player has.

Many of you know that in Minecraft it is possible to achieve the fulfillment of the goals necessary for the player by prescribing in command line a specific team. It is very convenient. It is also very convenient to download free games for Android and enjoy your favorite game from your phone or tablet. But you should always strive to improve convenience. At this point, the developers have risen to such an interesting thing as the command block. The essence of this device is that it executes your console commands, receiving a signal from the redstone (attention to the screen). With the advent of this block, the capabilities of crafters who create maps with an adventure mode have significantly expanded.

Of course, with this functionality, the command block is not at all "eager" to succumb to crafting. Only the "chiefs" of the servers - their administrators - can get it in multiplayer. To do this, in “ server.properties"They need" enable-command-block"Set to position" true". Why is it like this in a multiplayer game useful thing accessible only to the bosses? Everything is very logical. Imagine that two gardening neighbors are praying at the same time: one for the sending of rain, the other for a clear sky. Who should I answer? First or second? This is how it is in Minecraft, if all the crafters could get to the command block, whose will, whose commands should he execute?

But loners can also get a magic box. In the settings for this you need to write the following cheat code: / give @p command_block... Given the number of cheat codes, the owner of the command block becomes a truly cool crafter. Do you want to become your own director? Try this device.

Pointers

However, such a multifunctional box presupposes the ability to use it. "Trachtibidochus" is clearly not enough here, but there is no smell of nuclear physics here either, so fears away. To begin with, you need to use the command block through the text area interface. You can save the changes made only with the status of a server administrator and creative mode. The entered commands will be executed in Minecraft by activating the block with a redstone. To use the full command block, it is very useful to use special pointers for gamers:

  • @p - to the nearest player
  • @a - "hint" to all crafters, if the situation allows
  • @r - random player
  • @e - pointer to all Minecraft entities

For example, if you have good mood, and you want the closest crafter to be enriched with cobblestones, you need to issue the following: / give @p (4)... The id of the cobblestone is indicated in parentheses. Do you want to communicate with the crafters in writing? Write in the interface field: / w @a [your text]... You can write, for example: "What do you want here, next to my command block?"

Pointer arguments

A pointer to a specific crafter can become even more specific if you use arguments that must be specified separated by commas and in brackets [square], for example, like this: @p... Minecraft has the following arguments:

  • X, Y, Z- coordinates of the search center. If you set the value to "~" (tilde), then the center will be our command device
  • r- search radius (maximum)
  • rm- search radius (minimum)
  • m- game mode argument
  • l- experience level (maximum)
  • lm- experience level (minimum)
  • name- player's nickname
  • c is a special argument for the pointer " @a". Its purpose is to limit the number of crafters to which commands are applied. For example, @a- the first 8 crafters from the list, @a- last 8.

Command block- not a transparent block that cannot be crafted. This block is required to activate a variety of commands that are written in the command console.

How to get a command block in minecraft?

To get it, you need to write the following command in the chat without brackets: / give [Your_Nik] command_block [Desired number of blocks]... For example, / give Razmik command_block 1... After pressing the Enter button, the command block will appear in your inventory.

How to activate the command block in minecraft?

You can activate the code you entered in the command block using a lever, redstone, redstone torches, or through a button.

Let's take a look at the simplest commands that can be used in the command block.

  • Changing the time of day. For example, suppose you want it to be night. To do this, install the block, click on it with LMB and write the following command in the console: / time set night.
  • Teleportation. For example, you need to teleport to some point on the map. To do this, go to the selected point, press F3 and remember coordinates x, y, z... Then we go to the command block and write the following command: / tp @p 252 56 -175... The numbers 252 56 -175 are the values ​​of the coordinates x, y, z.

Teams great amount, the simplest of them are given above.

DISTRIBUTION OF ACCOUNTS / KEYS / BASES / FREEZE

How to make a command block in minecraft?

The command block did not appear in minecraft right away. Only in version 1.4 do players have new opportunities. It is in this version of minecraft that users learn what a command block is, which is closely related to console commands.

What is a command block

Actually, the command block is a block in which the players prescribe certain commands. The command block can be opened by clicking on it with the mouse. After that, a field will appear in which the commands for execution are written. Below will be displayed information about the result of the commands entered.

How to make a command block

Unfortunately, it is impossible for an ordinary user to make a command block in minecraft himself, despite the player's great desire, because using the command block in the virtual world, you can completely control the map and chat with all the players at the same time. You can't make a command block yourself, you can only get it. There are several options for how to get the command block.

Commands

In order to get a complete list of commands that can be written in the command block, just enter the word help in the chat window.

By entering these commands, you will get the desired output:

  • give @p iron_ingot 10 - 10 iron ingots
  • setblock 42 21 60 wool - set the block at coordinates x = 42, y = 21, z = 60
  • tp Player 42 21 60 - teleport to a point with coordinates x = 42, y = 21, z = 60

You can also use pointers to players:

  • @p - nearest player;
  • @a - all players;
  • @r - random player;
  • @e - all entities.
  • x - X coordinate of the search center;
  • y - Y coordinate of the search center;
  • z - Z coordinate of the search center;
  • r - maximum value of the search radius;
  • rm - minimum value of the search radius;
  • m - game mode;
  • l - the maximum amount of experience a player has;
  • lm is the minimum amount of experience a player has.

Today we'll talk about what a command block in Minecraft is, how to get it, why you need it and how, where and what it can be used for.

What are command blocks?

V Minecraft game command block (KB) can automatically execute certain console commands as long as activated by red stone.

They work in adventure mode, and allow the creators of the map to improve the interaction with the player. At the same time, the player is not able to destroy blocks and build new ones.

Command Blocks cannot be interacted with or destroyed in Survival Mode.

They cannot be crafted and cannot be found in your inventory while playing in creative mode. Creative players and server admins can use the "give" console command to get the KB or make it available to other players. It looks like this:

/ give minecraft: command_block

When typing a command, remove the parentheses around the edges of the player's name and quantity:

/ give atombox minecraft: command_block 1

KB has a graphical interface with a text field, accessible by right-clicking the mouse.


Only creative players and players with server admin status can place command blocks, enter commands, and save changes.

To use them in single player or multiplayer worlds, you must enable LAN mode and enable cheats.

Where Command Blocks Are Used

Have you ever played adventure maps where it is always night or where the weather never changes? You could download maps where players receive special rewards, upgrades or experience at the push of a button or for completing a mission. All this becomes possible thanks to KB. When creating your Minecraft map, you need command blocks if:

  • You want permanent day or night;
  • You want to change the weather;
  • You want to change the difficulty of the game;
  • You want to play a specific sound;
  • You want to send a message to the player;
  • You want to teleport to another location;
  • You want to give the players items.

There are tons of videos on YouTube describing a variety of Minecraft maps. Multiplayer maps are especially popular. There are many categories of downloadable Minecraft maps that use command blocks to enhance the player's convenience. There are many reasons for their use by map developers. Among them are maps of the following categories:

  • Adventure cards;
  • Parkour maps;
  • Puzzle maps;
  • Survival maps;

Adventure cards focused on the plot, and the gamer acts as the main character of the narrative. Previously, adventure cards relied on storytelling through signs and books, but now narration is available through dialogue and sounds, all thanks to KB.

Parkour maps force the player to travel from one end of the world to the other with a minimum number of deaths. They often contain incredible jumps and other deadly obstacles. Command blocks make it possible to set spawn points of a character in front of difficult obstacles.

Puzzle maps emphasize problem-solving skills with mazes, traps and other challenges. Some of these cards have a storyline, just like adventure cards. Using KB allows such maps to more easily suggest directions, plot-related dialogues and sounds.

Survival maps can focus on survival in single player or multiplayer, or include a story along the way. CBs can give players a starting point for spawning, as well as story-related information. The possibilities here are endless.

How to use the command block

Setting them up is easier than most Minecraft players think. The commands can be confusing, but some of them (like setting the time of day) are very easy to program. Larger projects can be planned later, but first try to master the basics of hosting, configuring, and using KB.

Keep in mind that Command Blocks can only appear in Creative Game Mode. To go to it, you need the appropriate privileges on the server (if available) or activated cheats.


In the chat box, type "/ gamemode c", "/ gamemode creative" or "/ gamemode 1" without quotes.

2. Clicking on the command block with the right mouse button

In creative mode, right-click on the Command Block to access it. To generate it, you need to use the "give" command, as described above in the text:

/ give minecraft: command_block

Command blocks work only when connected to the redstone electrical circuit (by the way, there is a good mod that allows you to increase the distance of energy transfer). Right-clicking opens a dialog box where you can enter a server command. The maximum command length can be 254 characters.

3. Enter the command and click "Finish"

When you enter a command into a block, you need to indicate which player it is aimed at. This can be done by entering a player's name or by choosing three different variables: "@p" (closest player), "@r" (random player), or "@a" (all players). These variables are especially useful in situations where the player who activates the command is unknown. After specifying the command, click "Finish" to save it.


Remember, one KB can only execute one command!

Practical examples of use

The following examples are simple and practical command block applications in single and multiplayer Minecraft worlds.

How to change the rules of the game

Game Rules is a relatively new feature that allows players and command blocks to change certain basic settings of the Minecraft world. There are nine described game rules that can be controlled using the command block on the map.

You can use game rules to create permanent daylight or darkness, disable spawning mobs, drop items from mobs, and much more. When entering the "gamerule" command, use the following command:

Game rule Effect of the rule
commandBlockOutput Enables / disables text input in KB
doDaylightCycle Enables / disables the day / night cycle
doFireTrick Enables / disables fire spread / disappearance
doMobLoot Enables / disables the dropping of items from mobs
doMobSpawning Enables / disables spawning mobs
doTileDrops Enables / disables drops of items from KB when they are destroyed
keepInventory Enables / disables saving items in inventory after a player dies
mobGriefing Enables / disables destruction of KB by creepers or endermen
naturalRegeneration Enables / disables health regeneration for players


How to set the weather

Some cards use a dark theme that blends perfectly with rainy weather or thunder, while others are best played with clear skies. There are many options for controlling the weather using command blocks. A simple example of a weather command:

In this case, the word input can be replaced with “clear”, “rain” or “thunder”.


You can connect a button or lever to the command block to manually switch the weather, or create an automatic redstone pattern to switch the weather all the time. This is easily accomplished using repeaters, a button, and a building block.

How to set the spawn point

Spawn points are an important component of many Minecraft maps, including adventure maps, parkour maps, puzzles, and more. Having to replay the map from the very beginning every time you die is extremely annoying. Using the "spawnpoint" command, you can save game progress and respawn after death at the nearest passed checkpoint. The command looks like this:

By connecting the command block to the building with a button or pressure plate, players can set a spawn point at the location of the KB.


If you need something more complicated, you can add coordinates to the command to specify the location of the spawn point.

Running from one place to another is tiring, especially on a multiplayer server. With the use of the command "teleport", players can move to certain coordinates of the world of Minecraft or to the location of other players. Enter in the command block:

With them, you can have a certain set of coordinates for teleporting the player, like the location of the next part of the adventure map.


If the block is not intended for a specific player, you can use "@p" to select the closest player.

If you are on a multiplayer server, you can bind the command block to yourself by using your username in Minecraft.

These are just a few of the options for how to use command blocks in single and multiplayer Minecraft games. There are many much more complex redstone commands and schemes that map creators use.

Command block appeared in popular game Minecraft only with version 1.4, where they open latest features for the participants in the game. From this version, gamers learned about the concept of the command block, as well as its connections with the console command. It is impossible to create it yourself.

The command block is a special item, you can enter and write various codes into it. After that, it starts executing the intended command when it receives a redstone signal. Such a universal thing greatly expands the powers and capabilities of the creators of maps in which the adventure mode is present. In such places, you can lock the area. It can be opened in minecraft using the right mouse button. As a result, you will see a window in which certain characters are prescribed.

How to make it


Most players will be forced to get upset because it is impossible to do such a thing on their own. The reason for this limitation is due to the fact that it opens up incredible opportunities, namely, that thanks to it you will be able to control the map, chat with all the players at once. Therefore, you cannot do it yourself, but there is a unique chance to get it.

Purchase options:

  1. If you are a server creator, you can easily use it.
  2. You can also get from the administrator of a specific server, namely, ask for rights. To do this, use the following function - give Player command_block. Enter your character's name.
  3. You can make a command block in minecraft using a special cheat code. But, you will only need to play on a specific server that supports the use of such codes. The final stage is activation, which is carried out thanks to the action of the red stone.

Commands

If you want to get the entire list of commands that you can use, then use the chat and enter the word help. For example, to get ten iron ingots, you need to write the following form - give @p iron_ingot 10. Another - will allow you to teleport to the desired point with the specified coordinates, namely - tp Player 42 21 60.

Pointers to minecraft players.

  • @e - absolutely all entities in the game;
  • @a - all minecraft participants;
  • r is the maximum search radius metric;
  • rm is the minimum radius;
  • m is a game mode.

As you can see, this is a fairly practical, interesting and easy-to-use program that allows you to increase your powers, adrenaline and enjoyment in the game to the maximum. It is important that you cannot build or craft it yourself, so you need to use a special command, then you will succeed. Happy game and new victories.

The execution of any actions assigned by the game participants is carried out by command blocks. You can't create a team like that playing in survival mode. Calling them as tools while using the creative game mode will not work either. To get such blocks functionally, you need to use a couple of fairly simple commands, which, in fact, will allow you to execute their call. Let's look at some simple methods.

Get a command block in Minecraft: method 1

Start Minecraft and select single player mode. Complete the creation of a world that has cheats enabled.

Open the chat window and press the "/" key. This symbol will open a window where you can enter commands.

Enter the destination you want by choosing from the following lines:

  • "/ Give" the name of minecraft: command_block and the desired number - after entering it into the console, the summoned items will appear among the tools;
  • "/ Setblock x y z minecraft: command_block" - this line turns one of the blocks into another, making it a command one, and to find it, you need to press F3 and select one of the found ones;
  • "/ Summon Item x y z (Item: (id: minecraft: command_block, Count: 1))" - by entering this sequence, the game participant will call the blocks to wherever he needs.

Get a command block in Minecraft: method 2

Run the game, select single mode. Log in to your existing world, possibly a server. Enter the chat required to set commands by clicking on "/".

Enter one of the suggested options:

  • "/ Give minecraft name: command_block the desired number" - this line allows you to call the required number of items and add them to the existing inventory;
  • "/ Setblock x y z minecraft: command_block" - if you enter such a text, you can replace any existing block with a command one, and to determine the location in which it is located, you need to press the F3 key;
  • "/ Summon Item x y z (Item: (id: minecraft: command_block, Count: 1))" - blocks will appear in the specified area.


Get a command block in Minecraft: method 3

  • Use the "E" key to drag the block and place it on the panel. Click on the right mouse button and place the object on the ground.
  • Click on it again with the same mouse button. This will open a menu where you can configure actions.
  • In this window you need to enter the symbol "/". The options in these blocks are similar to those used in chat. They are sometimes associated with an electrical board. This allows commands to be executed automatically.