Skip to content

CommandBlockType 5.47.0 ​

enum · pocketmine\block\utils\CommandBlockType · source

Kind of a command block: each one is a different block (command_block, repeating_command_block and chain_command_block). The values are the modes of the command block screen (CommandBlockUpdatePacket).

Cases ​

CHAIN ​

php
case CHAIN = 2

Runs when the command block pointing into it has run.

IMPULSE ​

php
case IMPULSE = 0

Runs once when activated.

REPEATING ​

php
case REPEATING = 1

Runs every TickDelay ticks while active.

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.