mojira.dev
MC-118439

Moved block (piston extension) uses default sound instead of sound of moved block

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

Unable to reproduce in 20w30a.

I don't see any evidence you broke a block in that screenshot...

Would MC-203550 or MC-240009 describe this properly? If not, could you please update the report with clear steps to reproduce, and expected vs. observed results? Also checking whether this affects the latest version still.

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:

[media]
2026-11-01_13.27.32-20261101-102732.png

Subtitles must be enabled for the resource pack reproduction, it should say:

”Fall: STONE, Footsteps: STONE.” on the moving piston that’s carrying wool.

Marcono1234

(Unassigned)

Confirmed

Sound

moving_piston, piston, sound

Minecraft 1.12, Minecraft 1.12.2, Minecraft 18w11a, 26.3, 26.4 Snapshot 6

Retrieved