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
    Вика
    10:03 14 Aug 18
    Чтобы получить коммандый блок - введите в консоль данную комманду /give @s command_block
  2. Guest avatar
    лера
    12:23 11 Aug 18
    мне нужен код на командный блок!
  3. Guest avatar
    Fresh
    12:04 7 Aug 18
    Скажите как водить команду та я уже 100 раз вводил ее помоги пж
  4. Guest avatar
    Maestro PRO
    11:28 16 Jul 18
    Гихрена не происходит сколько не тыкаю ввёл команду тп и нажимаю на кнопку и нихрена
    1. Guest avatar
      Гериш
      13:25 10 Aug 18
      tp @p ( корды) и все. Сбоку кнопку поставь нажимай
  5. Guest avatar
    Еркебулан Серик
    11:12 28 Jun 18
    Круто очень помогли мне спс
    ??
  6. Guest avatar
    Константин Пожидаев
    11:58 26 Jun 18
    Что делать если блок не ставиться
    1. Guest avatar
      Еркебулан Серик
      11:12 28 Jun 18
      У тебя баги или нете версий
      1. Guest avatar
        Бас Бас
        10:04 4 Jul 18
        не баги а не тот режим игры
    2. Guest avatar
      Артём Островерхов
      23:01 3 Jul 18
      зайди в /gamemode 1
    3. Guest avatar
      Бас Бас
      10:03 4 Jul 18
      програмировать и ставить коммандные блоки можно только в креативе (gamemode 1)
    4. Guest avatar
      Марго
      14:07 12 Aug 18
      Зайди в креотив. Если не получяется то перестань пробывать ставить его на небо.
    5. Guest avatar
      devil cat
      23:49 30 Oct 18
      Зайди в gamemode 1 (креатив) в выживании и режиме приключения они не ставятся
    6. Guest avatar
      mine mine
      15:36 17 Nov 18
      зайди в гм
    7. Guest avatar
      Василиса Косарева
      17:59 10 Dec 18
      Надо ставить в креативе
    8. Guest avatar
      Disajner Diana
      9:03 10 Jun 19
      А ты оператор или пользователь?
  7. Guest avatar
    Никчто
    16:48 3 Jun 18
    Смотрела гайды по командам и у одного человека заметила в команде ^ ^ ^20
    Я понимаю, что ~ ~ ~ означают эти же кординаты, что и блок, а стрелочки вверх -что?
    1. Guest avatar
      Top4ik Gamer
      20:59 11 Jun 18
      Смотри это типо направление от игрока /execute Steve ~ ~ ~ tp @e[type=pig,r=10,c=1] ^ ^ ^5 facing @p - Относительно стиву свинья тпехается куда смотрет игрок в этом случие... facing @p - смотря на ближащего игрока это типо перенос свиньи взглядом.
  8. Guest avatar
    Gogik Ortey
    13:26 4 Apr 18
    Как включить читы (1.10.2): Заходим в мир, жмём Esc, жмём "Открыть для сети", Указываем "С читами" Profit!
    1. Guest avatar
      Еркебулан Серик
      11:14 28 Jun 18
      Ты / это в самом переди вставил
  9. Guest avatar
    Gogik Ortey
    13:24 4 Apr 18
    А ещё? Для тех кто хочет, могу дать посложнее:
    Gamerule - игровые правила (подробно ищите в интернете)
    Effect (игрок) (ID Эффекта) (время сек.) (уровень) - Эффекты на игрока
    Clear - Убрать, очистить. Сама по себе не работает, только с другими коммандами.
    Setblock x y z - Поставить блок (один)
    Fill - Очень полезная комманда. Заполнить с x1 y1 z1 по x2 y2 z2 (имя блока (пустота - air))
    СУПЕР БОНУС: Если овце дать бирку с именем "Jeb_", то она станет радужной!!!
    1. Guest avatar
      Egor229
      0:47 29 Jun 18
      Вот ты тупой, на Вики не можешь прочитать команды.
    2. Guest avatar
      TheDrago
      18:42 7 Nov 18
      изи
      А ты сделай приват на командных блоках
      Я создавал
  10. Guest avatar
    Няшка
    9:58 4 Mar 18
    Спасибо а как сделать зелёный комадный блок?И оранжевы?
    1. Guest avatar
      Еркебулан Серик
      11:19 28 Jun 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