Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-217443

Namespaced resource packs load sounds from default namespace (minecraft)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 21w08b
    • None
    • Windows 10, java 1.8.0_51 x64
    • Unconfirmed
    • (Unassigned)

      When creating a resource pack, you can namespace it by using this folder structure:
      /<resource_pack_name>
      /<resource_pack_name>/assets/<namespace_name>

      if you want to add new sounds events in a custom namespace, you create a sounds.json file:
      /<resource_pack_name>/assets/<namespace_name>/sounds.json

      Now, the sound event is known by the game (see picture 1). However, the sound file has to be placed in the minecraft namespace in order to be played:
      /<resource_pack_name>/assets/minecraft/sounds/test.ogg

      More, if the sound file is not found, the /playsound command does not return an error (see picture 2).

       

      Maybe related to MC-118737.

        1. picture 1.png
          picture 1.png
          122 kB
        2. picture 2.png
          picture 2.png
          131 kB

            Unassigned Unassigned
            the_Tracker Griv Eli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: