LTCatt 6 лет назад
Родитель
Сommit
3672c8fe94
2 измененных файлов с 3 добавлено и 0 удалено
  1. 1 0
      data/ltw/functions/clock/tick20.mcfunction
  2. 2 0
      data/ltw/functions/init.mcfunction

+ 1 - 0
data/ltw/functions/clock/tick20.mcfunction

@@ -11,6 +11,7 @@ execute if score $state mem matches 7 run function ltw:state/7/tick20
 
 # 全局倒计时
 execute if score $countdown mem matches 1.. run scoreboard players remove $countdown mem 1
+scoreboard players remove @e[scores={countdown=1..}] countdown 1
 
 # 掐死原版 BGM
 stopsound @a music music.game

+ 2 - 0
data/ltw/functions/init.mcfunction

@@ -27,6 +27,8 @@ setblock 0 0 0 jukebox
 # 记分板
 scoreboard objectives remove temp
 scoreboard objectives add temp dummy
+scoreboard objectives remove countdown
+scoreboard objectives add countdown dummy "倒计时"
 scoreboard objectives remove health
 scoreboard objectives add health health "生命值"
 scoreboard objectives remove health_disp