[SPIGOT-5295] Items sometimes do not update position with piston Created: 28/Aug/19  Updated: 08/Jun/20

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Marcus Bakken Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: Items, Position, Updating, item, stuck

Attachments: File Desktop 2019.08.28 - 13.36.18.06.mp4    
Version: 1.14.4
Guidelines Read: Yes

 Description   

Dropping a lot of items on top of a block that is controlled by a piston, when the piston moves the block, some of the items get stuck and will seem to fall, but pop back.

See video attachment.



 Comments   
Comment by CsH [ 08/Jun/20 ]

Hey essem I don't know if you saw my other message cause it was an old thread, but

  • I have some issues I was wondering if you could help me with. If you could help me out I would really appreciate it! I might not see your response on this website, but if you could please add me on discord - CsH#7612 or send me your discord I would really appreciate it! I mean if you don't have discord that's fine, but could you reply to this message so I know? Thanks again
  • CsH
Comment by essem [ 21/Jan/20 ]

Thanks for digging the code @Black-Hole
Hope the issue creator will update the issue to reflect the new information and/or a contributor will look into it.

Comment by Black Hole [ 20/Jan/20 ]

On a fork of Spigot I found the explanation that item entities are checking every 4th tick if they should fall. Combined with the entity activation range this could lead to some items to never fall on the server. The releavant line in EntityItem looks like this:
if (!this.onGround || b(this.getMot()) > 9.999999747378752E-6D || (this.ticksLived + this.getId()) % 4 == 0) {

Comment by essem [ 20/Jan/20 ]

Hello,
i acutally did some tests on this issue after experiencing the same (and a similar case). It dosn't seem to be related to the Vanilla-issue linked by @Black-Hole since it dosn't appear in vanilla.
I used the same (wooden-)butten, redstone torch and piston setup for all tests:

Vanilla Singleplayer: Everything works fine, the issue dosn't occur.
Vanilla Server: Same as singleplayer, no issues.
Spigot Server (2 different ones, no plugins/datapacks to be sure): About 25% (differs) of the dropped items teleport back to the original positon

The hitbox moves clientside with the item (F3+B). The 'teleporting' stacks are real -> can be picked up and used. Affected are item groups, not invidual items in a stack (but also single items if they are not part of a stack)

Now to the other probably related issue: Leave decay drops. Some of the items appear to be on the ground but can't be picked up, only if you get somewhere near were they dropped they teleport back while picking up.
Both issues let me think of a problem with items falling after a block beneath them has been removed.

(I've observed this issue now since a while, its quite annoying for chopping trees)

Edit: Used version 1.15.1 (also happened with 1.15 and at least some 1.14 versions) and newest spigot as of writing this.

Comment by Black Hole [ 28/Aug/19 ]

Might be related to https://bugs.mojang.com/browse/MC-4

Comment by Marcus Bakken [ 28/Aug/19 ]

I did try in singelplayer and vanilla server, the problem is only happening on spigot and papermc

Comment by Black Hole [ 28/Aug/19 ]

Please try to reproduce with a vanilla Minecraft server.

Generated at Sat Dec 13 13:43:55 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.