
本模组旨在改进 Minecraft 的音乐系统。
功能
该模组允许你添加自定义音轨,消除歌曲之间的静音间隔,并让你控制每首音轨的播放时机。
自定义音乐
只需将新歌曲放入模组的音乐文件夹中即可添加。
连续背景音乐
通常情况下,Minecraft 拥有超过 70 首曲目,但由于游戏在曲目之间设置了漫长的停顿,你每小时只能听到其中几首。本模组去除了这些停顿,为你提供不间断的背景音乐流。
控制音轨播放时机
你可以决定特定歌曲在何时播放。例如,你可以设置在水下生物群系之外播放水下音乐,或在夜间引入恐怖风格的音轨。这让你能够精细调整游戏氛围,以匹配你想要的风格。
该模组使用条件来判断何时播放特定的音乐音轨。一个条件可以是这样的:
- “玩家处于平原生物群系。”
- “玩家处于‘寒冷’生物群系。”
- “玩家在水下。”
- “Boss 血条可见。”
对于每个条件,你可以选择在该条件满足时播放的音轨。
你可以通过选择多个单独的条件来组合条件。只有当所有组成部分都满足时,组合条件才算成立,这让你能更精确地控制某些音轨的播放时机,并根据具体情况微调音乐。例如,你可以设置一个组合条件,当玩家在夜晚处于寒冷森林中时触发。
兼容性
- Forge, Neoforge, Fabric: 为三大加载器分别提供了版本。
- 客户端侧 (Client-Sided): 与所有服务器完全兼容。
- 其他模组: 自动检测来自其他模组的音乐音轨、生物群系及生物群系标签。
- Minecraft 版本: 目前仅支持 Minecraft 1.21。
配置
配置通过游戏内的配置菜单进行管理。在世界中时,按下“打开配置”键(默认为“B”)进入配置界面。退出界面后配置会自动保存。

主界面分为两部分。左侧,你可以使用选项卡按类别浏览和选择条件。当你选择一个条件时,右侧会显示其设置,你可以在这里分配音乐音轨等。
左下角有两个按钮:
- “重载 (Reload)” 按钮:重新加载配置文件并重新检测生物群系和生物群系标签。
- “打开音乐文件夹 (Open Music Folder)” 按钮:打开用于添加音乐文件的文件夹。添加文件后,点击重载使其出现在配置界面中。
条件类别
条件分为四个类别,可通过左侧的选项卡访问。使用搜索字段可在每个类别中查找特定条件。
生物群系条件 (Biome Conditions)
每个生物群系都有一个对应的条件,当玩家在该生物群系停留至少三秒时触发。这包括来自模组的生物群系。
生物群系标签条件 (Biome Tag Conditions)
(子)生物群系具有描述属性(如“寒冷”、“干燥”、“雪原”或“主世界”)的标签。这对于跨维度或相似生物群系设置音轨非常有用。包含来自其他模组的生物群系标签。
其他条件 (Other Conditions)

此类别中的大多数条件反映了 Minecraft 的内部机制,此外还有一些为了方便而添加的额外条件。“无其他音乐正在播放 (No Other Music Is Playing)” 是一个后备条件,始终满足(优先级最低),可用于在其他任何条件未激活时提供背景音乐。
组合条件 (Combined Conditions)
适用于特定情况,这些条件仅在所有子条件均满足时激活。例如:
- 玩家在夜晚位于寒冷的山丘上(条件:“是寒冷状态”、“是山丘”、“是夜晚”)。
- 玩家在末地且处于创造模式(条件:“是在末地”、“处于创造模式”)。
- 玩家在洞穴的水下(条件:“是在洞穴”、“是在水下”)。
配置条件:优先级和音乐音轨

当你选择一个条件时,可以配置其优先级级别,并分配在该条件满足时播放的音乐音轨。
优先级 (Priority)
优先级决定了当多个条件同时激活时,哪些条件具有优先权。较高的优先级数字意味着更高的重要性。如果满足了较高优先级的条件,较低优先级的条件将被忽略。更多详情请参阅 本节。
音乐音轨 (Music Tracks)
你可以为一个条件分配任意数量的音乐音轨。当条件满足时,会从这些音轨中随机选择一首。音轨组织方式为:自定义歌曲在最上方,其次是 Minecraft 的背景音乐和音乐唱片,最后是其他模组的音轨。
使用搜索字段查找特定歌曲。点击音轨旁边的按钮可预览该音轨。
添加和编辑组合条件

