Procházet zdrojové kódy

修复生命值显示,添加轮数显示

LTCatt před 6 roky
rodič
revize
99c3e0ffbb

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

@@ -1,7 +1,7 @@
 # 显示倒计时
 title @a times 3 14 2
 title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
-title @a title ["准备小游戏"]
+title @a title ["第 ",{"score": {"objective": "mem","name": "$round"}},"/5 轮"]
 
 # 退出状态
 execute if score $countdown mem matches 7 run function ltw:state/4/state_enter

+ 1 - 1
data/mini/functions/main/tick5.mcfunction

@@ -8,4 +8,4 @@ execute if score $mini_type mem matches 4 run function mini:colormatch/tick5
 # 同步生命值
 scoreboard players reset * health_disp
 scoreboard players set @a[gamemode=!spectator] health_disp 20
-scoreboard players operation @a[gamemode=!spectator] health_disp = @s health
+execute as @a[gamemode=!spectator] run scoreboard players operation @s health_disp = @s health