Pistons at Y=1 do not push downwards / at Y=254 do not push upwards
The bug
A piston placed at Y=1 will not push downwards. This also happens at Y=254 with an upward facing piston.
Code analysis
Based on 1.11 decompiled using MCP 9.35 rc1
The method net.minecraft.block.BlockPistonBase.canPush(IBlockState, World, BlockPos, EnumFacing, boolean) allows piston movement only if the piston is not facing downwards or the potential block to move is not at y 0. It should allow piston movement as well if the block is air or has EnumPushReaction.DESTROY as push reaction.
Linked Issues
Created Issue:
Pistons at Y=1 do not push downward.
A piston placed at Y=1 will not push downwards. This also happens at Y=254 with an upward facing piston.
Environment
Operating system: OSX 10.9.3
Java Version "1.6.0_65"
A piston placed at Y=1 will not push downwards. This also happens at Y=254 with an upward facing piston.
Code analysis
Based on 1.11 decompiled using MCP 9.35 rc1
The method net.minecraft.block.BlockPistonBase.canPush(IBlockState, World, BlockPos, EnumFacing, boolean) allows piston movement only if the piston is not facing downwards or the potential block to move is not at y 0. It should allow piston movement as well if the block is air or has EnumPushReaction.DESTROY as push reaction.
Pistons at Y=1 do not push downward.Pistons at Y=1 do not push downwards / at Y=254 do not push upwards
The bug
A piston placed at Y=1 will not push downwards. This also happens at Y=254 with an upward facing piston.
Code analysis
Based on 1.11 decompiled using MCP 9.35 rc1
The method net.minecraft.block.BlockPistonBase.canPush(IBlockState, World, BlockPos, EnumFacing, boolean) allows piston movement only if the piston is not facing downwards or the potential block to move is not at y 0. It should allow piston movement as well if the block is air or has EnumPushReaction.DESTROY as push reaction.
Operating system: OSX 10.9.3
Java Version "1.6.0_65"
is duplicated by
Hello again!
This actually looks like a duplicate of MC-69876 - sorry, I didn't catch it when first checking out this ticket.
Arrabbani Maybe due to fix of MC-58985, this bugpost here is a dupe of MC-69876, as [Mod] markderickson found out; a potential fix is also mentioned in said bugpost.
Thank you for your report!
However, this issue is a Duplicate of MC-69876.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
WAI. This is so pistons don't push blocks into the void or the height limit (which will disappear).
No, it could still do that if you just put it at Y=2 and have it push 2 blocks in a row. If you do that, it just won't extend, and that's what should happen at Y=1.
confirmed for 1.8.7
Confirmed for
Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.
This is an automated comment on any open or reopened issue with out-of-date affected versions.
Confirmed for 17w17b.
Confirmed for 1.13.1.
Still not fixed in 1.14.3 or 1.14.4 pre releases
Affects 20w18a, can I request ownership?
Done, as KingSupernova hasn't been active since 2017.
Confirmed in 1.16-pre5.
Confirmed/Reproduced in 20w28a.
Even though I obviously already had 20w28a marked as affected?