mojira.dev
MC-115404

Items can duplicate if the item entity gets modified

The bug

A player in Survival or Adventure mode picking up and dropping items modified by the /entitydata command can duplicate the items.

How to reproduce

I made a quick little video, but I had to shove it on dropbox because of the 10MB limit

Link: https://www.dropbox.com/s/bqyjpazljppkirr/2017-04-04%2021-56-30.mp4?dl=0

  1. Place a repeating command block, enter for example the following command (you can modify actual item entity tags as well) and activate it

    /entitydata @e[type=item] {SomeCustomOrExistingTag:1b}
  2. Place different variants of an item (for example different colored wool) in your hotbar

  3. Switch to Survival or Adventure mode

    /gamemode survival
  4. Drop all items in your hotbar by either pressing Q or Ctrl + Q

  5. Select the first hotbar slot and keep pressing Q or Ctrl + Q
    → After some time you should see that the dropped items have been duplicated

Linked issues

Attachments

Comments 17

Looks like a duplicate of MC-114879, you were probably looking for something to do with /entitydata 😉

@tryashtar I just checked without entitydata, and this appears to be the case. How silly of me to not check for such a simple thing in the first place!

Please reopen. Although MC-114879 has been fixed, this STILL happens with entitydata.

@CreepersPlayYT ???

7 more comments

I really can't reproduce this, after following your instructions for several hundred items. Can you really still get this to happen in 1.12 pre-2?

It looks like you need to have different variants of the same item. I was able to reproduce this with only 2 same items as well but it happened less often there.

It appears the items duplicate when the player has just picked up the items (not even client-side yet?) and already drops them again.

@tryashtar I am able to reproduce the issue in both pre-releases, I used a fresh superflat world with default settings and I found that dropping a full hotbar resulted in multiple of those items being duplicated. Expanding on what Marcono said, I probably get successful results due to the fact I mostly test with multiple types of stone.

After testing this out, I can reproduce it but don't need /entitydata (or any other commands) running. It seems that this is just MC-114879 and that we didn't fully fix MC-114879. I will reopen that and close this issue.

Okay scratch my previous comment. MC-114879 is indeed actually fixed, but this is an edge case when the item entity was modified afterwards (such as /entitydata or a more simple case of "throw another item into the pile", as MC-117217).

Nope.

Nathan Adams

Confirmed

/entitydata, command, command_block, inventory, item

Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2

Minecraft 1.12 Pre-Release 3

Retrieved