mojira.dev
MC-260812

minecraft:moving_piston can no longer be targeted and removed via right clicking

The bug

In Beta 1.7.2, the moving piston block was made targetable, and right clicking on it would result in it disappearing. This was implemented to fix an issue in Beta 1.7 and Beta 1.7_01 regarding worlds repeatedly crashing due to early issues with pistons, allowing players to remove these glitched blocks and play worlds as normal: https://twitter.com/jeb_/status/86692109700186114

However, snapshot 14w32a removed the ability to target the moving piston block. As a result, if a world was loaded in Beta 1.7 or 1.7_01, crashed, and then the same world was loaded in 1.8 or newer, affected pistons will fail to work due to the invisible moving piston block in front of them which cannot be removed easily.

How to reproduce

Attached to this ticket is a world from Beta 1.7_01 in which the crash was triggered. It can be upgraded into subsequent versions to observe the effects. Note that for the latest version (1.19.3), it must first be loaded in 1.2 or later to convert it into a readable format.

In versions Beta 1.7.2 up to 14w31a, the moving piston block has a visible hitbox. Right clicking on the block removes it from the world.

From 14w32a onwards, the block cannot be targeted. However, it is still there, since attempting to power the piston will result in it not extending.

Expected results

The moving piston block would still be targetable, and right clicking would remove it.

Actual results

The moving piston block, while present, cannot be targeted and therefore cannot be removed at all.

Attachments

Comments 6

I'd like to add that moving pistons with no data are used by map makers to prevent liquids from flowing, and alike, as they act as air in pretty much every other way.
It shouldn't be too difficult to add an upgrade path that, instead, deleted the moving piston blocks if the last time it was loaded was beta 1.7/1.7_01. Doing that will resolve the main concern in this report, while not hindering map makers.

Don't level 0 light blocks act the exact same way? I forget whether they get washed away or not.

They get waterlogged.

MC-221590's resolution implies otherwise. Was it changed after the fact?

That's water flowing into not happening, not waterlogging. If a water source block would be created in that spot (via 2 adjacent source blocks) it will get waterlogged.

Can confirm in 1.19.4

muzikbike

(Unassigned)

Confirmed

(Unassigned)

1.19.3, 1.19.4 Pre-release 4, 1.19.4

Retrieved