00ll00 vor 6 Jahren
Ursprung
Commit
9a5bb1d06d

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

@@ -5,8 +5,8 @@ tag @s remove mini_running
 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"}}," 人!"]
 
-# 给存活的玩家加分
-scoreboard players add @a[tag=mini_running] mini_score 1
+# 给存活的玩减分
+scoreboard players remove @a[tag=!mini_running] mini_score 1
 
 # 进入旁观
 gamemode spectator @s

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

@@ -5,7 +5,7 @@ tag @s remove mini_running
 execute store result score $t_finish mem if entity @a[tag=mini_running]
 execute if score $t_finish mem matches ..3 run tellraw @a [{"selector": "@s","color":"green"}," 已成功! 第 ",{"score": {"name": "$t_finish","objective": "mem"}}," 名!"]
 
-# 给已完成的玩家加分
+# 给已完成的玩家减分
 scoreboard players remove @a[tag=!mini_running] mini_score 1
 
 # 进入旁观