灵感来源于 Vazkii 的 "Ambience" 和 viniciusgf1 的 "Ambience - Extras",本模组允许你根据游戏状态播放自定义音乐,例如 Boss 战、战斗、身处地下、睡觉、钓鱼、一天中的不同时间段以及更多情况,但拥有比旧版本更加灵活的配置系统。此版本 不 包含旧模组中的任何方块、物品或命令,且我目前没有重新实现这些功能的计划;因此名称中带有“Mini”(尽管该模组已不再那么“迷你”,不过也无所谓了)。
CurseForge 上仅包含开始使用本模组所需的最低限度信息,但你始终可以在 Ambience Mini Wiki 上找到更多信息,或在 Ambience Mini Discord 服务器 上提问。欢迎在 Discord 或 GitHub 上报告错误。
此外,Ambience Mini 现在提供了一个 基于网页的音乐配置编辑器,帮助你创建、修改和测试音乐包配置。
这个模组是否有些过度设计?也许吧。制作它有趣吗?是的!
功能概览
模组的完整功能在 Wiki 中有详细解释,这里提供一个粗略概述。
最新版本可以检测/读取:
- 特定的打开菜单(主菜单、加入游戏、断开连接、制作人员名单、暂停)。
- 特定的世界信息(难度、维度 ID、生物群系 ID 和标签)。
- 一天中的时间(白天、夜晚、黄昏、黎明)。
- 天气(雨、雪、雷暴)。
- 特定的玩家状态(生命值、睡觉、钓鱼、水下、骑乘/载具、药水/减益效果、鞘翅等)。
- 战斗状态(已击败的生物数量、活跃的 Boss 以及附近是否有监守者)。
- 通过计算附近的实体来识别村庄和牧场。
- 根据周围方块和光照判断玩家是否在洞穴中。
- 玩家当前所在的所有用户定义区域/范围。 (部分功能需要服务器支持)
- 玩家是否处于自动生成的结构(如村庄和要塞)中。 (需要服务器支持)
- 存储在服务器上并通过命令设置的标志(命名文本/字符串值)。 (需要服务器支持)
洞穴检测: 洞穴检测算法利用周围的光照和方块来判断玩家处于洞穴中的可能性,与其他通常仅依赖光照和/或海拔高度的音乐模组相比,能够更精确地检测洞穴。
区域系统: 玩家可以使用完全基于客户端的系统(通过快捷键和菜单)定义命名区域,即使模组未安装在服务器上也是如此。在服务器支持下,区域可以在玩家之间共享。
标志系统: 在服务器支持下,拥有操作员权限的玩家可以定义带有文本/字符串值的命名变量,用于音乐选择。你也可以使用命令方块来更新这些标志。
支持的文件格式: MP3、OGG 和 FLAC。
原版音乐播放器: 如果某些情况下你仍然希望保留正常的 Minecraft 音乐,你可以在音乐配置中重新启用内置的音乐播放器。
基本快捷键:
P 在游戏中重载 Ambience Mini 和音乐包,这样你就可以在不重启游戏的情况下应用更改后的音乐配置,或者在音乐引擎崩溃时进行恢复。
End 将暂停/继续当前正在播放的音乐。
Page Up 在当前播放列表中切换到下一首音乐。
Page Down 将所有 Ambience Mini 状态(事件和属性)打印到 Minecraft 日志中,让你看到模组所感知到的内容。
安装与配置
如需视频教程指南:
要开始使用,你需要下载并安装 1) 模组本身 2) 一个音乐包。在 2.2.0 版本之前,该模组应仅安装在客户端。从 2.2.0 版本及以上,该模组可以安装在客户端、服务器或两者之上。当安装在服务器上时,会启用一些额外功能(并且没有安装该模组的客户端仍然可以加入)。
接下来,你可以下载一个 适用于 Ambience Mini 2.7.x 的示例音乐包,或者 尝试制作你自己的。无论哪种情况,请确保 ambience_music 文件夹放置在 .minecraft 文件夹内,与 mods 文件夹并列。
以下列表显示了本模组使用的文件和文件夹。音乐文件位于 .minecraft/ambience_music/music/ 中。文件 .minecraft/ambience_music/music_config.txt 描述了在何种条件下应播放哪些音乐。
- .minecraft
- ambience_music // <-- 示例可从上述链接下载
- music
- Music1.mp3
- Music2.mp3
- ...
- MusicN.mp3
- music_config.txt
- config
- ambience_mini-client.toml
- mods
- AmbienceMini-McVersion-ModVersion.jar
如果在设置模组或音乐包时遇到问题,请参阅 故障排除 页面。
注意事项
默认情况下,由于音乐往往比其他声音小得多,而且将音乐与主音量断开比调整其他所有内容要容易得多,因此模组会忽略 Minecraft 中的主音量设置。此行为可以在 "ambience_mini-client.toml" 配置文件中更改。
Inspired by "Ambience" by Vazkii and "Ambience - Extras" by viniciusgf1, this mod lets you play custom music based on game state such as boss fights, combat, being underground, sleeping, fishing, the time of day, and many more, but with a much more flexible configuration system compared to the older versions. This version does not provide any of the blocks, items, or commands from the older mods and I currently have no plans of re-implementing these; hence the "Mini" in the name (though the mod is not so "mini" anymore, but oh well).
CurseForge contains only the minimum information needed to get started with the mod but you can always find more information on the Ambience Mini Wiki or ask questions on the Ambience Mini Discord Server. Feel free to report errors on Discord or GitHub.
Also, Ambience Mini now has a web-based music configuration editor which helps you create, modify, and test music pack configurations.
Is this mod a bit over-engineered? Perhaps. Was it fun to make? Yes!
Feature overview
The full capabilities of the mod are explained throughout the wiki, but here is a rough overview.
The latest version can detect/read:
- Certain open menus (main menu, joining, disconnected, credits, paused).
- Certain world information (difficulty, dimension id, biome ids and tags).
- The time of day (day, night, dusk, dawn).
- The weather (rain, snow, thunder).
- Certain player states (health, sleeping, fishing, underwater, mounts/vehicles, potion/(de-)buff effects, elytra, and more).
- Combat state (number of fought mobs, active bosses, and whether a warden is nearby).
- Villages and ranches by counting nearby entities.
- Whether the player is in a cave based on the surrounding blocks and lighting.
- All user-defined areas/regions the player is currently located within. (some features require server support)
- Whether the player is in auto-generated structures such as villages and strongholds. (requires server support)
- Flags (named text/string values) stored on the server and which can be set with commands. (requires server support)
Cave detection: The cave detection algorithm uses the surrounding lighting and blocks to determine how likely it is that the player is in a cave or not, allowing for much more precise detection of caves compared to other music mods which typically rely solely on lighting and/or elevation.
Area system: Players can define named areas using a fully client-side-based system using key bindings and menus, even when the mod is not installed on the server. With server support, areas can be shared between players.
Flag system: With server support, players with operator privileges can define named variables with text/string values which can be used for music selection. You can also use command blocks to update these flags.
Supported file formats: MP3, OGG, and FLAC.
Vanilla music player: You can re-enable the built-in music player in the music configuration in case you still want the normal Minecraft in certain cases.
Basic key bindings:
P reloads Ambience Mini and the music pack while in-game, so you can apply your changed music config without restarting the game or recover if the music engine crashes.
End will pause/resume the currently playing music.
Page Up selects a new music within the current playlist.
Page Down prints all Ambience Mini state (events and properties) to the Minecraft logs, allowing you to see what the mod sees.
Installation and Configuration
For a video-based guide:
To get started, you need to download and install 1) the mod itself and 2) a music pack. Before version 2.2.0, the mod should only be installed on the client. From version 2.2.0 and up, the mod can be installed on either or both the client and the server. When installed on the server, a few additional features are enabled (and clients without the mod can still join).
Next, you can either download a sample music pack for Ambience Mini 2.7.x or try making your own. In either case, make sure the ambience_music-folder is placed in the .minecraft-folder alongside the mods-folder.
The list below shows the files and folders used by this mod. The music files are located in .minecraft/ambience_music/music/. The file .minecraft/ambience_music/music_config.txt describes which music should be played under which conditions.
- .minecraft
- ambience_music // <-- Sample can be downloaded from the link above
- music
- Music1.mp3
- Music2.mp3
- ...
- MusicN.mp3
- music_config.txt
- config
- ambience_mini-client.toml
- mods
- AmbienceMini-McVersion-ModVersion.jar
If you run into problems with setting up the mod or music packs, see also the troubleshooting page.
Things of Note
By default, the mod ignores the master volume setting in Minecraft since the music tends to become way too silent compared to other sounds and it was way easier to just disconnect the music from the master volume than to adjust everything else. This behavior can be changed in the "ambience_mini-client.toml" configuration file.
评论 0
登录后参与评分
还没有评论,来抢沙发吧