← Type index

ItemUseOnActorInventoryTransaction

Object datagramWire order
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 fields
  1. 0ActionsBase inventory actions. Lists the inventory slot changes associated with this transaction.InventoryTransaction
    1. 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>
      1. 0SourceThe inventory source identifying which container this action targets.InventorySource
        1. 0Source TypeThe inventory source type.CompressionEnum-as-ValueInventorySourceTypeas varuint32
          1. 0Container Inventory
          2. 1Global Inventory
          3. 2World Interaction
          4. 3Creative Inventory
          5. 99999Non Implemented Feature TODO
        2. 1Container IDoptionalContainer window ID. Present only for ContainerInventory and NonImplementedFeatureTODO source types.Compressionint8
        3. 2Bit FlagsoptionalSource flags. Present only for WorldInteraction source type.CompressionEnum-as-ValueInventorySourceFlagsas varuint32
          1. 0No Flag
          2. 1World Interaction Random
      2. 1SlotThe slot index within the source container.Compressionvaruint32
      3. 2From ItemThe item descriptor representing the state of the slot before this action.NetworkItemStackDescriptor
      4. 3To ItemThe item descriptor representing the desired state of the slot after this action.NetworkItemStackDescriptor
  2. 1Runtime IdThe runtime ID of the actor being interacted with or attacked.ActorRuntimeID
    1. 0Actor Runtime IDCompressionvaruint64
  3. 2Action TypeInteract: right-click on actor. Attack: left-click or trident spin attack.CompressionEnum-as-ValueItemUseOnActorActionTypeas varint32
    1. 0Interact
    2. 1Attack
    3. 2Item Interact
  4. 3SlotThe inventory slot of the item being used on the actor.Compressionvarint32
  5. 4HandThe hand of the item being used.CompressionEnum-as-ValueHandSlotas uint8
    1. 0Mainhand
    2. 1Offhand
  6. 5ItemThe item stack descriptor of the item being used on the actor.NetworkItemStackDescriptor
  7. 6From PositionThe player's position when this transaction was sent.Vec3
  8. 7Hit PositionThe position on the actor that was clicked.Vec3

Packet references

1 reference
  1. InventoryTransactionPacket
    Transaction › ItemUseOnActorInventoryTransaction › ItemUseOnActorInventoryTransaction

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.