← Type index

ItemUseInventoryTransaction

Object datagramWire order
0ActionsInventoryTransaction · variable
1Action Typevarint32 · variable (up to 5 bytes)
2Trigger Typeuint8 · 1 byte
3PositionBlockPos · variable
4Faceuint8 · 1 byte
5Slotvarint32 · variable (up to 5 bytes)
6Handuint8 · 1 byte
7ItemNetworkItemStackDescriptor · variable
8From PositionVec3 · variable
9Click PositionVec3 · variable
10Target Block Idvaruint32 · variable (up to 5 bytes)
11Client Interact Predictionuint8 · 1 byte
12Client Cooldown Stateuint8 · 1 byte

Fields

13 top-level fields
  1. 0ActionsInventoryTransaction
    1. 0ActionsInventoryActionas array<InventoryAction>
      1. 0SourceInventorySource
        1. 0Source TypeCompressionEnum-as-ValueInventorySourceTypeas varuint32
          1. 0Container Inventory
          2. 1Global Inventory
          3. 2World Interaction
          4. 3Creative Inventory
          5. 4Non Implemented Feature TODO
        2. 1Container IDoptionalCompressionint8
        3. 2Bit FlagsoptionalCompressionEnum-as-ValueInventorySourceFlagsas varuint32
          1. 0No Flag
          2. 1World Interaction Random
      2. 1SlotCompressionvaruint32
  2. 1Action TypeCompressionEnum-as-ValueItemUseActionTypeas varint32
    1. 0Place
    2. 1Use
    3. 2Destroy
    4. 3Use As Attack
  3. 2Trigger TypeCompressionEnum-as-ValueItemUseTriggerTypeas uint8
    1. 0Unknown
    2. 1Player Input
    3. 2Simulation Tick
  4. 3PositionBlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32
  5. 4FaceCompressionuint8
  6. 5SlotCompressionvarint32
  7. 6HandCompressionEnum-as-ValueHandSlotas uint8
    1. 0Mainhand
    2. 1Offhand
  8. 8From PositionVec3
  9. 9Click PositionVec3
  10. 10Target Block IdCompressionvaruint32
  11. 11Client Interact PredictionEnum-as-ValueItemUsePredictedResultas uint8
    1. 0Failure
    2. 1Success
  12. 12Client Cooldown StateEnum-as-ValueItemUseClientCooldownStateas uint8
    1. 0Off
    2. 1On

Packet references

2 references
  1. InventoryTransactionPacketTransaction › ItemUseInventoryTransaction › ItemUseInventoryTransaction
  2. PlayerAuthInputPacketItem Use Transaction › PackedItemUseLegacyInventoryTransaction › Item Use Transaction › ItemUseInventoryTransaction

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.