mojira.dev
MC-265428

Custom music not playing in custom dimension's biome

Description

A custom biome, in a custom dimension I'm making is not playing the custom music I have in a resource pack. While it both works with /playsound (set to music), and if I put it as ambience instead.

I attached the relevant files (save/resourcepack)

Resourcepack - sounds.json

 

{
  "music.limbo": {
    "sounds": [
        {
            "name":"extrasounds:limbo/music/limbo",
            "stream": true
        },
        {
            "name":"extrasounds:limbo/music/gravity",
            "stream": true
        },
        {
            "name":"extrasounds:limbo/music/menu",
            "stream": true
        },
        {
            "name":"extrasounds:limbo/music/sister",
            "stream": true
        }
    ]
  },
    "ambient.limbo.loop": {
    "stream": true,
    "sounds": [
    "extrasounds:limbo/ambience/wind",
    "extrasounds:limbo/ambience/forest"
    ]
  }
}

 

Dimension - Custom Biome json

{
    "temperature": 0.2,
    "downfall": 0.4,
    "creature_spawn_probability": 0.2,
    "effects": {
        "sky_color": 9737364,
        "fog_color": 16448250,
        "water_color": 16777215,
        "water_fog_color": 16777215,
        "grass_color": 0,
        "foliage_color": 0,
        "ambient_sound": {
            "sound_id": "extrasounds:ambient.limbo.loop"
        },
        "music": {
            "sound_id": "extrasounds:music.limbo",
            "min_delay": 600,
            "max_delay": 16000,
            "replace_current_music": false
        },
        "particle": {
            "options": {
                "type": "ash"
            },
            "probability": 0.1
        }
    },
    "spawners": {
        "creature": [],
        "misc": [],
        "monster": [
            {
                "type": "minecraft:spider",
                "weight": 4,
                "minCount": 1,
                "maxCount": 2
            },
            {
                "type": "minecraft:enderman",
                "weight": 2,
                "minCount": 1,
                "maxCount": 4
            },
            {
                "type": "minecraft:vindicator",
                "weight": 3,
                "minCount": 1,
                "maxCount": 2
            },
            {
                "type": "minecraft:evoker",
                "weight": 1,
                "minCount": 1,
                "maxCount": 1
            },
            {
                "type": "minecraft:pillager",
                "weight": 5,
                "minCount": 1,
                "maxCount": 3
            }
        ],
        "water_ambient": [],
        "water_creature": []
    },
    "spawn_costs": {
        "minecraft:vindicator": {
            "energy_budget": 0.12,
            "charge": 20
        },
        "minecraft:pillager": {
            "energy_budget": 0.12,
            "charge": 10
        },
        "minecraft:evoker": {
            "energy_budget": 0.12,
            "charge": 30
        },
        "minecraft:enderman": {
            "energy_budget": 0.12,
            "charge": 5
        },
        "minecraft:spider": {
            "energy_budget": 0.12,
            "charge": 3
        }
    },
    "carvers": {
        "air": [
            "minecraft:cave",
            "minecraft:canyon"
        ],
        "liquid": [
            "minecraft:cave"
        ]
    },
    "features": [
        [
            "minecraft:acacia",
            "limbo:grass"
        ],
        [
            "limbo:grass",
            "limbo:piler"
        ],
        [],
        [],
        [
            "minecraft:acacia"
        ],
        [],
        [],
        [],
        [
            "limbo:st_placed_feature"
        ],
        [
            "limbo:st_placed_feature",
            "limbo:ct_placed_feature"
        ],
        [
            "limbo:st_placed_feature",
            "minecraft:acacia"
        ]
    ],
    "has_precipitation": false
}

Download link to resourcepack

[LimboMusic(Resource pack!).zip|https://1drv.ms/u/s!ApS811JD8oEK02A07UyI64tbRhkD?e=G7OhIy]

 

Attachments

Comments 2

Your biome has an error with music, it is missing sound. Once I added it, it worked for me:

"sound": {
      "sound_id": "extrasounds:music.limbo"
  },

@Lupcius 

Dang, that was the problem. I really thought I tried everything, and the json wasn't updated. Sorry for wasting time

Peter Kolbe

(Unassigned)

Unconfirmed

(Unassigned)

1.20.1

Retrieved