2
0

transfer_potato.mcfunction 553 B

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