LTCatt 6 лет назад
Родитель
Сommit
ff0cc2fbbd

+ 5 - 3
data/ltw/functions/clock/tick20.mcfunction

@@ -14,11 +14,13 @@ execute if score $state mem matches 7 run function ltw:state/7/tick20
 # 全局倒计时
 execute if score $countdown mem matches 1.. run scoreboard players remove $countdown mem 1
 scoreboard players remove @e[scores={countdown=1..}] countdown 1
-
-# 两秒一次的支持
+# 两秒一次
 scoreboard players add $twice mem 1
 execute if score $twice mem matches 2.. run scoreboard players set $twice mem 0
 
 # 掐死原版 BGM
 stopsound @a music music.game
-stopsound @a music music.creative
+stopsound @a music music.creative
+
+# 特殊方块给予效果
+execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ emerald_block run effect give @s regeneration 2 1 true

+ 4 - 0
data/ltw/functions/clock/tick5.mcfunction

@@ -8,3 +8,7 @@ function ltw:main/tick5
 
 # 死亡触发
 execute as @a[scores={death=1..,health=1..}] at @s run function ltw:main/player_death
+
+# 特殊方块给予效果
+execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ diamond_block run effect give @s levitation 1 5 true
+execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ diamond_block run effect give @s slow_falling 2 0 true

+ 2 - 2
data/mini/functions/hotpm/tick2.mcfunction

@@ -1,7 +1,7 @@
 
 # 随机时间
-scoreboard players set $random_min mem -3
-scoreboard players set $random_max mem 3
+scoreboard players set $random_min mem -5
+scoreboard players set $random_max mem 5
 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

+ 0 - 3
data/mini/functions/main/tick20.mcfunction

@@ -3,8 +3,5 @@
 execute if score $mini_type mem matches 1 run function mini:parkour/tick20
 execute if score $mini_type mem matches 5 run function mini:phantom/tick20
 
-# 特殊方块给予效果
-execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ emerald_block run effect give @s regeneration 2 1 true
-
 # 结束游戏判定
 function mini:main/check_game_end

+ 0 - 4
data/mini/functions/main/tick5.mcfunction

@@ -5,10 +5,6 @@ execute if score $mini_type mem matches 2 run function mini:tntrun/tick5
 execute if score $mini_type mem matches 3 run function mini:hotpm/tick5
 execute if score $mini_type mem matches 5 run function mini:phantom/tick5
 
-# 特殊方块给予效果
-execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ diamond_block run effect give @s levitation 1 5 true
-execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ diamond_block run effect give @s slow_falling 2 0 true
-
 # 同步生命值
 scoreboard players reset * temp
 scoreboard players set @a[gamemode=!spectator] temp 20