
[DCME] 动态情境音乐引擎
DCME 使用完全动态、情境感知的配乐系统替换了 Minecraft 原版音乐系统。音乐会根据你当前的行为实时调整:探索、战斗、挖矿、对抗 Boss 或观看制作人员名单滚动时,都会播放相应的音乐。
重要提示:需要资源包
DCME 仅是一个音乐引擎,不包含任何音乐音轨。你需要一个兼容的资源包才能在游戏中听到音乐。在 CurseForge 或 Modrinth 上搜索 [DCME] 以找到社区制作的配乐。
如果你制作了音乐包,请在项目标题中添加 [DCME],以便用户能够找到它。
情境音乐
模组每秒评估数十种条件,并为当前时刻播放合适的音乐:
- 主世界 - 白天、夜晚、黎明和黄昏各自拥有独立的配乐
- 天气 - 雨天会触发专属的氛围音乐
- 地下 - 洞穴和深暗之域拥有独特的音乐
- 维度 - 下界和末地拥有截然不同的声景
- 战斗(PVE) - 当敌对生物锁定你时,动态音乐会启动
- 战斗(PVP) - 攻击者和受害者都会触发音乐,支持队伍保护功能及可配置超时机制
- Boss - 凋灵、末影龙和远古守卫者各自拥有专属的 Boss 主题音乐
- 界面 - 主菜单和制作人员名单拥有各自的音乐
平滑过渡
- 3 种过渡模式 - 交叉淡入淡出(同时淡入淡出)、间隙(音轨之间静音)或混合模式(同一组内交叉淡入淡出,不同组之间保留间隙)
- 战斗覆盖层 - 基础音乐在战斗期间几乎静音,战斗结束后从断点恢复
- Boss 战 - 在长时间的 Boss 遭遇战中释放基础音乐以节省资源
- 维度切换 - 进入传送门时音频状态会干净地重置
- 音轨末尾淡出 - 音轨在结束前优雅地淡出,而不是突然停止
PVP 战斗检测
DCME 在服务端跟踪玩家对玩家(PvP)的战斗情况。当一名玩家击中另一名玩家时,双方都会收到 PvP 战斗音乐信号。
- 双向反馈 - 两名玩家都会获得战斗音乐
- 队伍保护 - 记分板队伍相同的玩家不会互相触发 PvP 音乐
- 可配置超时 - 最后一次攻击后音乐保持激活的可配置时长(默认:5 秒)
播放一次(智能分组)
情境可以在转换之前完成当前音轨,但仅限于同一组内。改变维度或从地表进入地下时,始终立即进行交叉淡入淡出。
分组:overworld_surface(主世界地表)、overworld_underground(主世界地下)、nether(下界)、end(末地)、screen(界面)、combat(战斗)、boss(Boss)
配置
- JSON 配置文件 位于
config/dcme.json- 包含主音量、淡入淡出持续时间、音轨间间隙、战斗半径、PvP 超时时间、队伍保护、按情境开关等功能 - 游戏内配置界面 通过 Mod Menu 访问 - 无需编辑文件即可开启/关闭每个情境、调整 PvP 设置和更改过渡模式
- 按情境覆盖 - 每个情境都可以定义自己的音量、淡入淡出时间和间隙持续时间
100% 可通过资源包自定义
- 替换音轨 - 通过资源包交换任何 OGG 文件
- 添加新情境 - 创建 JSON 文件以定义新的音乐触发器
- 覆盖现有情境 - 用你自己的内容替换任何默认情境
- 自定义条件 - 生物群系、维度、一天中的时间、天气、海拔、天空亮度、战斗、Boss、结构、季节、进度等
请参阅随附的示例资源包和数据包以获取完整指南。
配置文件夹覆盖
将情境 JSON 放入 config/dcme/contexts/ 中,即可在不使用资源包的情况下覆盖任何情境。优先级最高 - 同时覆盖默认值和资源包。
第三方音乐屏蔽
DCME 会阻止其他模组播放其自带的音乐以防止冲突。可在 config/dcme.json 中按命名空间进行配置。留声机音乐永远不会被屏蔽。
情境优先级系统
| 情境 | 优先级 | 层级 | 分组 |
|---|---|---|---|
| 末影龙 | 100 | 覆盖 | boss |
| 凋灵 | 95 | 覆盖 | boss |
| 远古守卫者 | 90 | 覆盖 | boss |
| 战斗(监守者) | 85 | 覆盖 | combat |
| 战斗(通用) | 80 | 覆盖 | combat |
| 制作人员名单 | 70 | 基础 | screen |
| 主菜单 | 60 | 基础 | screen |
| 深暗之域 | 50 | 基础 | overworld_underground |
| 地下 | 40 | 基础 | overworld_underground |
| 雨天 | 38 | 基础 | overworld_surface |
| 黎明 | 22 | 基础 | overworld_surface |
| 黄昏 | 22 | 基础 | overworld_surface |
| 夜晚 | 20 | 基础 | overworld_surface |
| 白天 / 下界 / 末地 | 10 | 基础 | (因情况而异) |
兼容性
- Mod Menu - 用于游戏内配置界面
- Serene Seasons / Fabric Seasons - 基于季节的音乐
- Sound Physics Remastered, AmbientSounds
- PartyAddon 以及任何使用记分板队伍的团队模组
已用于 Legends Reborn: Medieval 整合包。

