player_death.mcfunction 324 B

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