The bug
When rails and coral placed on top of slime blocks are moved by a piston, they are not destroyed. However, when placed on top of honey blocks, they are destroyed upon movement. This behavior lacks consistency (see attached images).
Related Issues
Linked issues
is duplicated by 1
Attachments
Comments 5
Following the fix for issue MC-251040 (which now allows for proper positioning on honey blocks), there remains an issue with certain blocks that do not move along with honey blocks; listed below are the blocks that has different behaviors between slime and honey.
- All rail and coral blocks
All other blocks behave the same way when comparing slime to honey.
Code analysis: The reason this happens is because a block’s default “block support shape” is the block’s collision shape. For honey blocks these are not the same shape. MovingPistonBlock inherits the default block support shape definition logic instead of using the moved block’s logic, so it instead uses the honey block’s collision shape as its block support shape. (It never mattered before, because the only two blocks that could push or pull other blocks were (sticky) pistons and slime blocks, where the collision shape matches the support shape.)
Proposed solution: Override getBlockSupportShape in MovingPistonBlock to match the logic of its getCollisionShape method.
Thank you for helping us improve Minecraft! We saved your files: