PackedItemUseLegacyInventoryTransaction
0Legacy Request IDItemStackLegacyRequestId · variable
1Legacy Set Item Slotsarray<LegacySetSlot> · variable
2Item Use TransactionItemUseInventoryTransaction · variable
Fields
3 top-level fields0Legacy Request IDThe legacy item stack request id associated with this item interaction. Zero means no legacy request.ItemStackLegacyRequestId
- 0IDRaw Id (32 bit signed)Compression
varint32
1Legacy Set Item SlotsoptionalOnly present when Legacy Request ID is valid. Lists container slots involved in the interaction.LegacySetSlotas
array<LegacySetSlot>0Container EnumThe container enum name identifying which container slot set this belongs to.CompressionEnum-as-ValueContainerEnumNameas
uint8- 0
AnvilInputContainer - 1
AnvilMaterialContainer - 2
AnvilResultPreviewContainer - 3
SmithingTableInputContainer - 4
SmithingTableMaterialContainer - 5
SmithingTableResultPreviewContainer - 6
ArmorContainer - 7
LevelEntityContainer - 8
BeaconPaymentContainer - 9
BrewingStandInputContainer - 10
BrewingStandResultContainer - 11
BrewingStandFuelContainer - 12
CombinedHotbarAndInventoryContainer - 13
CraftingInputContainer - 14
CraftingOutputPreviewContainer - 15
RecipeConstructionContainer - 16
RecipeNatureContainer - 17
RecipeItemsContainer - 64
RecipeFoodContainer - 65
RecipeBlocksContainer - 66
RecipeFurnaceItemsContainer - 18
RecipeSearchContainer - 19
RecipeSearchBarContainer - 20
RecipeEquipmentContainer - 21
RecipeBookContainer - 22
EnchantingInputContainer - 23
EnchantingMaterialContainer - 24
FurnaceFuelContainer - 25
FurnaceIngredientContainer - 26
FurnaceResultContainer - 27
HorseEquipContainer - 28
HotbarContainer - 29
InventoryContainer - 30
ShulkerBoxContainer - 31
TradeIngredient1Container - 32
TradeIngredient2Container - 33
TradeResultPreviewContainer - 34
OffhandContainer - 35
CompoundCreatorInput - 36
CompoundCreatorOutputPreview - 37
ElementConstructorOutputPreview - 38
MaterialReducerInput - 39
MaterialReducerOutput - 40
LabTableInput - 41
LoomInputContainer - 42
LoomDyeContainer - 43
LoomMaterialContainer - 44
LoomResultPreviewContainer - 45
BlastFurnaceIngredientContainer - 46
SmokerIngredientContainer - 47
Trade2Ingredient1Container - 48
Trade2Ingredient2Container - 49
Trade2ResultPreviewContainer - 50
GrindstoneInputContainer - 51
GrindstoneAdditionalContainer - 52
GrindstoneResultPreviewContainer - 53
StonecutterInputContainer - 54
StonecutterResultPreviewContainer - 55
CartographyInputContainer - 56
CartographyAdditionalContainer - 57
CartographyResultPreviewContainer - 58
BarrelContainer - 59
CursorContainer - 60
CreatedOutputContainer - 61
SmithingTableTemplateContainer - 62
CrafterLevelEntityContainer - 63
DynamicContainer
- 0
- 1SlotsList of inventory slot indices within the given container.
array<uint8>
2Item Use TransactionThe reflected item use transaction performed on this auth-input tick.ItemUseInventoryTransaction
0ActionsBase 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
1Action TypeThe type of item use action performed.CompressionEnum-as-ValueItemUseActionTypeas
varint32- 0
Place - 1
Use - 2
Destroy - 3
Use As Attack
- 0
2Trigger TypePlayerInput if a direct result of the player's initial button input. SimulationTick if the player is holding down input from a previous tick.CompressionEnum-as-ValueItemUseTriggerTypeas
uint8- 0
Unknown - 1
Player Input - 2
Simulation Tick
- 0
- 4FaceThe face of the target block that was clicked.Compression
uint8 - 5SlotThe inventory slot of the item being used.Compression
varint32 - 7ItemThe item stack descriptor of the item being used.NetworkItemStackDescriptor
- 10Target Block IdThe runtime block state ID of the target block.Compression
varuint32 11Client Interact PredictionWhether the client predicted the interaction would succeed.Enum-as-ValueItemUsePredictedResultas
uint8- 0
Failure - 1
Success
- 0
12Client Cooldown StateWhether the item is currently on cooldown on the client.Enum-as-ValueItemUseClientCooldownStateas
uint8- 0
Off - 1
On
- 0
Packet references
1 reference- PlayerAuthInputPacketItem Use Transaction › PackedItemUseLegacyInventoryTransaction
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.
No changes are recorded for this type.