Преглед изворни кода

修改传土豆提示使用的tag

HerobrineXia пре 6 година
родитељ
комит
97e7bf334c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      data/mini/functions/hotpm/game/transfer_potato.mcfunction

+ 2 - 2
data/mini/functions/hotpm/game/transfer_potato.mcfunction

@@ -4,6 +4,6 @@ function lib:sounds/hit
 
 # 转移土豆
 function mini:hotpm/game/pm_lost
-tellraw @s ["",{"text":">> ","color":"green","bold":true},"你把炸弹扔到了 ",{"selector":"@p[tag=pm_damage_taken,tag=!pm_damage_dealt]","color":"green"}," 的头上!"]
-tellraw @p[tag=pm_damage_taken,tag=!pm_damage_dealt] ["",{"text":">> ","color":"red","bold":true},{"selector":"@s","color":"red"}," 把炸弹扔到了你的头上!"]
+tellraw @s ["",{"text":">> ","color":"green","bold":true},"你把炸弹扔到了 ",{"selector":"@p[tag=pm_damage_taken,tag=!pm_holding]","color":"green"}," 的头上!"]
+tellraw @p[tag=pm_damage_taken,tag=!pm_holding] ["",{"text":">> ","color":"red","bold":true},{"selector":"@s","color":"red"}," 把炸弹扔到了你的头上!"]
 execute as @p[tag=pm_damage_taken,tag=!pm_holding] run function mini:hotpm/game/pm_get