View on GitHub

Soupply

Automatically generated libraries for encoding and decoding Minecraft protocols

home / bedrock274 / play / inventory-transaction

Inventory transaction

Encode/decode this packet in Sandbox

Id: 30

Id (hex): 1E

Id (bin): 00011110

Clientbound: ✖️

Serverbound: ✔️

Fields

Name Type
type varuint
actions inventoryAction[]

Variants

Variant Field Value
Normal 0 type 0
Normal 1 type 1
Use Item type 2
Use Item On Entity type 3
Release Item type 4

Normal 0

Normal 1

Use Item

Additional Fields

Name Type
action type varuint
block position blockPosition
face varint
hotbar slot varint
item slot
player position float<xyz>
click position float<xyz>

action type

Constants:

Name Value
click block 0
click air 1
break block 2

Use Item On Entity

Additional Fields

Name Type
entity id varlong
action type varuint
hotbar slot varint
item slot
? float<xyz>
? float<xyz>

action type

Constants:

Name Value
interact 0
attack 1

Release Item

Additional Fields

Name Type
action type varuint
hotbar slot varint
item slot
head position float<xyz>

action type

Constants:

Name Value
shoot bow 0
consume 1