damage_dealt.mcfunction 491 B

1234567891011
  1. # 造成伤害加tag
  2. execute if score $state mem matches 5 if score mini_type mem matches 3 run tag @s add pm_damage_dealt
  3. # 播放攻击音效
  4. execute if score $state mem matches 5 if score mini_type mem matches 3 run playsound minecraft:entity.arrow.hit_player ambient @s ~ ~ ~ 1 1 1
  5. # 移除造成伤害advancement
  6. advancement revoke @s only mini:pm_damage_dealt
  7. # 检测土豆
  8. execute if score $state mem matches 5 if score mini_type mem matches 3 run function mini:hotpm/damage_event