Music Zones
一款实验性的 Minecraft NeoForge 模组,添加了可配置的 Music Zones(音乐区域):
- Music Zones 可以由服务器管理员和命令方块创建与编辑
- 音乐本质上是声音事件,你只需要一个资源包来添加更多音乐
- 使用 NeoForge 的
SelectMusicEvent,优先级为 LOW。
- 其他未使用 SelectMusicEvent 更改 Minecraft 音乐的模组可能无法按预期工作
- 你可以为区域设置优先级,从而将小区域嵌套在大区域内
- 区域通过唯一的标签进行标识
示例命令
创建一个玩家进入时播放自定义商店音乐的 Music Zone:
/musiczones new ~ ~ ~ ~20 ~20 ~20 custom:music.shop my_shop 1
同时添加 Stal。当玩家进入时,将播放自定义商店音乐或 Stal:
/musiczones edit my_shop sound add minecraft:music_disc.stal
创建一个优先级设为 0 的大区域,以便拥有“主世界”音乐和商店音乐。(当玩家处于两个不同音乐的区域中时,优先级较高的那个会播放):
/musiczones new ~-100 ~-100 ~-100 ~100 ~100 ~100 custom:music.overworld my_shop 0
当然,你也可以移除之前创建的某个区域:
/musiczones remove my_shop
如果需要,你甚至可以使用命令方块来禁用和启用区域:
/musiczones edit my_shop disable
/musiczones edit my_shop enable
遇到问题?
在 Github 上创建 Issue 或 Pull Request。非常欢迎贡献。但请确保问题与 Music Zones 相关。
我不支持 Fabric 或其他 Minecraft 版本,如有需要请自行移植。
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
SelectMusicEvent with a LOW priority.
- Other mods who change Minecraft music without using SelectMusicEvent might not work as intended
- 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