@@ -1,11 +1,11 @@
# 造成伤害加tag
-execute if score $state mem matches 5 if score mini_type mem matches 3 run tag @s add pm_damage_dealt
+execute if score $state mem matches 5 if score $mini_type mem matches 3 run tag @s add pm_damage_dealt
# 播放攻击音效
-execute if score $state mem matches 5 if score mini_type mem matches 3 run playsound minecraft:entity.arrow.hit_player ambient @s ~ ~ ~ 1 1 1
+execute if score $state mem matches 5 if score $mini_type mem matches 3 run playsound minecraft:entity.arrow.hit_player ambient @s ~ ~ ~ 1 1 1
# 移除造成伤害advancement
advancement revoke @s only mini:pm_damage_dealt
-# 检测土豆
-execute if score $state mem matches 5 if score mini_type mem matches 3 run function mini:hotpm/damage_event
+# 检测是否在土豆游戏中
+execute if score $state mem matches 5 if score $mini_type mem matches 3 run function mini:hotpm/damage_event
@@ -1,5 +1,5 @@
# 收到伤害加tag
-execute if score $state mem matches 5 if score mini_type mem matches 3 run tag @s add pm_damage_taken
+execute if score $state mem matches 5 if score $mini_type mem matches 3 run tag @s add pm_damage_taken
advancement revoke @s only mini:pm_damage_taken
@@ -1,3 +1,4 @@
+# 传土豆+提示
tag @s remove hpm_holding
tag @a[tag=pm_damage_taken] add hpm_holding
tellraw @a [{"text":">>","color":"red"},{"selector":"@s"},{"text":"将土豆拍在了","color":"gold"},{"selector":"pm_damage_taken"},{"text":"的脸上!","color":"gold"}]