Music Sync
同步所有玩家正在播放的具体背景音乐!
功能
- 处于同一区域(生物群系类型)的所有玩家将同时听到相同的背景音乐。
- 其余功能与原版 Minecraft 完全一致;所有曲目均在相同位置、以相同频率和音量播放。
- 音乐音量滑块仍然控制游戏内的音乐音量。
使用方法
所有玩家必须加载该资源包才能听到同步的音乐。未加载该资源包的玩家仍将听到原版的音乐。
此数据包/资源包旨在用于原版 Minecraft 1.20.1。不保证与其他数据包、模组或资源包的兼容性;特别是,你几乎肯定听不到其他内容添加的新音乐曲目,自定义生物群系/维度中也不会播放任何音乐。
技术细节
此数据包使用 beet 自动为原版游戏中每个生物群系使用的每首曲目和声音事件生成 sounds.json 条目及函数。
其工作原理是:将所有原版音乐声音事件替换为空数组(因此不播放任何声音),然后为每首单独的曲目创建一个新的声音事件,最后重新实现触发播放各曲目的逻辑,使得满足相同条件的所有玩家获得相同的曲目。
许可证
版权所有 © Penguin_Spy 2023
本源代码格式受 Mozilla 公共许可证第 2.0 版条款的约束。如果未随本文件分发 MPL 副本,您可以从 获取一份。
Music Sync
Sync what specific background music is playing between all players!
Features
- All players in the same area (type of biome) will hear the same background music at the same time.
- Otherwise identical functionality to vanilla Minecraft; all tracks play in the same places with the same frequency and the same volume.
- The music volume slider still controls the in-game music volume.
Usage
- Download the datapack & resourcepack from Modrinth, or the latest GitHub release.
- Add the datapack to your world, and enable the resourcepack (or set it as the server resource pack).
All players must have the resourcepack loaded to hear the synced music. Players without the resourcepack will still hear vanilla music.
This datapack/resourcepack is intended to be used with vanilla Minecraft 1.20.1. Compatability with other datapacks, mods, or resourcepacks is not garunteed; in particular you will almost definetly not hear any new music tracks added by other things, and no music will play in custom biomes/dimensions.
Technical details
This datapack uses beet to automatically generate sounds.json entries & functions for every track & sound event used by each biome in the vanilla game.
It works by replacing all vanilla music sound events with empty arrays (so no sounds play), then creating a new sound event for each individual track, and finally re-implements the logic for when to play each track such that all players with the same conditions get the same track.
License
Copyright © Penguin_Spy 2023
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at .
评论 0
登录后参与评分
还没有评论,来抢沙发吧