[DCME] Dynamic Contextual Music Engine
DCME replaces Minecraft's vanilla music system with a fully dynamic, context-aware soundtrack. Music adapts in real time to what you're doing: exploring, fighting, caving, facing a boss, or watching the credits roll.
Important: Resource Pack Required
DCME is a music engine and does not include music tracks. You need a compatible resource pack to hear music in-game. Search for [DCME] on CurseForge or Modrinth to find community-made soundtracks.
If you create a music pack, add [DCME] to your project title so users can find it.
Contextual Music
The mod evaluates dozens of conditions every second and plays the right music for the moment:
- Overworld - Day, night, dawn, and dusk each have their own soundtrack
- Weather - Rain triggers a dedicated atmosphere
- Underground - Caves and the Deep Dark get unique music
- Dimensions - Nether and The End have distinct soundscapes
- Combat (PVE) - Dynamic music kicks in when hostile mobs target you
- Combat (PVP) - Music triggers for both attacker and victim, with team protection and configurable timeout
- Bosses - Wither, Ender Dragon, and Elder Guardian each have dedicated boss themes
- Screens - Main menu and credits have their own music
Smooth Transitions
- 3 transition modes - Crossfade (simultaneous fade), Gap (silence between tracks), or Hybrid (crossfade within same group, gap between groups)
- Combat overlay - Base music fades to near-silence while combat plays, then resumes where it left off
- Boss fights - Base music is released during long boss encounters to free resources
- Dimension transitions - Audio state resets cleanly when entering portals
- End-of-track fade - Tracks fade out gracefully near the end instead of stopping abruptly
PVP Combat Detection
DCME tracks player-vs-player combat server-side. When a player hits another player, both receive the PVP combat music signal.
- Bidirectional - both players get combat music
- Team protection - players on the same scoreboard team won't trigger PVP music against each other
- Configurable timeout - music stays active for a configurable duration after the last hit (default: 5s)
Play Once (Smart Groups)
Contexts can finish their current track before transitioning, but only within the same group. Changing dimension or going from surface to underground always crossfades immediately.
Groups: overworld_surface, overworld_underground, nether, end, screen, combat, boss
Configuration
- JSON config at
config/dcme.json- master volume, fade durations, gap between tracks, combat radius, PVP timeout, team protection, per-context toggles, and more - In-game config screen via Mod Menu - toggle every context on/off, adjust PVP settings, and change transition modes without editing files
- Per-context overrides - each context can define its own volume, fade times, and gap duration
100% Customizable via Resource Packs
- Replace tracks - swap any OGG file via a resource pack
- Add new contexts - create JSON files to define new music triggers
- Override existing contexts - replace any default context with your own
- Custom conditions - biome, dimension, time of day, weather, altitude, sky light, combat, boss, structure, season, advancement, and more
See the included example resource pack and datapack for a complete guide.
Config Folder Overrides
Drop context JSONs into config/dcme/contexts/ to override any context without a resource pack. Highest priority - overrides both defaults and resource packs.
Third-Party Music Blocking
DCME blocks other mods from playing their own music to prevent conflicts. Configurable per-namespace in config/dcme.json. Jukebox music is never blocked.
Context Priority System
| Context | Priority | Layer | Group |
|---|---|---|---|
| Ender Dragon | 100 | Override | boss |
| Wither | 95 | Override | boss |
| Elder Guardian | 90 | Override | boss |
| Combat (Warden) | 85 | Override | combat |
| Combat (Generic) | 80 | Override | combat |
| Credits | 70 | Base | screen |
| Menu | 60 | Base | screen |
| Deep Dark | 50 | Base | overworld_underground |
| Underground | 40 | Base | overworld_underground |
| Rain | 38 | Base | overworld_surface |
| Dawn | 22 | Base | overworld_surface |
| Dusk | 22 | Base | overworld_surface |
| Night | 20 | Base | overworld_surface |
| Day / Nether / End | 10 | Base | (varies) |
Compatible with
- Mod Menu - for in-game config screen
- Serene Seasons / Fabric Seasons - season-based music
- Sound Physics Remastered, AmbientSounds
- PartyAddon and any team mod using scoreboard teams
Used in the Legends Reborn: Medieval modpack.
下载 [DCME] Dynamic Contextual Music Engine
下载 [DCME] Dynamic Contextual Music Engine
下载 [DCME] Dynamic Contextual Music Engine
下载 [DCME] Dynamic Contextual Music Engine
下载 [DCME] Dynamic Contextual Music Engine
下载 [DCME] Dynamic Contextual Music Engine
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 [DCME] Dynamic Contextual Music Engine
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 [DCME] Dynamic Contextual Music Engine
下载 [DCME] Dynamic Contextual Music Engine
下载 [DCME] Dynamic Contextual Music Engine
v1.0.5:
- 如果已安装季节模组,但 DCME 无法读取其当前季节,日志中现在会显示一条警告。在此之前,季节性音乐会在没有提示的情况下停止跟随游戏进度。
v1.0.4:
- 首个 Forge 和 NeoForge 版本。代码、功能与修复内容均与 Fabric 版 DCME 1.0.4 相同。
- 设置界面通过游戏的模组列表打开:选择 DCME,然后点击 Config。无需额外模组。
- 在客户端安装即可。同时在服务器端安装可启用服务端检测(结构、能看见你的怪物、PVP),效果与 Fabric 版一致。
- 在 Minecraft 1.20.1 中,同一个文件同时兼容 Forge 和 NeoForge。
- 示例资源包和数据包已附带,与 Fabric 版相同。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