Prior to 1.21.5, sand and red sand blocks would emit particles on their lower face when floating in air. (This is the same as other falling blocks, like gravel and suspicious sand.) However, in versions 1.21.5 and newer, sand and red sand no longer emit these particles.
Steps to reproduce:
Locate a floating block of sand or red sand. (This is most easily done in a desert or the badlands.)
Observe that it does not produce particles on its lower face.
Likely fix:
This issue likely occurs because of the addition of a dedicated SandBlock
class for sand blocks (sand and red sand) in 1.21.5. The SandBlock
class includes its own override of the animateTick
method which plays ambient noises under certain conditions. Below is a decompiled version of this method (using official Mojang mappings):
@Override
public void animateTick(BlockState state, Level level, BlockPos pos, RandomSource random) {
AmbientDesertBlockSoundsPlayer.playAmbientBlockSounds(state, level, pos, random);
}
However, the logic for spawning falling particles is contained in SandBlock
’s parent class’s version of animateTick
, which is not called in SandBlock
’s version of the method. This is likely why these particles do not spawn. To fix this issue, simply call the parent class’s animateTick
method in SandBlock
’s version of the method:
@Override
public void animateTick(BlockState state, Level level, BlockPos pos, RandomSource random) {
super.animateTick(state, level, pos, random);
AmbientDesertBlockSoundsPlayer.playAmbientBlockSounds(state, level, pos, random);
}
Linked issues
Attachments
Comments 3
Closing this as a duplicate. Please do not add versions to affected versions of a bug report unless the bug has been reproduced on that version.
MC-301494 claims this was fixed in 25w37a, and indeed I cannot reproduce this issue in pre2.