[MC-11293] Pistons push items the wrong way Created: 08/Mar/13  Updated: 10/Nov/24

Status: Reopened
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.5, Minecraft 1.6, Minecraft 1.6.2, Minecraft 1.7.2, Minecraft 14w31a, Minecraft 14w32b, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.10.2, Minecraft 16w44a, Minecraft 1.12.2, Minecraft 1.13.1, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, 1.15.1, 20w11a, 1.16 Release Candidate 1, 1.16, 20w51a, 1.20.4, 24w06a
Fix Version/s: None

Type: Bug
Reporter: Zé Carlos Assignee: Unassigned
Resolution: Unresolved Votes: 9
Labels: melon, piston, pumpkin, push, reeds, sugar_cane

Attachments: PNG File Practical_Uses.png     Zip Archive Test.zip     PNG File after.png     PNG File before.png     PNG File gap_fall.png     PNG File gap_results.png    
Issue Links:
Duplicate
is duplicated by MC-168762 Pistons sometimes displace dropped it... Resolved
is duplicated by MC-190903 Pistons shoot items out to the side w... Resolved
Relates
relates to MC-278182 Items glitch inside the piston head w... Open
relates to MC-108418 Shulker box item gets created inside ... Resolved
CHK:
Confirmation Status: Confirmed
Category:
Entities, Redstone
Mojang Priority: Low
Area: Platform

 Description   

What I expected to happen was:
Pistons pushing the sugarcane to the middle making it fall in the water stream.

What actually happened was:
Some of the sugarcane got pushed up through the roof.

Steps to reproduce:
1. Place sugarcane.
2. Place a piston pointing at the sugarcane.
2. Place a glass-pane in front of the sugarcane, in the direction of the piston.
3. place a solid block or half-slab on top of the sugarcane.
4. Power the piston and see what happens.



 Comments   
Comment by Dhranios [ 10/Nov/24 ]

Pistons push entities forward, as do blocks moves by pistons; that the item isn't pushed by the moving block is the problem here. Take a look at gap_fall. png, that has no glass pane that connects to blocks, yet still launched the item out.

Comment by N3rsssss [ 10/Nov/24 ]

There's your mistake. The issue isn’t with the entity itself. Instead, the item is summoned and pushed by the piston. A few game ticks later, the piston block entity completes its extension. At that point, a block suddenly appears where the item entity was originally located (glass pane instantly connecting upon shape update).
As I said earlier, it is the consequence of multiple, perfectly intentional behaviors.

Items do not end up inside the collision box, but rather the block ends up where the item is (it also does not happen in gt0, but a couple gt's after). Not a bug

Comment by Dhranios [ 10/Nov/24 ]

All other entities are pushed correctly, it's just items that are misbehaving here. Yes them being pushed out of collisionboxes is intended, but they shouldn't end up inside the collision box to begin with, after all, the sugar cane breaks the moment the other block starts moving, so the item shouldn't be appearing inside that block.

Comment by N3rsssss [ 10/Nov/24 ]

This is NOT a bug. It is a consequence of 2 perfectly intentional features:

  • glass pane connecting to adjacent blocks upon shape updated
  • Entities attempting to escape when their hitbox overlaps with any blocks: Entity.class method `pushOutOfBlocks`, which is used by item entities in their `tick()` method. Fixing this would be nonesense. 

It is also NOT related to https://bugs.mojang.com/browse/MC-278182 , as this is not an intended feature, but rather a mistake from mojang developers

Comment by FX - PR0CESS [ 13/May/22 ]

I'm unable to recreate this in 1.18.2 & 22w18a

Comment by [Mod] Avoma [ 14/Jan/21 ]

Can confirm that this issue is still present in 20w51a.

Comment by Sanyeki [ 16/Mar/20 ]

Confirmed for 20w11a

Comment by Kraif [ 05/Sep/18 ]

Confirmed for 1.13.1.

Comment by Kumasasa [ 06/Dec/15 ]

Is this still an issue in the current Minecraft Snapshot 15w49b or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Zé Carlos [ 29/Jul/14 ]

Still happens in 14w31a...

Comment by Zé Carlos [ 05/Dec/13 ]

Still happens in the last version.

I won't bother updating the information anymore.
Have a nice day.

Comment by Zé Carlos [ 11/Jul/13 ]

Created an issue regarding chikens falling through hoppers.
My only questions now are if Pistons push items through a half-slab roof relates to Practical Use: Hopper sucks items through half-slab regarding items passing through half-slabs?
Also if Pistons push items through a half-slab roof relates to Items travel backwards or get stuck in the gap of the piston arm regarding the way pistons push tems.
I wanted to avoid create duplicated/related issues.

Comment by [Mod] Ezekiel (ezfe) [ 11/Jul/13 ]

And you should make a ticket for each bug

Comment by [Mod] Ezekiel (ezfe) [ 11/Jul/13 ]

All bugs are on a list. Confirmed just means we have confirmed it.

Comment by Zé Carlos [ 10/Jul/13 ]

Updated. I thought that once a bug would be 'confirmed' it would remain on a check list until it would be 'fixed'.
In my previous comment, I may have a couple of individual bugs, but I'm unsure whether or not I should create individual issues for them.

Comment by [Mod] Ezekiel (ezfe) [ 10/Jul/13 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Zé Carlos [ 05/Jul/13 ]

I have discovered that this behavior of items passing through non-full blocks can actually be helpful, like in Practical Uses for example.
Although in that example i'm not sure that the eggs actually pass through the half-slab, or are sucked right away.
I would like someone to clarify what happens in this situation, please.

The half-slab on top of the hopper serves the purpose of avoiding chikens falling through the hopper, like in MC-25365

What would really need an improvement is the physics behind the Drops.
Sometimes, when a chicken is burned or a piston pushes a melon or a sugarcane, for example, the Drops get all over the place, it's like they explode!
Also, when pushed by a piston, Drops can sometimes travel backwards or get stuck in the gap of the piston arm, like in Gap Fall

Comment by Anon Ymus [ 12/Mar/13 ]

Confirmed. Happens even when there are solid blocks in the middle.

Comment by Daniel "Glampkoo" [ 12/Mar/13 ]

Confirmed in 1.5pre.

Generated at Sun Jan 12 12:27:11 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.