The Bug
Piglins, when holding a gold ingot in their off-hand, will immediately drop a random item from the bartering loot table and not examine the gold ingot at all. This is unlike when it inspects the gold in its main hand for six seconds before trading a bartering item.
How to Reproduce
Go to the Nether, and run the command below to summon a piglin:
/summon minecraft:piglin
Optionally, run the command below to see how the piglin instantly trades the bartering item in one tick:
/tick freeze
Now, run the following command to give the piglin a gold ingot in its off-hand: (Note: this applies to all piglins in your simulation distance)
/item replace entity @e[type=minecraft:piglin] weapon.offhand with minecraft:gold_ingot
If you ran the /tick freeze command earlier, run the command below to see how the piglin instantly trades the bartering item without examining the gold for the usual 6 seconds.
/tick step 1t
Note how the piglin instantly trades the gold for a bartering item without examining it.
Expected Result
The piglin would inspect the gold for the usual six seconds before trading the bartering item, even if it is in the piglin's off-hand.
- duplicates
-
MC-178342 Piglins spawned with a gold ingot in their offhands do not admire it but give bartering items
- Resolved