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

NoAI Duplicates Villager Inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.14.4
    • None
    • Windows 10
    • Unconfirmed

      Whenever a villager (that has something in its inventory) is switched from NoAI:0b to NoAI:1b (or vice versa), everything it has in its inventory doubles.

      What I expected to happen was...:

      The inventory to stay constant when switching the AI on and off.

      What actually happened was...:

      The inventory changed when simply switching the AI on and off. 

      Steps to Reproduce:

      1. Open a new or existing world
      2. Spawn or find a villager
      3. Give it some bread
      4. Check its inventory using this command:
        1. /data get entity @e[type=minecraft:villager,limit=1,sort=nearest] Inventory
      5. Change the villager to no AI using this command:
        1. /data merge entity @e[type=minecraft:villager,limit=1,sort=nearest] {NoAI:1b}
      6. Check the inventory again and it should have doubled. You can repeat this back and forth from NoAI:1b to NoAI:0b as many times as you wish, and it will double until the inventory is full.

            Unassigned Unassigned
            StarThief Drew Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: