bossbar set protect_villagers:wave visible true scoreboard players operation #bar pv_wave_bar = #time daytime scoreboard players remove #bar pv_wave_bar 18000 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 3667.. run scoreboard players set #bar pv_wave_bar 3667 execute store result bossbar protect_villagers:wave value run scoreboard players get #bar pv_wave_bar