Bedrock Edition:Developer Commands

Developer Commands.png

Pocket Edition v0.8.0 alpha build 1 contains developer commands that are freely accessible in Survival mode. These commands allow for the player to obtain a large array of discontinued features. Developer commands were disabled in v0.8.0 alpha build 2.

List of commands

For additional information regarding this version's command functionality, see Pocket Edition v0.8.0 alpha build 1 § Command format.

The following 11 commands are available for the player to use:

  • /timeset
    • Syntax: /timeset <amount: int>
  • /timeadd
    • Syntax: /timeadd <amount: int>
  • /timelock
    • Syntax: /timelock [lock: Boolean]
  • /timestop
    • Syntax: /timestop [lock: Boolean]
  • /give
    • Syntax:
      • /give <itemName: Item>
      • /give <player: target> <itemName: Item> [amount: int] [data: int]
  • /player
    • Syntax:
      • /player <ability: Ability>
      • /player <player: target> <ability: Ability> [value: Boolean]
  • /health
    • Syntax: /health <amount: int>
  • /getpos
    • Syntax: /getpos [player: target]
  • /gethealth
    • Syntax: /gethealth [player: target]
  • /tp
    • Syntax: /tp <destination: x y z>
  • /clearInventory
    • Syntax: /clearInventory [player: target]

Obtainable features

This is a list of discontinued features that are known to be obtainable through developer commands.

/give

/give allows the player to obtain every item that exists in this version. This command accepts every valid item ID for the itemName argument and has no restrictions on accepted damage values. Damage values as high as 2,147,483,647 and as low as -2,147,483,648 are available through /give, but due to damage values being stored as shorts, only damage values as high as 32,767 and as low as -32,768 are savable. Regardless, this results in millions of invalid data value items being obtainable through /give.

Obtainable discontinued item IDs
Obtainable discontinued data values[note 1]

/player

A player shown flying in a Survival mode world.

/player is able to change which flags are enabled under a player's abilities, allowing for flight (/player fly), invincibility (/player nodamage), and "instabuild" (/player instabuild). The effects of the instabuild flag have not been fully documented, but it is currently known to do the following if it is enabled in Survival mode:

  • In v0.9.0 build 1 and later, the player is unable to open the interfaces for any interactable blocks such as crafting tables or chests.
  • In v0.9.0 build 1 and later, using tools does not deplete their durability.
  • In v0.9.0 build 1 and later, normally hostile mobs are neutral towards the player.
  • In v0.11.0 build 1 and later, placing down blocks does not remove them from the player's inventory.

All ability flags are reset to their default values in v0.12.1 alpha build 1 and later.

/health

A player with a large amount of health.

/health can set the player's health to any value up to 2,147,483,647. The player's health is stored as a short, which results in a maximum of 32,767 HP being savable. Negative values instantly kill the player and are therefore not retainable.

Extra health on a player is deleted in v0.12.1 alpha build 1 and later due to the implementation of attributes.

Notes

  1. As every damage value of every item is obtainable, this list only contains invalid data values that are known to be obtainable through other means.