Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-154554

You cannot create additional event names in music_definitions.json

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.19.40.22 Preview, 1.19.0.27 Preview, 1.19.30
    • None
    • Unconfirmed
    • Windows

      Adding a new event, or modifying the event name inside of music_definitions.json does nothing.

       
      For example, given the following lines in music_definitions.json :

       
      "redwood_taiga_hills_mutated" : {
            "event_name" : "music.game_and_wild_favor_game",
            "max_delay" : 180,
            "min_delay" : 60
         },
         "redwood_taiga_mutated" : {
            "event_name" : "music.game_and_wild_favor_game",
            "max_delay" : 180,
            "min_delay" : 60
         },
      If I wanted to change the soundtrack played when a player was in a "redwood_taiga_mutated" biome and the "event_name" to a custom one I defined with a different list of audio, it would fail to play.
       

      The following is an example of a situation that would not do anything when run inside of a resource pack.

      music_definitions.json :

       
      "redwood_taiga_hills_mutated" : {
            "event_name" : "music.custom2",
            "max_delay" : 180,
            "min_delay" : 60
         },
         "redwood_taiga_mutated" : {
            "event_name" : "music.custom",
            "max_delay" : 180,
            "min_delay" : 60
         },
       
      sound_definitions.json :
       
      "music.custom": {
                  "category": "music",
                  "sounds": [
                      {
                          "load_on_low_memory": true,
                          "name": "sounds/music/custom",
                          "stream": true,
                          "volume": 0.30
                      }
                  ]
              },
      "music.custom2": {
                  "category": "music",
                  "sounds": [
                      {
                          "load_on_low_memory": true,
                          "name": "sounds/music/custom2",
                          "stream": true,
                          "volume": 0.30
                      }
                  ]
              },
       
       
      music_definitions.json does not understand any of the custom events defined in sounds_definitions.json and will break, causing it to play the default soundtracks.
      This is an issue because there is no customizability inside of music_definitions.json that lets us establish our own biome-based music.

            EstrongelPlays EstrongelPlays
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: