Skip to content

The [sound] function is broken in version 1.21.4. #21

@Huge-mistake

Description

@Huge-mistake

Describe the bug
The sound in 1.21.4 seems to have changed and needs to be fixed.
When using uppercase letters, an error will be triggered, for example, 'BLOCK_AMETHYST_BLOCK_HIT'.
net.minecraft.ResourceLocationException: Non [a-z0-9/._-] character in path of location: minecraft:BLOCK_AMETHYST_BLOCK_HIT
Using lowercase will not cause any issues. "block_amethyst_block_hit"

To Reproduce
Steps to reproduce the behavior:
On the 1.21.4 server, using CitizensCMD to add sound operations for NPCs, and then interacting with them, the sound will not be played, and an error will occur.

Expected behavior
Both uppercase and lowercase should work properly for playing the sound without any error messages, at least when running version 1.21.1.
Screenshots
null

Versions (please complete the following information):

  • Citizens#3703
  • CitizensCMD 2.7.2
  • Java 21

Additional context
null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions