MCBE
OverviewPacketsContainerOpen
ID 0x2E · 46BothInventory

ContainerOpen

Opens a container UI (chest, furnace, horse, ...), positioning it and binding entity containers.

container-open.bin
struct ContainerOpen {
  ContainerID                                  ContainerId;
  ContainerType                                Type;
  BlockPos                                     Pos;
  ActorUniqueID                                EntityUniqueId;
}

Structure

FieldTypeDescription
Container IdContainerID
TypeContainerType
PosBlockPos
Entity Unique IdActorUniqueID

Structure of BlockPos

FieldTypeDescription
Xvarint32
Yvarint32
Zvarint32

Notes

  • Both sides may send it (the client can open its own inventory with type -1/Inventory).