-
Notifications
You must be signed in to change notification settings - Fork 23
Custom Sounds
Raid battles play music from the cobblemonraiddens:battle.raid.tier_x sound event, where x is the tier of the raid. By default, every tier contains the cobblemonraiddens:battle.raid.default sound event, which contains the cobblemon:battle.pvw.default sound event. The first two can be found in assets/cobblemonraiddens/sounds.json within the mod jar, and the latter can be found in Cobblemon's mod jar.
New raid music can be added with a simple resource pack, by adding the music in a .ogg file and adding it to the sound event(s) in sounds.json. Alternatively, adding the music to the default Cobblemon wild battle music (cobblemon:battle.pvw.default) also adds it to raid battles (with the exception of below).
If you would like raids to have exclusive music only that is not played in normal wild battles, you will need to add "replace": true to the sound event in sounds.json.
Example
{
"battle.raid.default": {
"replace": true,
"sounds": [ ... ]
}
}The battle music can also be changed mid-battle through the play_sound script. Refer to Scripting.
The same play_sound script can be used to play sound events without replacing the existing battle music by setting is_music to false.
- Game Mechanics
- Customisation
- For Developers
- Archived