ソースを参照

优化十秒倒计时显示

LTCatt 6 年 前
親
コミット
ba7fb1fe23

+ 1 - 1
data/ltw/functions/state/3/state_enter.mcfunction

@@ -6,7 +6,7 @@ execute as @a run function ltw:state/3/player_enter
 scoreboard objectives setdisplay sidebar total_score
 
 # 初始化倒计时
-scoreboard players set $countdown mem 3
+scoreboard players set $countdown mem 10
 
 # 小游戏编号
 # 1 跑酷;2 TNT Run;3 热土豆

+ 1 - 1
data/ltw/functions/state/3/tick20.mcfunction

@@ -4,4 +4,4 @@ title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
 title @a title ["准备小游戏"]
 
 # 退出状态
-execute if score $countdown mem matches 0 run function ltw:state/4/state_enter
+execute if score $countdown mem matches 7 run function ltw:state/4/state_enter

+ 1 - 1
data/ltw/functions/state/4/state_enter.mcfunction

@@ -6,4 +6,4 @@ execute as @a run function ltw:state/4/player_enter
 scoreboard objectives setdisplay sidebar total_score
 
 # 初始化倒计时
-scoreboard players set $countdown mem 10
+scoreboard players set $countdown mem 7