mojira.dev
MC-275235

Goat horn instruments do not accept non-default sound events

When specifying a sound event that is not part of Minecraft by default inside of a goat horn instrument JSON file, the instrument fails to load and the world cannot be opened. This is likely due to that the server doesn't know what sound events have been added by resource packs.

Steps to reproduce

  1. Create a new sound in a resource pack's sounds.json file, which points to a sound file.
    For example:

    "test_sound": {
          "sounds": [
            "namespace:test_sound"
          ]
        }
  2. In a data pack, create a goat horn instrument JSON file in the data/instrument folder. In the sound_event field, specify the sound even in the resource pack.
    For example:

    {
      "sound_event": "namespace:test_sound",
      "use_duration": 0.001,
      "description": "",
      "range": 16
    }
  3. Open the world.

Observed result
The world cannot be opened, as errors were found in the pack. The log contains something akin to this error message:

Caused by: java.lang.IllegalStateException: Failed to get element ResourceKey[minecraft:sound_event / namespace:test_sound]

Expected result
No error appears and the custom goat horn instrument is able to be used.

Linked issues

Comments 3

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Thank you for your report!
After consideration, the issue is being closed as Invalid.

This report does not describe a bug.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Ellivers

(Unassigned)

Unconfirmed

(Unassigned)

24w33a

Retrieved