← Back to Index

CommandBlockUpdatePacket (78)

Command Block Update
Sent when you close the command block screen on the client.
Field Name Type Field Index Description
Target (Required) oneOf 0 The command block target. The variant index encodes the legacy 'Is Block?' bool: 0 = entity (e.g. minecart command block), 1 = block.
oneOf<EntityCommandTarget, BlockCommandData>:
Control Value [uint32] Type Details
0 EntityCommandTarget -
1 BlockCommandData -
EntityCommandTarget (Variant 0)
Field Name Type Field Index Description
Target Runtime ID (Required) ActorRuntimeID 0

ActorRuntimeID

Field Name Type Field Index Description
Actor Runtime ID (Required) varuint64 0
BlockCommandData (Variant 1)
Field Name Type Field Index Description
Block Position (Required) BlockPos 0

BlockPos

Field Name Type Field Index Description
X (Required) varint32 0
Y (Required) varint32 1
Z (Required) varint32 2
Command Block Mode (Required) varuint32 1
Redstone Mode (Required) boolean 2
Is Conditional (Required) boolean 3
Command (Required) string 1
Last Output (Required) string 2
Name (Required) string 3
FilteredName (Required) string 4
Track Output (Required) boolean 5
Tick Delay (Required) int32 6
Execute On First Tick (Required) boolean 7 If a delay is set on a repeating command block, should the command execute on first tick, or on first delay?