LTCatt 6 лет назад
Родитель
Сommit
10a3a02a38
1 измененных файлов с 9 добавлено и 7 удалено
  1. 9 7
      data/mini/functions/hotpm/tick2.mcfunction

+ 9 - 7
data/mini/functions/hotpm/tick2.mcfunction

@@ -1,14 +1,16 @@
-# 爆炸
-execute if score $countdown_fast mem matches ..0 if entity @a[tag=pm_holding] run function mini:hotpm/player_lose_heart
-
-# 检测土豆
-function mini:hotpm/game/pm_check
 
 # 随机时间
-scoreboard players set $random_min mem -5
-scoreboard players set $random_max mem 5
+scoreboard players set $random_min mem -3
+scoreboard players set $random_max mem 3
 function lib:random
 scoreboard players operation $countdown_fast mem += $random mem
+execute if score $countdown_fast mem matches ..0 run scoreboard players set $countdown_fast mem 0
+
+# 爆炸
+execute if score $countdown_fast mem matches 0 if entity @a[tag=pm_holding] run function mini:hotpm/player_lose_heart
+
+# 检测土豆
+function mini:hotpm/game/pm_check
 
 # HUD
 scoreboard players set $bossbar_color mem 0