@@ -5,7 +5,7 @@ tag @s remove mini_running
function mini:main/update_player_count
# 显示提示
-execute if entity @s[tag=!rejoining] if score $player_alive mem matches 1.. run tellraw @a ["",{"text": ">> ","color":"red","bold":true},{"selector": "@s","color":"red"}," 已淘汰! 还剩 ",{"score": {"name": "$player_alive","objective": "mem"}}," 人!"]
+execute if entity @s[tag=!rejoining] if score $player_alive mem matches 1.. run tellraw @a ["",{"text": ">> ","color":"red","bold":true},{"selector": "@s","color":"red"}," 已死亡! 还剩 ",{"score": {"name": "$player_alive","objective": "mem"}}," 人!"]
execute as @a at @s run function lib:sounds/error
# 给存活的玩家加分
@@ -1,5 +1,6 @@
# 玩家死亡时由玩家自己触发
+tag @s remove mini_running
gamemode spectator
tp @s[tag=!debug] 1062.34 27.11 6040.84 461.44 28.30
tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"selector": "@s","color":"red"}," 已死亡!"]
@@ -1,6 +1,3 @@
-gamemode spectator
-effect give @s night_vision 1000000 0 true
-tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"selector": "@s","color":"red"}," 已死亡!"]
-execute as @a at @s run function lib:sounds/error
-execute unless entity @a[gamemode=adventure] run function mini:main/game_end
+function mini:main/player_failed
+effect give @s night_vision 1000000 0 true