-
Bug
-
Resolution: Unresolved
-
None
-
1.16.5, 21w05b, 21w06a, 21w07a, 1.17, 1.18.1, 1.18.2, 1.19 Pre-release 1, 1.19.4, 23w14a, 1.20.2, 23w45a, 23w46a, 1.20.3 Pre-Release 4, 1.20.3, 1.20.4 Release Candidate 1, 1.20.4, 23w51b, 24w09a, 1.20.5, 24w34a
-
Confirmed
-
Mob behaviour, Village system
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
Screenshots/Videos:
Notes:
- relates to
-
MC-167040 Villager shows item in hands that it can't actually sell because of NBT
- Open
-
MC-269311 Item Held by Villager Visually Flickers
- Open
-
MC-150589 Villagers still hold a trade offer in their hand if the player is in spectator mode
- Open
-
MC-166669 Villagers still hold their trade offer in their hand even after the player drops the offered item
- Open
-
MC-194529 Composting last item in a stack if it is a villager trade will not cause the villager to stop holding the trade offer
- Open
-
MC-196916 Villagers keep holding item if they go out of stock when player is in the trading GUI
- Open