mojira.dev
MC-302227

Floating sand and red sand blocks no longer create falling particles

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:

  1. Locate a floating block of sand or red sand. (This is most easily done in a desert or the badlands.)

  2. 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

MC-301494 claims this was fixed in 25w37a, and indeed I cannot reproduce this issue in pre2.

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.

I had tried to reproduce it on both versions listed and was under the impression the bug was still present on 1.21.9-pre2, but I have since observed that the bug is not present. Guess I just got bad RNG the first time 🥲

TkainMinecraft

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8, 1.21.9 Pre-Release 2

Retrieved