mojira.dev
MC-191011

Piglin Drops Duplicate Items when using /data merge

As in the video, we have found a bug that make piglins duplicate items.

 

How to reproduce (Multiplayer & Singleplayer):

  1. Summon Piglin

  2. Rename it with merge data command

    execute as @e[type=minecraft:piglin,name="Piglin"] run data merge entity @s {CustomNameVisible:1,CustomName:"{\"text\":\"Piglin\",\"color\":\"gray\"}"}
  1. Drop items to make piglin hold

  2. Piglin will get dropped item on the ground.

  3. Kill Piglin and get a lot of items that piglin had picked up before

Video:

https://youtu.be/Ve-ntXkUe2kDuplicate

(When get entity data)

https://youtu.be/5xSfkUhrNEM

Related issues

Comments

galaxy_2alex

Are you using any datapacks or Fabric?

EpicEmeraldPlayz

No datapack. Just Vanilla

galaxy_2alex

How do you spawn in the piglin, is it a modified spawn egg?

EpicEmeraldPlayz

Nope. Just normal spawn egg

galaxy_2alex

Unable to reproduce, also, it is a custom spawn egg, the Piglin is named, so please let us know you spawned in the spawn egg exactly.

EpicEmeraldPlayz

Sorry for misunderstanding! It is a command_block renaming them. But, the normal spawn egg and using nametag rename them is fine. So, this problem will only occur with piglin that have custom name that renamed by command block.

 

Command:

execute as @e[type=minecraft:piglin,name="Piglin"] run data merge entity @s {CustomNameVisible:1,CustomName:"{\"text\":\"Piglin\",\"color\":\"gray\"}"}
EpicEmeraldPlayz

Its appear to duplicate x2 every time the command block execute the merge data command when piglin is looking at item they are holding and playing the sound of piglin again and again until piglin finished look item in their hand.

 

New Video (Data):

https://youtu.be/5xSfkUhrNEM

tryashtar

Same as MC-112826

EpicEmeraldPlayz

(Unassigned)

Unconfirmed

Commands

1.16 Release Candidate 1

Retrieved