damage_dealt2.mcfunction 541 B

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