-
Bug
-
Resolution: Invalid
-
None
-
Minecraft 1.11.2
-
None
-
Unconfirmed
A successful entitydata, with white text output, will duplicate the villager inventory – after the text is displayed. The white displayed text is the old value, before the duplication. To see the duplication, you have to use another entitydata command. It's best to use a failed one, with red text, as red text doesn't cause further duplication.
- Summon a Villager:
- /summon Villager
- Give him 3 seeds:
- /replaceitem entity @e[type=Villager,c=1] slot.villager.0 wheat_seeds 3
- Check his inventory with a failed, red entitydata command. Notice Count:3b (near the end of the NBT) for the 3 seeds:
- /entitydata @e[type=Villager,c=1] {}
- Do it again, and notice Count:3b again. Nothing has changed yet.
- /entitydata @e[type=Villager,c=1] {}
- Now use entitydata to change his name. The white text will display Count:3b, but it's lying!
- /entitydata @e[type=Villager,c=1] {CustomName:TestGuy}
- Use a failed, red command to check his inventory. It shows Count:6b.
- /entitydata @e[type=Villager,c=1] {}
- Do it again. Still Count:6b.
- /entitydata @e[type=Villager,c=1] {}
- Use another successful entitydata. It will display Count:6b, but it's lying!
- /entitydata @e[type=Villager,c=1] {Glowing:true}
- Use a failed, red command to check his inventory. It shows Count:12b.
- /entitydata @e[type=Villager,c=1] {}
- Do it again. Still Count:12b.
- /entitydata @e[type=Villager,c=1] {}
- is duplicated by
-
MC-126263 Villager inventory data tag has inconsistent behavior
- Resolved
-
MC-159946 /data works incorrectly with villager inventory
- Resolved
-
MC-164547 NoAI Duplicates Villager Inventory
- Resolved
-
MC-191011 Piglin Drops Duplicate Items when using /data merge
- Resolved
-
MC-195628 [/data command] Remove items of piglin inventorys doesn't work
- Resolved
-
MC-196850 'Data Merge Entity' duplicates villager inventory
- Resolved
-
MC-202384 Villagers/Wandering traders double their Inventories when NBT reload
- Resolved
-
MC-238482 Piglin Dupe
- Resolved
-
MC-255478 Issues with motion NBT tags for Piglins
- Resolved
-
MC-257794 Setting the Count of an Item in a Villager Inventory adds that amount to the Count instead of setting it.
- Resolved
- relates to
-
MC-122008 custom_potion_effects in arrow entities duplicates with '/execute store' and isn't affected by '/data remove'
- Open