mojira.dev
MC-164547

NoAI Duplicates Villager Inventory

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.

Related issues

Attachments

Comments

migrated
[media]

Drew Nelson

(Unassigned)

Unconfirmed

1.14.4

Retrieved