Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-214602

Villagers don't show their trade offer if the player is holding the bought item in their offhand

XMLWordPrintable

    • Icon: Bug 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
    • 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:

      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

        1. ~`NV5G$M9RBP)B}JC6PJZ$O.png
          632 kB
          Tornado_Hallway
        2. 977@C2)}VQS17OX)A_47P(L.png
          11 kB
          Tornado_Hallway
        3. MC-214602.mp4
          4.70 MB
          [Mod] Avoma
        4. N@5JS4Z}%U`N{AT37KV@%DR.png
          603 kB
          Tornado_Hallway

            Unassigned Unassigned
            Jingy Jiingy
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: