介绍
Ambient Music Additions allows the addition of custom .ogg tracks to the Vanilla music rotation at configurable weights, with the additional ability to divide the music into categories. The music can play in specific structures and biomes, modded or otherwise.
———————————————-
_UPDATE: 1.1:_
A timeRanges argument has been added. The minTime and MaxTime are the time values in which the track could play, while the label is just for display purposes when using the info command in game.
There are a few options for label:
day
night
dawn
dusk
noon
midnight
"timeRanges": [
{
"label": "night",
"minTime": 12000,
"maxTime": 24000
}
]
Here is what a completed entry looks like with timeRanges included:
{
"soundId": "ambient_music_generator:lost_maze",
"replaceProbability": 1.0,
"weight": 10,
"biomes": [
"minecraft:swamp"
],
"structures": [],
"category": "overworld",
"timeRanges": [
{
"label": "night",
"minTime": 12000,
"maxTime": 24000
}
]
}
———————————————-
The Mod will by default create a resource pack folder called “Ambient Music Generator”. This should be enabled for everything to function properly.
Inside the music folder of this pack is where you will place your .ogg files for addition. Inside the sounds folder is sounds.json.
{
"example_track": {
"sounds": [
{
"name": "ambient_music_generator:music/example_track",
"stream": true
}
],
"subtitle": "subtitles.ambient_music_generator.example_track"
}
}
Each ogg file from the music folder should be listed in the sounds.json folder like so. The subtitle field is not required. The important thing is that “example_track” is replaced with the EXACT name of your .ogg file without the extension. I.E, if I wanted to add a track called, forest_creatures.ogg, the entry would look like the following:
{
"forest_creatures": {
"sounds": [
{
"name": "ambient_music_generator:music/forest_creatures",
"stream": true
}
],
"subtitle": "subtitles.ambient_music_generator.forest_creatures"
}
}
Once sounds.json is configured, another config file exists in the mods config folder, ambient-music-generator.json.
entries in this file look like the following:
{
"customTracks": [
{
"soundId": "ambient_music_generator:far_fields",
"replaceProbability": 1.0,
"weight": 10,
"biomes": [
"minecraft:jungle"
],
"structures": [],
"category": "overworld"
}
]
}
- The SOUND ID is the same id used in sounds.json.
- The Replace Probability determines how often the song will play instead of a vanilla track, with 1.0 meaning the track will always replace any vanilla options.
- The category option allows you to put tracks into a category. Tracks in the same category will play according to their individual weights, with higher weights making it more likely that a track in a given category will play. The game will randomly select a category to play music from if it selects a custom track instead of a vanilla one.
- Lastly, the biome and structure lists allow you to configure which biomes/structures the music should play in.
NOTE: Because structure detection is server sided, this mod MUST be installed on both the client and server to function properly in multiplayer.
The mod also adds a few useful commands:
_/ambientmusic info_: Displays info about the current track playing, the number of custom tracks loaded, the current structure/biome, and which custom tracks can play in your given situation.
_/ambientmusic skip_: Immediately skips to the next music track. This command works with any vanilla tracks as well and integrates properly with the music frequency option in the game settings.
_/ambientmusic reload_: Reloads sounds.json and ambient-music-generation.json.
Please notify me of any bugs that occur while playing. This mod is intended as a useful modpack utility and I welcome its use in any modpack.
常见问题
Ambient Music Additions 支持哪些 Minecraft 版本?
Ambient Music Additions 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Ambient Music Additions 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
baidan546 的其他作品
查看全部 →
Trims Begone!
一款简单的模组,让玩家可以拆下盔甲上的纹饰,并将材料返还到物品栏。
Leather Tweaks
新增将皮革盔甲拆解回皮革的功能,并加入可切换的腐肉制皮系统。
Baidan546’s Locational Health
一个复杂的模组,将原版生命系统重做为部位生命。灵感来自 Forge 模组加载器上流行的 First Aid 模组。
Baidan546’s XP Tomes
Adds 3 tiers of XP tomes that can be used to store XP. Inspired by similar XP Tome mods on Forge.
评论
登录后评论和评分