← 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)
6ItemNetworkItemStackDescriptor · variable
7From PositionVec3 · variable
8Click PositionVec3 · variable
9Target Block Idvaruint32 · variable (up to 5 bytes)
10Client Interact Predictionuint8 · 1 byte
11Client Cooldown Stateuint8 · 1 byte

Fields

12 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. 7From PositionVec3
  8. 8Click PositionVec3
  9. 9Target Block IdCompressionvaruint32
  10. 10Client Interact PredictionEnum-as-ValueItemUsePredictedResultas uint8
    1. 0Failure
    2. 1Success
  11. 11Client 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.