player_death.mcfunction 449 B

12345678910
  1. # 玩家死亡时由玩家自己触发
  2. tag @s remove mini_running
  3. gamemode spectator
  4. effect give @s night_vision 999999 0 true
  5. tp @s[team=!debug] 1032.34 27.11 7032.84 461.44 28.30
  6. # tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"selector": "@s","color":"red"}," 已死亡!"]
  7. execute as @a at @s run function lib:sounds/error
  8. function mini:main/player_failed
  9. # execute unless entity @a[tag=mini_running] run function mini:main/game_end