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
    Индур
    2:08 8 Jan 21
    У меня не работает команда title
  2. Guest avatar
    Семенчук Роман
    12:28 19 Dec 20
    А как получить командные блоки других чветов
    1. Guest avatar
      pigeon
      9:38 2 Apr 23
      есть лишь 3 цвета
  3. Guest avatar
    Симуляторы
    19:13 9 Dec 20
    А можно спросить есть команда которая забирает опыт если есть напишите пж
    1. Guest avatar
      Command pro
      23:22 9 Dec 20
      да, xp -(количество)L @p[lm=(тоже самое количество)]
  4. Guest avatar
    Нужна помощь
    11:15 1 Dec 20
    Помогите пожалуйста! Я хочу сделать карту по типу minecraft dungeons, и мне нужна команда которая телепортирует камеру вверх и она смотрит вниз. Игрок должен остоватся внизу.

    Только пишите команду для майнкрафт пе
    1. Guest avatar
      Максим
      15:59 2 Dec 20
      Блин, тоже такая же проблема (
    2. Guest avatar
      pigeon
      9:39 2 Apr 23
      такой команды нет
  5. Guest avatar
    Гость
    8:12 13 Nov 20
    Если хотите поднятся то опишите полностью итерфейс и опишите команды particle , fill , clone ,execute
    Но ненадо врать , ведь если поставите параметр работоет всегда то цепочке редстоун ненужен!!!
  6. Guest avatar
    шопинг модный лук
    23:01 4 Nov 20
    А какая команда в цикличном блоке, чтобы сломать какой то блок, а он появляется?
    1. Guest avatar
      Гость
      8:06 13 Nov 20
      Используй два цикличных , один ставит другой разрушает но если тебе нужна задержка то лучше использовать импульсный и повторитель
  7. Guest avatar
    Саня
    13:13 26 Sep 20
    Есть ли такая команда которая телепортнёт игрока который вышел на другие координаты когда он снанова зайдет без плагинов
  8. Guest avatar
    Aza
    2:08 6 Sep 20
    Можно ли сделать так чтобы команда активировалась если у игрока в руках есть какой-то предмеa
  9. Guest avatar
    Aziz Bandit
    7:49 13 Aug 20
    Спасибо огромное за то что расписали и расказали как пользоваться вспомогательными укозателями просто топ (кто знает как выдать себе палку каторая будет кикать тех кого я еë ударил? напишите кто знает пж
  10. Guest avatar
    Денис
    14:32 4 Jun 20
    Возможно ли в пе версии сделать
    (без плагинов) такую автошахту, но чтобы на одном и том же месте каждый раз спавнились разные блоки?
    1. Guest avatar
      FResh
      11:04 17 Jun 20
      Я могу сделать,это не очень сложно,но уйдет 1+ часа,могу помочь если хочешь чтоб я тебе помог,пиши сюда https://youtu.be/9tplFB9Fh9o или напиши FResh hd minecraft pe и я там выйду
    2. Guest avatar
      FResh
      11:05 17 Jun 20
      У меня уже есть карта где я делал авто шахту,я тебе ее могу скинуть,напиши мне в комментариях об этом
    3. Guest avatar
      Гость
      8:04 13 Nov 20
      Используй каманду clone и копируй сундук с необходимыми вещами так чтобы он был на 2 блока нижечем точка спавна ресурсов(блок должен быть циклом но с задержкой минимум на 25 а лучше поставить на 200(это будет каждые 10 сек) затеп цепляешь к нему цепь и вписываешь комманду fill на координаты сундука и после всей каманды напиши destroy
    4. Guest avatar
      Command Pro
      23:31 9 Dec 20
      Да конечно
      (К.бл. цикл) setblock (корды) (блок) (или fill корды корды блок)
      (к.бл. цикл) title @p шахта обновляется
      (К.бл. цикл) setblock (корды) (другой блок) (или fill корды корды блок)
      (к.бл. цикл) title @p шахта обновляется
      задержку выполнения команды ставь какую хочешь

Immerse yourself in a unique adventure with classic survival, anarchy, a clan system, and constant events!…

PvP, Survival
IP:Port craft.pe:19132
Online 400 / 1501
Version 1.1 - 1.26
Play