组合条件选项卡包含一个额外的按钮用于添加新条件,每个现有的组合条件旁边都有一个编辑按钮。除此之外,配置优先级和分配音乐音轨的方式与普通条件相同。

在创建或编辑组合条件时,会弹出一个新界面,您可以在其中自定义其详细信息。您可以:
- 为条件设置名称。
- 添加简短描述。
- 选择必须全部满足的子条件,才能使组合条件生效。
模组如何选择音乐曲目
该模组会持续监控活跃的条件,并按照以下步骤决定播放哪首音乐:
- 找出已满足条件中的最高优先级。
- 筛选掉不符合此优先级的任何条件。
- 收集与剩余条件关联的所有音乐曲目。
- 如果当前正在播放的曲目不在此列表中,则从列表中随机选择一首新曲目进行播放。
系统会记录最近播放过的曲目,以尽量避免连续重复(在可能的情况下)。
当前限制
- 支持添加以下格式的自定义音乐曲目:.wav、.mp3、.ogg (Vorbis)、.flac、.aiff/.aif/.aifc、.au、.ape、.spx。
- 该模组会覆盖 Minecraft 的默认音乐系统,因此依赖该系统的其他模组可能会出现兼容性问题。
即将推出的功能
我仍有一些想法打算在未来实现。
- 单独曲目音量控制:这将允许您分别调整每首曲目的音量,如果您的自定义曲目音频电平不同,这将非常有用。
- 用户界面改进:一些细微的调整,例如显示哪些条件已分配音乐以及哪些条件当前处于活跃状态的指示器。
- 向早期 Minecraft 版本移植:由于我使用的多加载器(multiloader)设置较为复杂,将模组移植到旧版本颇具挑战性,但按加载器逐个版本地进行移植应该是可行的,尽管会比较耗时。
- 更多设置选项:
- 恢复歌曲之间的随机静音间隔,以满足那些喜欢原版 Minecraft 中停顿感的玩家。
- 调整曲目之间淡入和淡出的时间。
- "Winamp"风格迷你播放器:在屏幕角落(或其他位置)放置一个迷你播放器,您可以在此查看当前歌曲、时长等信息。它还可以包含暂停或跳过歌曲等控制按钮。
- 条件分组:提供一种对条件进行分组的方法,以便一次性为所有组分配音乐,而不是手动为每个条件单独设置。
- 支持更多音频格式:我正在研究一款 Java 库,它有望实现播放几乎所有音频格式的功能,不过切换到该库需要额外的工作量。
整合包作者
欢迎在任何整合包中使用此模组。
支持
如果您发现错误或有任何建议,请提交工单。
许可证
本模组遵循 MIT 许可证 发布。

This mod aims to improve Minecraft's music system.
Features
The mod lets you add custom tracks, removes the silence between songs, and gives you control over when each track plays.
Custom Music
Add new songs simply by placing them into the mod’s music folder.
Continuous Background Music
Normally, Minecraft has over 70 tracks, but due to the long pauses Minecraft puts between tracks, you'll only hear a few each hour. This mod cuts out those pauses, giving you a steady flow of background music.
Control When a Track Should Play
You decide when specific songs play. For example, you could set underwater music to play outside ocean biomes or bring in spooky tracks at night. This lets you fine-tune the game’s atmosphere to match your desired vibe.
The mod uses conditions to determine when specific music tracks should play. A condition could be something like:
- "The player is in the plains biome."
- "The player is in a 'cold' biome."
- "The player is underwater."
- "A boss health bar is visible."
For each condition, you can select the tracks that will play whenever the condition is met.
You can combine conditions by selecting multiple individual ones. A combined condition is fulfilled only when all its parts are met, giving you more control over when certain tracks play and letting you fine-tune the music to match specific situations. For example, you could set up a combined condition that triggers when the player is in a cold forest at night.
Compatibility
- Forge, Neoforge, Fabric: There is a version for each of the three major mod loaders.
- Client-Sided: Fully compatible with all servers.
- Other Mods: Automatically detects music tracks, biomes, and biome tags from other mods.
- Minecraft Version: Currently supports Minecraft 1.21 only.
Configuration
Configuration is managed in-game through the config menu. When in a world, press the "Open Config" key (default is "B") to access the configuration screen. The configuration auto-saves after exiting the screen.

