malloc-datapack/data/malloc/functions/ticks/on_countdown.mcfunction

8 lines
545 B
Mcfunction
Raw Permalink Normal View History

2022-09-10 12:28:27 +00:00
execute unless score m_everybody m_countdown matches ..0 run scoreboard players remove m_everybody m_countdown 1
2022-09-18 09:34:03 +00:00
bossbar set malloc:countdown players @a
2022-09-10 12:28:27 +00:00
execute if score m_everybody m_countdown matches 1.. run bossbar set malloc:countdown visible true
execute store result bossbar malloc:countdown value run scoreboard players get m_everybody m_countdown
scoreboard players operation m_everybody m_countdown_clocked = m_everybody m_countdown
schedule function malloc:ticks/on_countdown 1s
schedule function malloc:ticks/reset_countdown_clock 1t