ItemUseOnActorInventoryTransaction
0ActionsInventoryTransaction · variable
1Runtime IdActorRuntimeID · variable
2Action Typevarint32 · variable (up to 5 bytes)
3Slotvarint32 · variable (up to 5 bytes)
4Handuint8 · 1 byte
5ItemNetworkItemStackDescriptor · variable
6From PositionVec3 · variable
7Hit PositionVec3 · variable
Fields
8 top-level fields0ActionsBase inventory actions. Lists the inventory slot changes associated with this transaction.InventoryTransaction
0ActionsList of inventory slot changes. Each action describes which container slot is changing and what the item descriptor transitions from and to.InventoryActionas
array<InventoryAction>0SourceThe inventory source identifying which container this action targets.InventorySource
0Source TypeThe inventory source type.CompressionEnum-as-ValueInventorySourceTypeas
varuint32- 0
Container Inventory - 1
Global Inventory - 2
World Interaction - 3
Creative Inventory - 99999
Non Implemented Feature TODO
- 0
2Bit FlagsoptionalSource flags. Present only for WorldInteraction source type.CompressionEnum-as-ValueInventorySourceFlagsas
varuint32- 0
No Flag - 1
World Interaction Random
- 0
- 1SlotThe slot index within the source container.Compression
varuint32 - 2From ItemThe item descriptor representing the state of the slot before this action.NetworkItemStackDescriptor
- 3To ItemThe item descriptor representing the desired state of the slot after this action.NetworkItemStackDescriptor
1Runtime IdThe runtime ID of the actor being interacted with or attacked.ActorRuntimeID
- 0Actor Runtime IDCompression
varuint64
2Action TypeInteract: right-click on actor. Attack: left-click or trident spin attack.CompressionEnum-as-ValueItemUseOnActorActionTypeas
varint32- 0
Interact - 1
Attack - 2
Item Interact
- 0
- 3SlotThe inventory slot of the item being used on the actor.Compression
varint32 - 5ItemThe item stack descriptor of the item being used on the actor.NetworkItemStackDescriptor
Packet references
1 reference- InventoryTransactionPacketTransaction › ItemUseOnActorInventoryTransaction › ItemUseOnActorInventoryTransaction
Changelog
Stable releases
Changes between stable protocol releases.
No stable release changes are recorded for this type.
All builds
Changes between consecutive stable releases and preview builds.
- Released
- Protocol
- 2207
- Previous build
- 1.26.51
Changed 1
- Added field
Hand(typeuint8). - Moved
Itemfrom field 4 to 5. - Moved
From Positionfrom field 5 to 6. - Moved
Hit Positionfrom field 6 to 7.