The main screen is split into two parts. On the left, you can browse and select conditions by category using the tabs. When you select a condition, the right side displays its settings, where you can assign music tracks and more.
At the bottom left, there are two buttons:
- The "Reload" button reloads the config file and re-detects biomes and biome tags.
- The "Open Music Folder" button opens the folder where you can add music files. After adding files, press reload to make them appear in the config screen.
Categories of Conditions
Conditions are grouped into four categories, accessible via the tabs on the left. Use the search field to locate specific conditions within each category.
Biome Conditions
There is a biome condition for each biome, triggered when the player stays in that biome for at least three seconds. This includes modded biomes.
Biome Tag Conditions
(Sub-)Biomes have tags that describe attributes like "cold," "dry," "snowy," or "overworld." These are useful for setting up tracks across dimensions or similar biomes. Biome tags from other mods are included.
Other Conditions

Most conditions in this category reflect Minecraft’s internal mechanics, plus a few additional ones for convenience. The “No Other Music Is Playing” condition is a fallback that’s always met (with the lowest priority) and can be used to have background music when no other condition is active.
Combined Conditions
Useful for specific situations, these conditions activate only when all their sub-conditions are met. For example:
- The player is on a cold hill at night (conditions "Is Cold," "Is Hill," "Is Night").
- The player is in the nether and in creative mode (conditions "Is Nether," "In Creative Mode").
- The player is under water in a cave (conditions "Is Cave", "Is Under Water").
Configuring a Condition: Priorities and Music Tracks

When you select a condition, you can configure its priority level and assign music tracks to play whenever the condition is met.
Priority
The priority determines which conditions take precedence when multiple are active. Higher priority numbers mean greater importance. If a condition with a higher priority is met, conditions with lower priorities are ignored. For more details, refer to this section.
Music Tracks
You can assign any number of music tracks to a condition. When the condition is met, one of these tracks is chosen randomly. Tracks are organized with custom songs at the top, followed by Minecraft’s background music and music discs, and finally tracks from other mods.
Use the search field to locate specific songs. Click the button next to a track to preview it.
Adding and Editing a Combined Condition

The combined conditions tab includes an additional button to add a new condition, and each existing combined condition has an edit button beside it. Beyond this, configuring priorities and assigning music tracks works the same as it does for standard conditions.

When creating or editing a combined condition, a new screen will appear where you can customize its details. You can:
- Set a name for the condition.
- Add a short description.
- Select the sub-conditions that must all be met for the combined condition to activate.
How the Mod Chooses a Music Track
The mod continuously monitors active conditions and determines which music to play by following these steps:
- Identifies the highest priority among the met conditions.
- Filters out any conditions that don’t match this priority.
- Gathers all music tracks associated with the remaining conditions.
- If the currently playing track isn’t in this list, it selects a new track randomly from the list.
Recently played tracks are tracked to avoid back-to-back repeats if possible.
Current Limitations
- Custom music tracks can be added in the following formats: .wav, .mp3, .ogg (Vorbis), .flac, .aiff/.aif/.aifc, .au, .ape, .spx.
- The mod overrides Minecraft's default music system, so other mods relying on it may have compatibility issues.
Upcoming Features
I still have some ideas I want to implement in the future.
- Individual Track Volume Control: This would allow you to adjust the volume of each track separately, which is helpful if your custom tracks have different audio levels.
- UI Improvements: Small tweaks, like an indicator to show which conditions have music assigned and which ones are currently active.
- Backports for Earlier Minecraft Versions: Backporting the mod to older versions is a bit tricky with the multiloader setup I have, but doing it modloader by modloader and version by version should be manageable, just time-consuming.
- Additional Settings:
- Bringing back random silences between songs, for those who like the pauses in vanilla Minecraft.
- Adjusting fade-in and fade-out times between the tracks.
- "Winamp": A mini-player you can have in a corner of the screen (or somewhere else) where you can see the current song, its duration etc. It could also have controls to e.g. pause or skip songs.
- Condition Grouping: A way to group conditions, so you can assign music to all of them at once, rather than setting each condition manually.
- Support for More Audio Formats: I’m looking into a Java library that could make it possible to play nearly any audio format, though switching to it would require some extra work.
Modpack Creators
Feel free to use this mod in any modpack.
Support
If you find a bug or have suggestions, please create a ticket.
License
This mod is available under the MIT License.
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
下载 Biome Beats
- 修复:
- 修复条件「白天」、「夜晚」、「主菜单」
- 修复重载逻辑
- 修复组合条件的清理问题
- 修复添加/移除时活动条件未更新的问题
- 修复一些潜在的崩溃问题
- 修复切换生物群系过快时的异常行为
- 修复预览播放按钮的 UI 状态
- 生物群系和生物群系标签现在会在每个服务器/世界重新初始化,以提供更好的数据包支持等
- 较小的代码改进
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