FANDOM


Commands
IMG 2883
Example of Give Command

Type

Technical

In Game

40 Commands

First Appearance

Update 0.16.0

Commands (AKA Cheats) are actions entered by the Player which make a certain action occur in Minecraft Pocket Edition automatically. Commands were added in Update 0.16.0.

Usage

Commands are mostly used to make any action in-game happen automatically, such as Mob spawning, Block placing, inflicting Status Effects, teleporting, etc.

To execute a command The Player must enter Chat, precede the command with a forward slash, give the arguments and hit the return key. For devices having the Tab-key, it can be used to complete parts of the commands. When typing, possible completion will show.

Commands can also be used by entering them in a Command Block.

Note that for Commands to work, "Cheats" needs to be enabled, which in turn will disable achievements. To turn on cheats, go to Settings > Game > Cheats: On.

List of Commands

For a more detailed list, see here.


The current commands in Minecraft Pocket Edition are-

Command arguments

Most commands accept arguments, i.e. <player: target>, where the first part indicates what the arguments refers to, and the second part refers to the type of argument. In the example given a Player identifies a player by using a target type argument. The different types of arguments are described within this section.

string

Any combination of alphanumeric characters.

int

A number, which might have range associated with it. Negative numbers are possible. Positional counts are zero-based - e.g., the first slot in a player's 36-slot inventory is referred to in commands as zero and the last is 35.

x y z

A coordinate set of int's denoting a coordinate. The x value indicates distance towards the East from the origin. The y value indicates height above bedrock. The z value indicates distance towards North from the origin. Note that to use The Player's position one might use '~' or offsets based upon this. I.e. the command /tp ~5 ~ ~-10 would move The Player 5 meters/blocks to the East, keep the height, and 10 meters/blocks to the South (as it is a negative offset).

Target

Instead of specifying coordinates, some commands allow specifying a target. This can relate both to players and entities.

  • @a – All players
  • @e – All entities
  • @p – Nearest players
  • @r – Random player(s)

These selector arguments can be further specified using text like in /kill @e[type=cow,r=10] which would kill all cows within a radius of 10 meters/blocks.

Trivia

  • Commands have been used in many Multiplayer Servers even before they were officially released. However, this was done through Plugins.
  • Commands were originally slated for Update 0.15.0, however, they were not added.
  • In the Update 1.0.5 Beta, there was a /particle command. However. it was removed due to functional issues, and the update it returns in has not been confirmed.

Start a Discussion Discussions about Commands

  • MCPE /playsound Command List

    4 messages
    • i do know one sound its mob.enderdragon.death  but im still looking for a list  i hope this helps you even a little
    • I found a map: WARNING: NOT ALL OF SOUND WORK correctly AND THIS MAP WAS BUILD ON THE BETA OF 1.1. SO AND THERE ONE MORE VERSION THAT IT GOING...
  • CanDestroy / CanPlaceOn

    6 messages
    • I know the command for /give so you can have a tool/block that can destroy or be placed on. For my examples, I am going to use a diamond pick...
    • I will try that. Thank you!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.