文件路径:config/battlemusic-client.toml

本教程中使用蓝色标记玩家可配置项,为该配置项注释。


["battlemusic configs"]

#Volume of battle music, set to zero to mute

#Range: 0.0 ~ 5.0

volume = 1.0

#战斗音乐的音量,取值为0.0~5.0,设为0则禁用。

#

#Whether battle music's volume is affected by the music slider

linked_to_music_volume = true

#战斗音乐的音量是否受设置-音乐和声音-音乐选项的调整

#

#How much the battle music changes in pitch when at low health    

#    > Values below zero shift the pitch down, above zero shift the pitch up    

#    > Set to zero to disable   

#Range: -0.5 ~ 1.0

health_pitch_amount = 0.05

#当玩家生命值低时战斗音乐的音高变化,取值为-0.5~1.0,为负值则降低音高,反之提高音高,设为0则音高不会变化

#

#How much the battle music changes in pitch during the second phase of the Ender Dragon fightValues below zero shift the pitch down, above zero shift the pitch upSet to zero to disable

#Range: -0.5 ~ 1.0

dragon_pitch_amount = 0.05

#在末影龙战斗阶段变化(即末地水晶被全部清除)后战斗音乐的音高变化,取值为-0.5~1.0为负值则降低音高,反之提高音高,设为0则音高不会变化。

#

#At what HP should the battle music shift in pitch

#Range: > 1

health_pitch_thresh = 6

#玩家生命值低于多少时开始音高变化,取值为>1。

#

#Is the health threshold a percentage value?    

#    > If it is, the above value must be between 1 and 100    

health_pitch_percent = false

#生命值是否按百分比计算,若是,则上一条的取值为1~100.

#

#How many seconds songs take to fade in and out

#Range: 0.0 ~ 10.0

fade_time = 1.0

#音乐淡出时间,取值为0.0~10.0。

#

#Entites and their respective songs, write in entity;song;priority format       

#    > entity = the entity's ID, eg. "minecraft:pig"       

#    > song = the song's ID, eg. "battlemusic:mini1"       

#    > priority = what precedence this song takes over other entity's music, eg. a priority of 1 will fade out and play over a priority of 0.      

entities_songs = ["minecraft:elder_guardian;battlemusic:mini1;0", "minecraft:warden;battlemusic:necromancer;1", "minecraft:wither;battlemusic:wither_storm;2", "minecraft:ender_dragon;battlemusic:enderman;5", "iter_rpg:hobgoblin;battlemusic:mini1;0", "queen_bee:queen_bee;battlemusic:mini1;0", "irons_spellbooks:dead_king;battlemusic:boss;2", "irons_spellbooks:citadel_keeper;battlemusic:mini1;0", "irons_spellbooks:archevoker;battlemusic:mini1;0", "dawnera:tyrannosaurus;battlemusic:mini1;0", "upgrade_aquatic:great_thrasher;battlemusic:mini1;0", "born_in_chaos_v1:dire_hound_leader;battlemusic:mini1;0", "born_in_chaos_v1:supreme_bonescaller;battlemusic:mini1;0", "alexscaves:luxtructosaurus;battlemusic:menta_menardi;3", "alexscaves:tremorzilla;battlemusic:metaluna;2", "alexscaves:magnetron;battlemusic:mini2;0", "alexscaves:forsaken;battlemusic:mini2;1", "alexscaves:brainiac;battlemusic:mini1;0", "alexsmobs:void_worm;battlemusic:ghast;4", "alexsmobs:warped_mosco;battlemusic:mini1;0", "plenty_of_golems:ancient_of_prismarine;battlemusic:mini2;3", "born_in_chaos_v1:lord_pumpkinhead;battlemusic:mini2;0", "endergetic:brood_eetle;battlemusic:cauldron;2", "aether:slider;battlemusic:mini2;2", "aether:valkyrie;battlemusic:mini1;0", "aether:sun_god;battlemusic:summit;3", "aether:valkyrie_queen;battlemusic:mini2;2", "cataclysm:ender_golem;battlemusic:mini2;0", "cataclysm:ignited_revenant;battlemusic:mini2;0", "cataclysm:ender_guardian;battlemusic:porcus_humungous;4", "cataclysm:netherite_monstrosity;battlemusic:redstone_monstrosity;4", "cataclysm:ignis;battlemusic:wildfire;4", "cataclysm:the_harbinger;battlemusic:ancient;4", "cataclysm:the_leviathan;battlemusic:ancient_guardian;4", "cataclysm:the_prowler;battlemusic:mini1;0", "cataclysm:amethyst_crab;battlemusic:mini2;0", "cataclysm:coralssus;battlemusic:mini1;0", "cataclysm:ancient_remnant;battlemusic:ascension;3", "cataclysm:deepling_brute;battlemusic:mini1;0", "mowziesmobs:ferrous_wroughtnaut;mowziesmobs:music.ferrous_wroughtnaut_theme;1", "mowziesmobs:umvuthi;mowziesmobs:music.umvuthi_theme;2", "mowziesmobs:frostmaw;mowziesmobs:music.frostmaw_theme;2", "bosses_of_mass_destruction:void_blossom;battlemusic:arena2;1", "bosses_of_mass_destruction:lich;battlemusic:boss;2", "bosses_of_mass_destruction:gauntlet;battlemusic:kermetic;3", "bosses_of_mass_destruction:obsidilith;battlemusic:broken_heart_of_ender;3", "twilightforest:naga;battlemusic:arena2;2", "twilightforest:lich;battlemusic:boss;3", "twilightforest:hydra;battlemusic:arena1;3", "twilightforest:minoshroom;battlemusic:mini1;0", "twilightforest:alpha_yeti;battlemusic:mini2;1", "twilightforest:phantom_knight;battlemusic:mini2;1", "twilightforest:ur_ghast;battlemusic:metaluna;3", "twilightforest:snow_queen;battlemusic:ascension;3", "mutant_mobs:mutant_zombie;battlemusic:mini1;0", "mutant_mobs:mutant_skeleton;battlemusic:mini1;0", "mutant_mobs:mutant_creeper;battlemusic:mini2;0", "mutant_mobs:mutant_enderman;battlemusic:shattered;1", "mutant_more:mutant_blaze;battlemusic:mini2;1", "mutant_more:mutant_shulker;battlemusic:mini2;1", "mutant_more:mutant_wither_skeleton;battlemusic:mini1;0", "rottencreatures:dead_beard;battlemusic:mini1;0", "rottencreatures:immortal;battlemusic:mini1;0"]

#实体对应的战斗音乐,格式为:entities_songs = ["实体A;音乐;优先级";"实体B;音乐;优先级";"实体C;音乐;优先级"]。

  • 实体:实体对应的id,例如:minecraft:pig,可指定

  • 音乐:音乐id,例如:battlemusic:mini1

  • 优先级:决定音乐播放的优先级,数值越小优先级越高,当多个实体存在时,优先级低的音乐将淡出并播放优先级更高的音乐。

#

#A generic battle song to play for any other undefined hostile entity      

#    > Leave blank for no default battle music       

default_song = ""

#任意敌对生物都会播放的通用战斗音乐,留空则不播放。