mojira.dev
MC-4

Item drops sometimes appear at the wrong location

The bug

When an item lands on the edge of a block, the client sometimes makes it fall over the edge while the server leaves it on the edge. This happens because the client thinks the drop can fall based on a slightly different location and attempts to predict the future incorrectly.

How to reproduce

  1. Throw an item on the ground and wait until it stopped moving

  2. Run in command block close to it:

    teleport @e[type=item,distance=..6] ~ ~1 ~-0.6249

Code analysis

Code analysis by @unknown can be found in this comment.

Fix

Fix by @unknown can be found in this comment.

Linked issues

MC-255892 water can't push items at the edge of block Resolved MC-119318 Items can't be picked up in some cases Resolved MC-266415 Reminder: Item drops sometimes appear in the wrong location. Resolved MC-259534 stack too many items in a small area to generate ghost item leak out from the bottom of block Resolved MC-222920 items are behaving really weird Resolved

Attachments

Comments 316

I have a piston-powered automated sugarcane farm which reproduces this very reliably.

What if there is flowing water where the ghost item falls? Will this ghost item move?

Yes, water moves the ghost items on my sugarcane farm.

Click the button of the diamond sugarcane farm. Most of the time, there will be ghost items.

I have attached a world save with a sugarcane farm which reproduces this most of the time. Demo video: http://www.youtube.com/watch?v=S1IHkLQIqOs

306 more comments

so what ur saying is that people shouldn't spam "Can confirm in [version]" because it's the oldest issue that wasn't resolved. But the reason people "spam" it is so that Mojang will see it and fix it. Believe it or not, this is how i found this issue in the first place. Telling people to not spam it will make it less likely to be fixed any time soon

It is not against the rules to post when an issue affects a new version of the game. However… this is not an unknown issue to Mojang and commenting will not increase the likelihood it is fixed.

We will not be updating this with all pre-release and snapshot versions.

They don't want to spend too much time focusing on this minor issue, its priority has been classified as low and it does not affect the actual gameplay very much so do not expect mojang will fix this issue soon.

Confirmed in 1.21.8

Ezekiel

(Unassigned)

Confirmed

Platform

Low

Entities, Items, Networking

desync, item-entity, packet, precision-loss, server

Minecraft 1.4.1, Minecraft 1.4.4, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, ..., 25w08a, 1.21.6, 1.21.7, 1.21.8, 25w31a

Minecraft 1.8.1-pre1

Retrieved