MCBE
OverviewPacketsCommandBlockUpdate
ID 0x4E · 78Client → ServerUI

CommandBlockUpdate

Sent when you close the command block screen on the client.

command-block-update.bin
struct CommandBlockUpdate {
  tagged case index (0=EntityCommandTarget, 1=BlockCommandData) Target;
  string                                       Command;
  string                                       LastOutput;
  string                                       Name;
  string                                       FilteredName;
  bool                                         TrackOutput;
  int32 (LE)                                   TickDelay;
  bool                                         ExecuteOnFirstTick;
}

Structure

FieldTypeDescription
Targettagged case index (0=EntityCommandTarget, 1=BlockCommandData)Variant: an index selects the payload type — see the tables below.
Commandstring
Last Outputstring
Namestring
Filtered Namestring
Track Outputbool
Tick Delayint32 (LE)
Execute On First Tickbool

Structure of EntityCommandTarget

FieldTypeDescription
Entity IdActorRuntimeID

Structure of BlockCommandData

FieldTypeDescription
Block PosBlockPos
ModeCommandBlockMode
Redstone Modebool
Is Conditionalbool

Structure of BlockPos

FieldTypeDescription
Xvarint32
Yvarint32
Zvarint32

Notes

  • No special notes.