When creating any playable card thatwill differ from randomly generated areas, construction, pixelart or scenario scenarios, the server administrator can not do without the use of "built-in" functions. To implement them, you can use the command block. This is a special device in which you can write a system command, from the player receiving the resource and ending with his teleportation to the specified location. But how to give yourself a command block?
There are only two ways to purchase thissubject matter. Both of them consist in the fact that you need to use system commands. This is due to the fact that it is impossible to do (scrub) the command block with improvised materials. That is why the question: "How to give yourself a command block?" - remains relevant always. Whatever kind of fashion you put yourself, no matter how you experiment with the ingredients, you will not get anything done. Anyone who claims that by downloading his mod, you will be able to create team blocks - a scammer who seeks to "toss" you a virus. So, how to give yourself a command block?
The first method of obtaining a command block is that you can create a map in the "creativity" mode. The command block will be available for receipt among other items.
The second method is slightly more complicated.To do this, you need to use the console command. How to give yourself a command block with the help of the system? To do this, you need to open the chat and write the following: / give [character name] minecraft: command_block [number]. Also this team will be the answer to the question, how to issue a command block to "Meinkraft" to another player.
Весь синтаксис пишется без скобок.Instead of the character's name, you must specify the nickname of the desired player, the number is the number of command blocks received. By the way, the main condition for this command is permission to use cheats. If this feature is disabled, you will not receive this item in either a single or multiplayer game.
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.
In order to place the block on the surfaceEarth, drag it to the Quick Access toolbar. After that, select it and click on the desired location. At this point, you will open the management interface, with which we will enter the function. It should be noted that one command block can execute only one instruction.
However, it is not always necessary for the player to findcommand block and use it. Much more interesting is that the user could press the lever, and before him appeared a mountain of gold or the right objects. In this case, you can use a scheme of red stone.
In order to use the command block,little to know how to get it or install it. The most important thing is to be able to correctly write the syntax of the instruction. For this it is important to remember a few simple rules.
In general, the command will look like this.
/ [command] [player nickname or coordinates] [parameters]
To better understand, let's give some real examples. Let's start with how to issue items command block.
/ give @p [r = 10] iron_ingot 30
With the help of this instruction, the command block will give to the nearest player in a radius of 10 blocks iron bars - 30 pieces. Now let's see how to work with coordinates.
/ spawn 10 20 30 / summon EnderDragon
Actually, it is clear from the syntax thatthe team calls for certain coordinates of the dragon. Finally, we note that the full list of commands used by the command block can be seen by entering into the chat / help.