damage_dealt2.mcfunction 406 B

123456789
  1. # 土豆持有者打到人时执行
  2. tag @s add pm_damage_dealt
  3. function lib:sounds/hit
  4. # 转移土豆
  5. function mini:hotpm/game/pm_lost
  6. execute as @p[tag=pm_damage_taken,tag=!pm_damage_dealt] run function mini:hotpm/game/pm_get
  7. tellraw @a ["",{"text":">> ","color":"gold","bold":true},{"selector":"@s","color":"gold"}," 将土豆拍在了 ",{"selector":"@a[tag=pm_holding]","color":"gold"}," 的脸上!"]