mojira.dev
MCPE-33715

Pistons sometimes displace dropped items instead of pushing them

When pistons break shulker boxes. The shulker box (item form) sometimes goes above or below the piston head if the adjacent blocks are non full blocks (ex.hoppers)  instead of being broken and pushed forward.

What Should Happen:
When a piston pushes a shulker box, the shulker box should break and the item form is pushed towards where the piston is facing.

What Happens Instead:
When the shulker box is broken by the piston, the item form [sometimes] drops somewhere in the space where the piston head is. This should not happen because the shulker box is pushed in PISTON1.png is the ideal result

Edit: affects all blocks that have a chance to drop items. (Melons and pumpkins, leaves, etc)

Linked issues

Attachments

Comments 23

The java version does not have this issue, the shulker box (item) would be consistently pushed forward where the piston is facing. (It doesn't matter if the hopper is powered) Please fix this, its just a minor bug but very annoying when creating contraptions with shulker boxes.

Confirmed in Windows 10 release 1.4.2. A shulker box item can be pushed into a confined space above a hopper and be sucked in by the hopper, but it cannot be pushed into a hopper through its side. See below.

The shulker box(item) sometimes drops in the same space as the piston head even when there is nothing blocking the shulker box (item) where the piston is facing. The hopper thing is not really a bug because it was not connected, just the placing of the shulker box (item). The first picture should happen consistently. This bug happens in PE as well, not just windows 10. I've tested it.

After reviewing this issue, I see that I misunderstood it. The issue is that when a piston breaks a block that drops an item entity, the item entity is not necessarily pushed in the direction of the piston head's motion. I think what's happening is that the item entity is created with momentum in a random direction, and depending on the order of updating of the item entity and the piston head, the item entity may move up, down, sideways, or even backwards (towards the piston body) instead of being pushed by the piston head. The order of updating is currently undefined by design.

This affects not only shulker boxes, but any block a piston can break that has a chance to drop an item. Examples include leaves, paintings, pumpkins, and beds. Which direction the dropped item winds up moving in appears to be random.

Yes, I think that the pushed item entity just randomly choose a place to drop.

13 more comments

1.16.0.57 also

Affects 1.16.0.59

1.16.0.61 also

Fixed in 1.16.0.63!

Confirmed to be fixed in 1.16 release. Blocks broken by pistons do still get random momentum, but never toward the piston. They no longer get tangled in the piston head or glitch backwards.

Jeffrey

(Unassigned)

125290

Confirmed

Windows

item-drops, piston-extension, redstone-piston, shulker_box

1.16.0.61 Beta, 1.16.0.57 Beta, 1.16.0.55 Beta, 1.16.0.53 Beta, 1.15.0.55 Beta, ..., 1.7.0, 1.12.0, 1.14.1.2 Beta, 1.14.0, 1.14.30 Hotfix

1.16.1

Retrieved