mojira.dev
MC-196850

'Data Merge Entity' duplicates villager inventory

I discovered an inventory duplication bug that occurs when using '/data merge entity' on a villager. I have attached a datapack to use as an example, but the bug is not limited to only this datapack.

To Reproduce:
1- Spawn new villager
2- Give villager 1 stack of carrots
3- Run '/data get entity' to confirm 1 stack of carrots in inventory
4- Nametag the villager "silence me" to trigger datapack function that runs the following command:

execute as @e[name="silence me"] at @s run data merge entity @s {CustomName:"{\"text\":\"silenced\"}",Silent:1b,ActiveEffects:[{Id:24b,Duration:5,ShowParticles:0b}]}

5- Run '/data get entity' to now see 2 stacks of carrots in inventory

6- Repeat steps 4 + 5 and you will now see 4 stacks of carrots in inventory

Everytime '/data merge entity' is run on the villager, the inventory doubles.

 

Linked issues

Attachments

Comments

Arisa Bot

Thank you for your report!
We're tracking this issue in MC-112826, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit

Kawsiphek

(Unassigned)

Unconfirmed

(Unassigned)

1.16.2 Pre-release 1

Retrieved