CommandBlock

A command block.

Functions

Link copied to clipboard
abstract fun execute()

Executes this command block.

Link copied to clipboard
abstract fun isAutomatic(): Boolean

Whether this command block executes automatically, not requiring a redstone signal.

Link copied to clipboard
abstract fun isPowered(): Boolean

Whether this command block is powered.

Properties

Link copied to clipboard
abstract val block: Block

The block that this entity is bound to.

Link copied to clipboard
abstract var command: String

The command that this command block will run.

Link copied to clipboard
abstract var lastOutput: Component

The last output from the command block running the command.

Link copied to clipboard
abstract val position: Vec3i

The position of this block entity.

Link copied to clipboard
abstract val type: BlockEntityType<*>

The type of this block entity.

Link copied to clipboard
abstract val world: World

The world this block entity is in.