ModsCraft » Guides » Command Block [Minecraft Guides]

Command Block [Minecraft Guides]

WhatsApp
Telegram VKontakte Odnoklassniki Pinterest
Command Block [Minecraft Guides]

A command block allows you to execute the same commands in Minecraft as you would in the regular chat. So what is a command block, how do you get it, and how do you use it? In this article, we'll tell you all about it!

Command Block [Minecraft Guides]

It's a really useful block that expands the possibilities for creating maps in Minecraft.

You can find a full list of commands on the Console Commands page, but not all of them work in Minecraft on Android, iOS, and Windows 10 versions.

+ of command blocks in MCPE:

  • Unlike the PC version, command blocks in PE don't cause heavy lag, so FPS stays stable.
  • The command block interface is adapted for mobile devices.

- of command blocks in MCPE:

  • Too limited functionality.

How to get a command block?

You can't craft a command block in the game, but you can give yourself one using the command /give Steve command_block, where Steve is the player's username. You can also use @p instead of Steve to give the block to yourself. Don't forget to enable cheats in the world settings.

How to enter a command into a command block?

To do this, open its interface. It's very easy: just tap on it. In the Command Input field, enter the command that the command block will execute. Below that, there's a field where you can see an error if you entered something wrong.

Example commands:

  • give @p apple 5 - gives the player five apples.
  • setblock ~ ~+1 ~ wool - places a wool block at the player's coordinates.
  • tp Player 48 41 14 - teleports the player named Player to coordinates x=48, y=41, z=14.

Who do command blocks work with?

Using selectors, you can target a player or entity for the command to affect:

  • @p — the player who activated the command.
  • @a — all players.
  • @r — a random player.
  • @e — all entities (including mobs).

Additional selectors:

How do you, for example, teleport all players to a certain point except yourself? Easy: use additional selectors, e.g., tp @a[name!=Admin] 228 811 381 teleports all players except the one named Admin to x=228, y=811, z=381. All parameters:

  • x — X coordinate. If you use ~ instead of a value, the point will be the command block's location.
  • y — Y coordinate. If you use ~ instead of a value, the point will be the command block's location.
  • z — Z coordinate. If you use ~ instead of a value, the point will be the command block's location.
  • r — maximum search radius.
  • rm — minimum search radius.
  • m — game mode.
  • l — maximum experience level.
  • lm — minimum experience level.
  • name — player's username.
  • c — additional argument for @a that limits the number of players affected. For example, @a[c=5] affects the first five players in the list, @a[c=-5] affects the last five.
  • type — for example, the command /kill @e[type=Skeleton] kills all skeletons, and /kill @e[type=!Player] kills all entities that are not players.

Example command:

  • give @p gold_ingot 20 - gives the nearest player within a 10-block radius 20 gold ingots.

Command Block Modes

There are three command block modes: Impulse, Chain, and Repeat - the block's color changes depending on the mode.

  • Impulse mode (orange): activates the specified command once.
  • Chain mode (green): the command runs if the block is attached to another command block and connects to other command blocks.
  • Repeat mode (blue): the command repeats every tick while the block is powered.

Impulse Mode

These are standard command blocks used to interact with chain blocks, but you can also execute commands directly in these blocks.

Chain Mode

As the name suggests, this mode works like a chain.

Note that for a chain block to work, you need an impulse command block to send the signal, as well as a redstone block - without it, the chain command block won't work.

The title command and its parameters:

  • title clear - clears messages from the player's screen.
  • title reset - clears messages and resets parameters.
  • title title - the main title displayed on screen.
  • title subtitle - the subtitle displayed when the title appears.
  • title actionbar - displays text above the inventory.
  • title times - fade-in, stay, and fade-out times. Default values: 10 (0.5s), 70 (3.5s), and 20 (1s).

Example commands:

  • title @a title §6Beginning - title with orange color.
  • title @a actionbar Hello! - displays text above the inventory.
  • title @a subtitle Chapter 1 - subtitle.

Repeat Mode

Executes the command as long as the command block is powered by redstone. For example, tp @e[type=pig] ~ ~+ ~ will teleport all found pigs to the command block's location with a height offset of +1.

That concludes our guide on command blocks. If the developers add anything new for mobile command blocks, we'll update this article and let you know about the new features!

