Villagers don't show their trade offer if the player is holding the bought item in their offhand
Villagers will not hold an item they are selling to the player if said player is holding the item the villager wants in their offhand.
Steps to Reproduce:
- Summon a villager with a trade and profession (Profession is necessary due to MC-164353)
/summon villager ~ ~ ~ {VillagerData:{level:5,profession:"minecraft:nitwit"},Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:dirt",Count:1b}}]}} - Set time to day
/time set day
- Hold an emerald in the offhand
→
- The villager will not hold dirt
Expected Results:
- The villager would hold the item they are selling