command block (Beginner)

Hello!

In this session, we want to learn interesting command block codes.

Command block is a block that has the ability to code and with it you can control almost the entire game.

First of all, you must be able to get the command block.

This block is not in the inventory and you have to get it through chat.

So you write this code in the chat:

/give @p command_block

Well, to learn better, we will analyze this simple code.

The command / give, which also means to get a device.

Command_block, which is the same part of coding.

Tip: If a name and chest are two words or more, use the underline instead of spaces.

@ Means selector.

We have 4 types of selectors in the computer:

@p: means doing the code on the closest person. for example:

/give @p diamond_sword

@r: means doing the code on a lucky player of your choice. for example:

/give @r grass_block

@a: It means doing code on all players. for example:

/give @a emerald

@e: means doing code on all creatures. for example:

/give @e netherite

But instead of selector you can write @player and instead of player write the name of the player. for example:

/give @fshahi866 gold_ingot

So far, you have learned the give and take command block.

But there are still a lot of other commands!

Kill command with which you can kill anyone! for example:

/kill @player

Instead of player, you should write the name of one of the players.

The summon command with which you can spawn any creature. for example:

/summon entity

Instead of an entity, you must enter the name of the inventory you want to spawn.

If you want to write position, put this code. for example:

/summon iron_golem x y z

Instead of x y z you should write position.

If you do not know the position, be sure to refer to the position tutorial.

The tp command is a command that can be used to teleport to any location.

But to do this, you must first learn the position. for example:

/tp @p x y z

Instead of x y z you have to put the position.

This information that we provided to you in this article was for beginners, and we will put the more difficult codes in other articles.
Do not forget to like and comment!

please write your comments

Go back

Your message has been sent

Warning
Warning
Warning
Warning.

Design a site like this with WordPress.com
Get started