Sfoglia il codice sorgente

钻石块改成 2tick

LTCatt 6 anni fa
parent
commit
b867572704

+ 1 - 1
data/lib/functions/effect/floating.mcfunction

@@ -5,5 +5,5 @@ scoreboard players remove @a effect_floating 1
 execute as @a[gamemode=!spectator,scores={effect_floating=..-2}] at @s if block ~ ~-1 ~ diamond_block run effect give @s levitation 1 12
 execute as @a[gamemode=!spectator,scores={effect_floating=..-2}] at @s if block ~ ~-1 ~ diamond_block run effect give @s slow_falling 2 0 true
 execute as @a[gamemode=!spectator,scores={effect_floating=..-2}] at @s if block ~ ~-1 ~ diamond_block run function lib:sounds/teleport
-execute as @a[gamemode=!spectator,scores={effect_floating=..-2}] at @s if block ~ ~-1 ~ diamond_block run scoreboard players set @s effect_floating 2
+execute as @a[gamemode=!spectator,scores={effect_floating=..-2}] at @s if block ~ ~-1 ~ diamond_block run scoreboard players set @s effect_floating 6
 effect clear @a[scores={effect_floating=0}] levitation

+ 3 - 0
data/ltw/functions/clock/tick2.mcfunction

@@ -9,6 +9,9 @@ execute if score $state mem matches 5 run function ltw:state/5/tick2
 execute if score $state mem matches 6 run function ltw:state/6/tick2
 execute if score $state mem matches 7 run function ltw:state/7/tick2
 
+# 特殊方块给予效果
+function lib:effect/floating
+
 # 调用节奏方块模块
 execute if score $tempo_enable mem matches 1 run function lib:tempo_block/tick2
 

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

@@ -6,8 +6,5 @@ execute if score $state mem matches 0 run function ltw:state/0/tick5
 execute if score $state mem matches 5 run function ltw:state/5/tick5
 function ltw:main/tick5
 
-# 特殊方块给予效果
-function lib:effect/floating
-
 # 死亡触发
 execute as @a[scores={death=1..,health=1..}] at @s run function ltw:main/player_death