tick20.mcfunction 773 B

12345678
  1. # 每秒函数
  2. # 开新的一轮
  3. execute if score $countdown mem matches 0 if score $color_match_type mem matches 0 run function mini:colormatch/game/remove_ground
  4. execute if score $countdown mem matches 0 if score $color_match_type mem matches 1 run function mini:colormatch/game/start_new_round
  5. # 显示当前剩余秒数
  6. execute if score $countdown mem matches 1.. if score $color_match_type mem matches 0 run title @a actionbar [{"text":"距离地板消失: ","color":"red","bold": true},{"score": { "name": "$countdown","objective": "mem"}}]
  7. execute if score $countdown mem matches 1.. if score $color_match_type mem matches 1 run title @a actionbar [{"text":"距离下一轮开始: ","color":"red","bold": true},{"score": { "name": "$countdown","objective": "mem"}}]