When creating any playable map, which will differ from randomly generated areas, construction, pixel art or plot scenarios, the server administrator can not do without using the "built-in" functions. To implement them, you can use the command block. This is a special device in which you can record a system command, starting from the player receiving a resource and ending with his teleportation to a specified location. But how to give yourself a command unit?
Warning
There are only two ways to purchase this item. Both of them consist in the fact that you need to use system commands. This comes from the fact that it is impossible to make (craft) the command unit with improvised materials. That is why the question: "How to give yourself a command unit?" - always relevant. Whatever mods you set yourself, no matter how you experiment with the ingredients, nothing will come of it. Anyone who claims that by downloading his mod, you will be able to create command blocks - a scammer who seeks to "throw" a virus at you. So how to give yourself a command block?
Ways
The first method of obtaining a command unit is that you can create a map in the "creativity" mode. The command block will be available for receiving, among other items.
The second method is a bit more complicated. To do this, you need to use the console command. How to give yourself a command block using the system? To do this, you will have to open a chat and write the following: / give [ character name ] minecraft : command_block [number]. Also, this team will be the answer to the question of how to issue a command block in Minecraft to another player.
All syntax is written without parentheses. Instead of the character’s name, you must specify the nickname of the player you need, number is the number of received command blocks. By the way, the main condition for the work of this team is permission to use cheats. If this feature is disabled, you will not receive this item in either single or multiplayer games.
Application
So, let's say you figured out how to give yourself a command block, and it lies in your inventory. Now let's learn how to use it.
To place a block on the surface of the earth, drag it onto the quick access toolbar. After that select it and click on the necessary place. At this moment, the control interface will open before you, with which we will enter the function. It should be borne in mind that one command unit can execute only one instruction.
However, it is not always necessary for the player to find the command block and use it. It is much more interesting that the user can press the lever, and a mountain of gold or necessary items appears in front of him. In this case, you can use red stone patterns.
Teams
In order to use the command unit, it is not enough to know how to obtain or install it. The most important thing is to be able to correctly spell the syntax of the instruction. For this, it is important to remember a few simple rules.
- First, the team itself is written. Any function that can be activated using the console can be registered here.
- Then the "application area" is set. That is, the player to whom the effect or coordinates of the appearance of the item will be applied.
- And finally, additional arguments to clarify the characteristics of the object.
In general, the team will look like this.
/ [team] [player nickname or coordinates] [parameters]
To better understand, let's give some real examples. Let's start with how to issue items with a command unit.
/ give @p [r = 10] iron_ingot 30
Using this instruction, the command block will give the nearest player within a radius of 10 blocks iron ingots - 30 pieces. Now let's see how to work with coordinates.
/ spawn 10 20 30 / summon EnderDragon
Actually, from the syntax, it’s clear that the team calls the dragon according to certain coordinates. Finally, we note that a complete list of commands used by the command block can be seen by typing / help in the chat.