Перейти к основному содержанию

CommandBlockEntity

{}CommandBlockEntity:compound extends IBlockEntity

CommandBlock (Command Block) with ID = 26.

Tid:string= "CommandBlock"
TCommand:string

Command to be executed here, such as /playanimation \@e[type=!minecraft:player] animation.humanoid.celebrating null 20.

TCustomName:string

Like nametag, but above command block; hovering text.

BExecuteOnFirstTick:byte

When is set to cycled and conditions are done, first command executes without .

ILPCommandMode:int

0 means impulse (single activation), 1 chain (activation when pointed to chain command block executed) and 2 cycled (forever execution between delay with condition checking).

ILPConditionalMode:int

0 means statement, 1 doesn't care about result.

ILPRedstoneMode:int

0 means always active, 1 requires redstone.

ILastExecution:int

When last execution has been performed.

TLastOutput:string

Message recorded with last execution, requires to be set to true.

[]LastOutputParams:list<string>

Splitted to command parts without first slash (or symbol if slash is not provided), requires to be set to true.

ISuccessCount:int
ITickDelay:int

Delay in ticks between executions (cycled blocks) or before starting it.

BTrackOutput:byte

Save last execution command results.

IVersion:int

Database tracking identifier (in 1.16 equals 13).

Iauto:int
BconditionMet:byte

Condition right now is true?

Bpowered:byte

Redstone signal found?

BisMovable:byteIBlockEntity

Block Entity will be saved without instantiating new one when transporting (via pistons, commands, etc.).