فهرست منبع

修复土豆计时器显示bug

HerobrineXia 6 سال پیش
والد
کامیت
1eda931b31
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      data/mini/functions/hotpm/tick20.mcfunction

+ 3 - 3
data/mini/functions/hotpm/tick20.mcfunction

@@ -1,5 +1,5 @@
 #土豆倒计时
-scoreboard players remove $hotpm_timer mem 1
-title @a actionbar [{"text":"土豆倒计时:","color":"gold"},{"score": { "name": "$hotpm_timer","objective": "mem"},"color":"red"}]
+execute if score $hotpm_timer mem matches 1.. run scoreboard players remove $hotpm_timer mem 1
+execute if score $hotpm_timer mem matches 1.. run 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
+execute if score $hotpm_timer mem matches 0 as @a[tag=hpm_holding] run function mini:hotpm/pm_boom