Music Zones
An experimental Minecraft NeoForge mod that adds configurable Music Zones:
- Music Zones can be created and edited by server admins and command blocks
- Musics are basically sound events, you just need a resource pack to add more music
- Uses NeoForge's
SelectMusicEventwith a LOW priority. Making sure to be well integrated with vanilla and modded Minecraft music. - You can set a priority to a zone so you can put small zones inside big zones
- Zones are identified by a unique label
Example commands
Create a music zone playing a custom shop music when a player enters:
/musiczones new ~ ~ ~ ~20 ~20 ~20 custom:music.shop my_shop 1
Also add Stal. When the player enters, either the custom shop music or Stal will play:
/musiczones edit my_shop sound add minecraft:music_disc.stal
Create a big zone with the priority set to 0, so you can have an "overworld" music and a shop music. (When the player is inside two zones with different musics, the one with the higher priority will play instead):
/musiczones new ~-100 ~-100 ~-100 ~100 ~100 ~100 custom:music.overworld my_shop 0
Of course, you'd like to remove a zone you have created earlier:
/musiczones remove my_shop
You can even use command blocks to disable and enable zones if needed:
/musiczones edit my_shop disable
/musiczones edit my_shop enable
Issues?
Create an Issue or a Pull Request on Github. Contributions are very welcome. But please make sure the issue is related to Music Zones.
I won't support Fabric nor other Minecraft versions, feel free to port.