Based on Based on 1.11.2 decompiled using MCP 9.37
The bug
Blocks moved by pistons (piston_extension) use the default block sound (stone) instead of the sound of the moved block since the class BlockPistonMoving is not overriding net.minecraft.block.Block.getSoundType().
Attachments
Comments 4
This affects 26.3 and 26.4 snapshot 6:
public static final Block MOVING_PISTON = register(
BlockIds.MOVING_PISTON,
MovingPistonBlock::new,
BlockBehaviour.Properties.of()
.mapColor(MapColor.STONE)
.forceSolidOn()
.strength(-1.0F)
.dynamicShape()
.noLootTable()
.noOcclusion()
.isValidSpawn(Blocks::never)
.isRedstoneConductor(Blocks::never)
.isSuffocating(Blocks::never)
.pushReaction(PushReaction.IMMOVEABLE)
);The moving piston block is registered without any .sound(...) call. Additionally, this is reproducible in game using the attached resource pack:
/fill -5 -64 30 5 -55 60 stone
/fill -5 -61 30 5 -55 60 air
/fill 0 -61 31 0 -61 58 white_wool
/fill 2 -63 31 2 -63 58 piston[facing=up]
/fill 2 -62 31 2 -62 58 white_wool
/fill 4 -61 31 4 -61 58 stone
/tick freeze
/fill 2 -64 31 2 -64 58 redstone_block
/tick step 1 (2x)
/execute if block 2 -61 40 moving_piston
/data get block 2 -61 40
/gamemode survival @s
/effect give @s resistance 600 4 true
/tp @s 0.5 -54 33.5 0 30
/tp @s 2.5 -54 33.5 0 30
Resource pack:
Subtitles must be enabled for the resource pack reproduction, it should say:
”Fall: STONE, Footsteps: STONE.” on the moving piston that’s carrying wool.
Unable to reproduce in 20w30a.