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

Custom villager without offers appears with trades when reconnecting/reloading chunk

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.14.4, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w49a, 1.16.5, 21w08b
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Summoning a villager with an empty Offers tag correctly spawn a villager which cannot be traded with. However, when reopening the world the villager has trades.

      How to reproduce

      1. /summon minecraft:villager ~ ~2 ~ {CustomNameVisible:1b,PersistenceRequired:1b,Health:20000f,CustomName:"{\"text\":\"John\",\"bold\":\"true\",\"color\":\"green\"}",VillagerData:{level:1,profession:"minecraft:leatherworker",type:"minecraft:snow"},NoAI:1b,Offers:{}}
        
      2. Right click the villager
        It cannot be traded with
      3. Reopen the world
      4. Right click the villager
        It has trades

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              7_carlos_7 Carlos Jiménez
              Votes:
              5 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: