game_start.mcfunction 564 B

123456789101112
  1. # 游戏结束倒计时
  2. scoreboard players set $countdown mem 140
  3. # HUD
  4. execute if score $mini_type mem matches 1 run scoreboard objectives setdisplay list total_score_disp
  5. execute if score $mini_type mem matches 1 run scoreboard objectives setdisplay belowName total_score_disp
  6. execute if score $mini_type mem matches 1 run scoreboard objectives setdisplay sidebar treasure
  7. scoreboard players set $bossbar_color mem 4
  8. scoreboard players set $countdown_max mem 140
  9. scoreboard players set $bossbar_type mem 2
  10. bossbar set mini:blue name ""
  11. function lib:bossbar/show