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
| Field | Type | Description |
|---|---|---|
| Target | tagged case index (0=EntityCommandTarget, 1=BlockCommandData) | Variant: an index selects the payload type — see the tables below. |
| Command | string | |
| Last Output | string | |
| Name | string | |
| Filtered Name | string | |
| Track Output | bool | |
| Tick Delay | int32 (LE) | |
| Execute On First Tick | bool |
Structure of EntityCommandTarget
| Field | Type | Description |
|---|---|---|
| Entity Id | ActorRuntimeID |
Structure of BlockCommandData
| Field | Type | Description |
|---|---|---|
| Block Pos | BlockPos | |
| Mode | CommandBlockMode | |
| Redstone Mode | bool | |
| Is Conditional | bool |
Structure of BlockPos
| Field | Type | Description |
|---|---|---|
| X | varint32 | |
| Y | varint32 | |
| Z | varint32 |
Notes
- No special notes.
