Browse Source

修复人数

00ll00 6 năm trước cách đây
mục cha
commit
f292600bd0
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      data/mini/functions/main/player_failed.mcfunction

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

@@ -2,7 +2,7 @@
 
 # 计数
 tag @s remove mini_running
-execute store result score $t_finish mem if entity @a[tag=mini_running]
+execute store result score $t_alive 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"}}," 人!"]
 
 # 给存活的玩减分