@@ -4,5 +4,8 @@ tag @a[tag=hpm_holding] remove hpm_holding
#刷新土豆
execute as @r[tag=mini_running] run function mini:hotpm/pm_get
+#告知玩家
+tellraw @a [{"text":">> ","color":"red"},{"selector":"@a[tag=hpm_holding]","color":"green"},{"text":"获得了土豆!","color":"gold"}]
+
#初始土豆计分(土豆爆炸时间)
scoreboard players set $hotpm_timer mem 30
@@ -1,4 +1,4 @@
# 传土豆+提示
-tag @s remove hpm_holding
-tag @a[tag=pm_damage_taken] add hpm_holding
+function mini:hotpm/pm_lost
+execute as @a[tag=pm_damage_taken] run function mini:hotpm/pm_get
tellraw @a [{"text":">> ","color":"red"},{"selector":"@s","color":"green"},{"text":"将土豆拍在了","color":"gold"},{"selector":"@a[tag=pm_damage_taken]","color":"green"},{"text":"的脸上!","color":"gold"}]
@@ -1,5 +1,5 @@
#土豆倒计时
scoreboard players remove $hotpm_timer mem 1
-title @a actionbar [{"text":"土豆倒计时:"},{"score": { "name": "$hotpm_timer","objective": "mem"},"color":"gold"}]
+title @a actionbar [{"text":"土豆倒计时:","color":"gold"},{"score": { "name": "$hotpm_timer","objective": "mem"},"color":"red"}]
#爆炸
execute if score $hotpm_timer mem matches ..0 as @a[tag=hpm_holding] run function mini:hotpm/pm_boom