Mojira Archive
MC-214602

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:

  1. 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}}]}}
    
  2. Set time to day
    /time set day
    
  3. 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:

MC-214602.mp4

Notes:

Related to:
MC-269311 MC-167040

Unresolved

[Mod] Jiingy

Tornado_Hallway

2021-02-09, 11:06 AM

2024-08-26, 07:12 PM

3

6

Confirmed

Mob behaviour, Village system

Villager-trading, entity-model, villager

1.16.5 - 24w34a1.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

-