7 lines
451 B
MCFunction
7 lines
451 B
MCFunction
bossbar set protect_villagers:wave visible true
|
|
scoreboard players operation #bar pv_wave_bar = #time daytime
|
|
scoreboard players remove #bar pv_wave_bar 14000
|
|
execute if score #bar pv_wave_bar matches ..0 run scoreboard players set #bar pv_wave_bar 0
|
|
execute if score #bar pv_wave_bar matches 3500.. run scoreboard players set #bar pv_wave_bar 3500
|
|
execute store result bossbar protect_villagers:wave value run scoreboard players get #bar pv_wave_bar
|