7 lines
449 B
MCFunction
7 lines
449 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 22000
|
|
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 833.. run scoreboard players set #bar pv_wave_bar 833
|
|
execute store result bossbar protect_villagers:wave value run scoreboard players get #bar pv_wave_bar
|