wink
327 comments
  1. Guest avatar
    Александр dobriy
    14:40 18 Jun 19
    А как сделать так, чтобы после удара игрока, он становится быстрее, а потом, медленнее, и после удара игрок который ударил другого игрока, встал на месте, а потом побежал дальше, как, чтобы ты был в выживании, а другие игроки тебя не могли бить, и после второго удара по игроку, он телепортируется в определённую зону, как сделать так, чтобы с шансом (маленьким) одному из игроков выдавался предмет?
    И как сделать так, чтобы ты убивал игрока с одного удара ТОЛЬКО меча или ТОЛЬКО после попадания из лука? И как сделать так, что бы после?
    1. Guest avatar
      Вячеслав Винокуров
      20:57 19 Jul 19
      Это все сложно, тут нужна команда execute
    2. Guest avatar
      layncer1
      12:31 30 Mar 20
      Ты мне мозг сломал этим коментом но это возможно
  2. Guest avatar
    Тимофей Захарченко
    13:09 30 May 19
    Почему когда в настройках блока я ставлю цепь или цикл, командный блок всё равно работает как импульс? Помогите решить проблему!
  3. Guest avatar
    Кабан
    15:26 15 Mar 19
    tp @e[type=pig] ~ ~+ ~ а что обозначает знак ~ ?
    1. Guest avatar
      Виталий Стародумов
      11:22 17 Mar 19
      Координаты блока
    2. Guest avatar
      Darwu
      13:38 5 Jul 19
      Это означает относительно исполнителя команды. То есть если тильды будут написаны в командном блоке, значит относительно блока. Если команду напишешь в чате, значит относительно тебя координаты. Типа ты - нулевая координата
    3. Guest avatar
      Ky4Ka
      17:26 11 Sep 19
      ето тильда обозначает место того игрока который прописал команду или командный блок который выполняет действие
  4. Guest avatar
    Тимур Кошара
    12:41 10 Mar 19
    как сделать так, чтобы не было ограничений когда бьёшь игрога? я имею в виду, что когда бьешь игрока без остановки. если вы не поняли, тогда зайдите на сервер versai.pro порт стандарт, потом нажимаете третий слот с левой стороны экрана, тапаете по земле, и нажимаете на комбо, комбопе и идите бейте игрока.
    1. Avatar Admin
      Admin
      13:15 10 Mar 19
      А причем тут сама игра и сервер? Такие вопросы уже к владельцам серверов.
  5. Guest avatar
    кто то
    14:56 3 Mar 19
    как сделать окошко убитых тобой монстров
    1. Guest avatar
      FruitLoopsm
      22:42 17 Aug 19
      У майнкрафт пе, scoreboard имеет только dummy так что нельзя
  6. Guest avatar
    Ника
    10:45 12 Feb 19
    Подскажите как скачать?!!
    1. Guest avatar
      Disajner Diana
      8:55 10 Jun 19
      Что скачать?
  7. Guest avatar
    King pro
    16:56 18 Jan 19
    Как сделать так чтобы восстанавливалась определённая территория?
    1. Guest avatar
      Динислам Насыров
      7:31 19 Jan 19
      Пишиш сночала делаеш построюку потом водоеш командыный блок и пишиш /clone кортинаты 2 раза а потом другие кординаты куда хотеш и делать а потом 2 команый блок
      /kill @e[type=item,r= кординаты,x= кординаты,y= кординаты ,z= кординаты и стате на да ставить запитую позле r= и других пишеш запитые x, y, z,
  8. Guest avatar
    Аид
    12:28 13 Jan 19
    ребят! я обращаюсь к тем кто немножко нуууууууууууууууб. Короче кто нибудь из нубов ставит знак / ???
    1. Guest avatar
      Док
      10:20 6 Mar 19
      Я в командный блок не ставлю /!!!! Не по
      Рома зачем время тратить!
  9. Guest avatar
    Ender play
    0:57 2 Jan 19
    Я вообще всё это знаю. Я интересовался аргументами для команд
    1. Guest avatar
      Ярик
      21:32 20 Mar 19
      я тоже
  10. Guest avatar
    муха
    7:27 25 Dec 18
    Пж ссылку всех описаний коман с командами

The best Minecraft server! Accessible on all versions!

Clans, Anarchy, Survival, Hardcore, PvP
IP:Port gamepe.me:19132
Online 422 / 2500
Version 1.1.5 - 1.26
Play