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
    Муха
    11:15 23 Dec 18
    Тут очень мало написано, где прочитать больше ? Откуда вы все это узнали ?
  2. Guest avatar
    Влад
    19:17 2 Dec 18
    Клас!!!
  3. Guest avatar
    Ярослав Фесюк
    15:18 27 Nov 18
    :( не нашол того что надо:(
    1. Guest avatar
      муха
      7:29 25 Dec 18
      Инвентарь открывает и он там
    2. Guest avatar
      Динислам Насыров
      7:32 19 Jan 19
      А ты прописаль команду /give @a command_block
    3. Guest avatar
      Тимофей
      13:41 3 Apr 19
      а что ты искал?
  4. Guest avatar
    Илья
    20:41 24 Nov 18
    Почему у меня нет командного блоков? Я ввёл команду а он не появился а просто написала в чате
    1. Guest avatar
      Тимофей
      13:43 3 Apr 19
      попробуй это:/give @a chain_command_block или это:/ give свой ник command_block
  5. Guest avatar
    Николай Андреев
    18:07 12 Nov 18
    я не очень разбираюсь в ком.блоках
    1. Guest avatar
      Тимофей
      13:44 3 Apr 19
      могу помочь. скажи чего ты хочешь?
      1. Guest avatar
        Disajner Diana
        8:59 10 Jun 19
        Познать этот мир и властвовать им
      2. Guest avatar
        CYXAPb
        3:57 14 May 20
        Тимофей я хочу научится писать примечания с вот такими скобками {}
  6. Guest avatar
    TheDrago
    18:35 7 Nov 18
    Чтобы ком.блок не засорял чат пише команду /gamerule CommandBlockOutPut false
    1. Guest avatar
      Ярослав Фесюк
      15:19 27 Nov 18
      Спасибо!!
    2. Guest avatar
      Ярик
      21:33 20 Mar 19
      Спасибо
  7. Guest avatar
    Данил Медведев
    12:04 31 Oct 18
    А как сделать, чтобы после нажатия (на кнопку) она пропадала?
    1. Guest avatar
      Дима Никоноров
      22:59 12 Nov 18
      /setblock (координаты кнопки) air
  8. Guest avatar
    __Fox_Hacker_
    22:39 14 Oct 18
    Круто
  9. Guest avatar
    Skay
    18:09 14 Oct 18
    На версии 1.1.х не работают аргументы команд такие, как: r, rm, l, lm, c. Но если запустить карту сделанную в более ранней версии, и активировать командный блок (который был на этой карте изначально) с этими же аргументами то они работают
    1. Guest avatar
      mine mine
      15:35 17 Nov 18
      да
  10. Guest avatar
    Мария Бойко
    8:56 1 Oct 18
    Здрасте скажите пж какие команды есть,???
    1. Guest avatar
      TheDrago
      18:40 7 Nov 18
      fill -заменяет все блоки в указанной области.
      give - выдать предмет
      kill - убить сущность
      gamerule - изменение игровых правил
      setblock - установить блок в указанной кординате
      execute - выполнение команды относительно сущности
      напиши help,я закалебался писать

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