00ll00 6 лет назад
Родитель
Сommit
09f9a45f1e
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      data/mini/functions/main/player_failed.mcfunction

+ 1 - 2
data/mini/functions/main/player_failed.mcfunction

@@ -2,8 +2,7 @@
 
 # 计数
 tag @s remove mini_running
-scoreboard players set $t_alive mem 0
-execute as @a[tag=mini_running] run scoreboard players add $t_alive mem 1
+execute store result score $t_finish mem if entity @a[tag=mini_running]
 execute if score $t_alive mem matches 1.. run tellraw @a [{"selector": "@s","color":"red"}," 已失败! 剩余 ",{"score": {"name": "$t_alive","objective": "mem"}}," 人!"]
 
 # 给存活的玩家加分