mojira.dev
MC-89030

Pistons warp entities too much (Pistons pull entities in/through blocks)

Since the recent changes to block 36, entities that get pushed get set right in front of the block 36 collision box.
That makes sense, but it should only happen for entities which collision box is (almost) fully in front of the block 36.
Otherwise entities that just barely reach inside the block 36 from behind get warped in front of it.

Steps to reproduce:
1. Build up

[media]

2. Remove the redstone block

[media]

3. Place the redstone block

4. The armour stand got warped on top of the half slab

[media]

This behaviour is kind of cool for the technical community, but it doesn't look intended, so better fix it fast before we get used to it πŸ˜ƒ

Making pistons work perfectly is a bit trickier than I though. I had a fix here, but it wouldn't have worked well in some cases either. So for now here is a list of points that might help:

  • block 36 should use the list of collision boxes the block it holds has (currently it's just the rendering hitbox, I believe)

  • to the outside block 36 probably should give of the hixbox it would have after finishing the current step, otherwise block-air-block can cause an entity that stands in the air block to get stuck on one of the block 36 and therefore getting inside the other block

  • block 36 should only move entities in front of it, not all intersecting

  • cauldrons should be able to keep a mob inside while moving (this is a good test if the code is working in the most difficult cases)

Hopefully I will get to update this to more useful info soon.

Linked issues

MC-89530 Piston to teleport Resolved MC-89753 Cave Spiders get stuck in crusher block Resolved MC-89762 Sticky piston pulls mob into itself Resolved MC-89777 Slime block player launchers are finicky Resolved MC-89992 Pulling boats through blocks with pistons Resolved

Attachments

Comments 118

[media][media][media][media][media][media]

[^Minecraft 15w47c =20_11_2015= 20_14_45 [PM].mp4]

Confirmed for 15w38b

Confirmed for 15w39b

Confirmed for 15w39c

Confirmed for 15w40a

108 more comments

Is this the glitch that allows the amazing elevators and transport systems?

No, this is the bug that destroyed some spider farms and item-related piston machines and that's luckily now fixed. You can all stop commenting here.

Guys we still have lots if bugs we can exploit! Pistons, dispensers and droppers getting powered from the block above... but only if they get a block update. Being able to fly by hitting yourself with arrows shot by you. Boats going super fast on ice. Redstone updating in a random order. Go argue about those. This one got fixed already.

This still affects items. Create a new ticket or change this one?

The new ticket for items is apparently MC-108427.

Panda4994

Erik Broes

Confirmed

Minecraft 15w38b, Minecraft 15w39b, Minecraft 15w39c, Minecraft 15w40a, Minecraft 15w41b, ..., Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c

Minecraft 16w40a

Retrieved