damage_dealt.mcfunction 382 B

123456789
  1. # 造成伤害时由玩家触发
  2. advancement revoke @s only mini:hotpm/damage_dealt
  3. # 如果是土豆持有者在热土豆游戏中打到人,才执行下一步
  4. execute as @s[tag=pm_hoding] at @s if score $state mem matches 5 if score $mini_type mem matches 3 run function mini:hotpm/damage_dealt2
  5. # 结束伤害判断
  6. tag @a remove pm_damage_dealt
  7. tag @a remove pm_damage_taken