player_death.mcfunction 326 B

123456
  1. # 玩家死亡时由玩家自己触发
  2. spreadplayers 1030 6031 3 3 under 18 false @s[team=playing]
  3. tellraw @s ["",{"text": ">> ","color":"red","bold": true},{"text": "死亡惩罚: 失明 10 秒","color":"red"}]
  4. effect give @s blindness 10 0
  5. effect give @s resistance 3 4 true
  6. execute as @a at @s run function lib:sounds/error