When making any playable card thatwill differ from randomly generated areas, construction, pixelarte or plot 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 record a system command, ranging from receiving a resource by a player and ending with its teleportation to a specified location. But how to give yourself a command block?
A warning
There are only two ways to purchase this.subject. Both of them consist in the fact that you will need to use system commands. This is due to the fact that the command block cannot be made (scraped) with improvised materials. That is why the question: "How to give yourself a command block?" - always remains relevant. Whatever fashion you put 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 crook who seeks to "throw" a virus at you. So, how to give yourself a command block?
Ways
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 to receive among other items.
Второй метод чуть сложнее.For this you have 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.
The entire syntax is written without brackets.Instead of the name of the character, you must specify the nickname of the desired player, the number - 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.
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 surfaceland, drag it to the quick access toolbar. After that, select it and click on the right place. At this point, you will see a management interface with which we will enter the function. It should be noted that one command block can execute only one instruction.
Однако не всегда нужно, чтобы игрок мог найти command block and use it. It is much more interesting that the user could press the lever, and in front of him appeared a mountain of gold or necessary items. In this case, you can use the schemes of red stone.
Commands
To take advantage of the command block,there is little to know how to get or install. The most important thing is to be able to correctly spell the syntax of instructions. For this it is important to remember a few simple rules.
- First, the team itself is written. There can be spelled any function that is activated using the console.
- Then set the "application zone". That is, the player to whom the effect or location coordinates of the object will be applied.
- And finally, additional arguments to clarify the characteristics of the object.
In general, the command will look like this.
/ [team] [player's nickname or coordinates] [parameters]
To better understand, let's give some real examples. Let's start with how to issue items to the command block.
/ give @p [r = 10] iron_ingot 30
With the help of this instruction, the command block will issue iron ingots to the nearest player within a radius of 10 blocks - 30 pieces. Now let's see how to work with coordinates.
/ spawn 10 20 30 / summon EnderDragon
Actually, from the syntax it is clear thatteam calls on certain coordinates of the dragon. Finally, we note that the full list of commands used by the command block can be seen by typing / chat in the chat.