Minecraft Battle Music 模组
此模组会在遭遇怪物/PVP 战斗时播放你导入的音乐。无需资源包!
请查看“设置”部分以了解如何开始使用。
功能
- 全部可配置: 检测范围、阈值、淡入淡出时间、音乐池等均可通过游戏内界面(需 ModMenu 和 Cloth Config)或 JSON 配置文件进行修改。
- 怪物战斗: 当有 5 个敌对怪物对你产生仇恨时开始播放。
- 重型模式: 当生命值较低、大量怪物正在攻击或正在对抗 Boss 时,切换至单独的“重型”播放列表。可从常规播放列表平滑交叉淡入!
- PvP 触发: 受到其他玩家设定的伤害量后开始播放战斗音乐(默认播放重型播放列表)。
- Boss 检测: 当 Boss 在检测范围内时开始播放重型播放列表,同时支持可选的迷你 Boss(远古守卫者、劫掠兽、唤魔者、猪灵蛮兵)以及任何额外配置的实体 ID。
- 战斗恢复: 如果新战斗紧接着上一场战斗开始,音乐将从上次淡出的位置继续播放。
依赖项
Fabric
- Fabric Loader
- Fabric API
- (可选,强烈推荐)Mod Menu 搭配 Cloth Config - 允许你在游戏内编辑设置。
Forge / NeoForge
- (可选,强烈推荐)Cloth Config - 允许你在游戏内编辑设置。
设置

添加你的音乐
首次启动时,模组会在你的 Minecraft 实例目录中创建一个 battlemusic 文件夹,其中包含两个子文件夹:
Regular Battle/
Heavy Battle/
将对应的音乐添加到相应文件夹中(详见下文这两个文件夹的含义)。无需重启。需要 Vorbis (.ogg) 音频文件。Vorbis!!!!!
此文件夹也可以通过 ModMenu 打开!
你可以在 ModMenu 中进一步调整设置以满足个人喜好。以下是默认设置。
音乐播放条件
- 常规战斗: 当检测半径(默认 25)内的怪物数量(默认 5 个)开始攻击玩家时触发。
- 重型战斗: 当你的生命值低于或等于阈值(默认 6HP / 3 颗心),或有 Boss 在附近时进行交叉淡入。一旦进入重型状态,它将保持重型直到整场战斗结束。
- PvP: 在时间窗口内(默认 5 秒)受到伤害(默认 6HP / 3 颗心)会播放战斗音乐(默认音乐池为重型,可配置为常规、重型或两者)。每次受击都会重置计时器 + 所有战斗配置的超时时间(默认 15 秒)。
- 当没有检测到战斗活动时,音乐将继续播放设定的一段时间(默认 15 秒),然后开始淡出。
请在模组的 Github Issue 追踪器 上提交任何问题。
许可证
MIT
Minecraft Battle Music Mod
This mod plays your imported music during mob/PVP battles. No resource pack needed!
Check the Setup section to see how to get started.
Features
- Configurable everything: detection range, thresholds, fade times, pools, and more, editable in-game (req. ModMenu and Cloth Config) or via the JSON config.
- Mob battles: starts when 5 hostile mobs are aggroed on you.
- Heavy mode: changes to a separate "heavy" playlist when the health drops low, many mobs are attacking or fighting a boss. Smoothly crossfades from the regular playlist!
- PvP trigger: Taking a set number damage from another player starts combat music (by default plays the Heavy playlist).
- Boss detection: Starts playing the heavy playlist when bosses are in range, plus optional mini-bosses (Elder Guardian, Ravager, Evoker, Piglin Brute) and any extra entity IDs configured.
- Battle resume: if a new fight starts right after the last, it picks the track back up where it faded.
Dependencies
Fabric
- Fabric Loader
- Fabric API
- (optional, very recommended) Mod Menu with Cloth Config - lets you edit settings in-game.
Forge / NeoForge
- (optional, very recommended) Cloth Config - lets you edit settings in-game.
Setup

Adding your music
On first launch the mod makes a battlemusic folder inside your Minecraft instance directory with two subfolders:
Regular Battle/
Heavy Battle/
Add your music corresponding to the folder (see below what both of these folders mean.) No restart needed. Requires Vorbis (.ogg) audio files. Vorbis!!!!!
This folder can be opened from ModMenu too!
You can tweak the settings to your liking further in the Modmenu. Below are the default settings.
Music play conditions
- Regular battle starts when a number of mobs (default 5) in the detection radius (default 25) are attacking the player.
- Heavy battle crossfades when your health is at/below a threshold (default 6HP / 3 hearts), or a boss is nearby. Once heavy, it stays heavy until the whole fight ends.
- PvP: receiving damage (default 6HP / 3 hearts) within a time windows (default 5 seconds) plays combat music (the default music pool is heavy, configurable to regular, heavy or both). The timer resets every hit + the configured timeout for all battles (default 15s)
- When there is no detected battle activity, the music continues to play for a set amount of time (default 15s) before beginning to fade out.
Please submit any issues on the mod's Github issue tracker!
License
MIT
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Battle Music
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
查看 GitHub 发布页面以获取变更内容。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