Skip to main content

Inventory & UI Packets

Packets in inventory, window, and interface_ packages.

ChatMessage (200)

Bound: Bidirectional

Sends a chat message or command.

FieldTypeNotes
nullBitsByteBitmask.
channelByte0=System, 1=Chat, 2=Whisper.
senderStringOptional. Sender name.
textStringOptional. The message content.

Notification (201)

Bound: Clientbound

Shows a UI "Toast" notification.

FieldTypeNotes
titleStringHeader text.
messageStringBody text.
iconStringAsset path for the icon.

KillFeedMessage (202)

Bound: Clientbound

Displays a kill message in the top-right kill feed.

FieldTypeNotes
textStringThe raw text to display.
iconStringOptional. Path to an icon (e.g. weapon sprite).

WorldSavingStatus (203)

Bound: Clientbound

Shows the "Saving..." icon in the corner.

FieldTypeNotes
activeBooleanTrue to show, False to hide.

UpdatePortal (204)

Bound: Clientbound

Updates the visual state of a portal (e.g., Adventure Mode dungeon entrance).

FieldTypeNotes
portalIdIntEntity ID of the portal.
stateByte0=Inactive, 1=Active, 2=Cooling Down.
destinationStringOptional. Name of the destination world.

UpdatePlayerInventory (205)

Bound: Clientbound | Compressed: Yes

Synchronizes the player's local inventory slots.

FieldTypeNotes
nullBitsByteBitmask.
itemsMap<Int, ItemStack>Optional. Slot Index -> Item Data.

MoveItemStack (206)

Bound: Serverbound

Sent when the player drags and drops an item.

FieldTypeNotes
sourceWindowIntID of source container.
sourceSlotIntIndex in source.
targetWindowIntID of target container.
targetSlotIntIndex in target.

OpenWindow (208)

Bound: Clientbound

Instructs the client to open a container interface (Chest, Crafting Table).

FieldTypeNotes
windowIdIntUnique ID for this session.
typeStringWindow layout type (e.g., "container_generic_9x3").
titleStringWindow title.

CloseWindow (209)

Bound: Bidirectional | State: Play

Sent when a user presses Escape to close a GUI, or by the server to force-close a window.

FieldTypeNotes
windowIdIntThe ID of the window to close.

CustomHud (220)

Bound: Clientbound

Loads a custom HTML/CSS UI layer defined by a script.

FieldTypeNotes
idStringUnique HUD ID.
htmlStringRaw HTML content.
visibleBooleanInitial visibility.