LTCatt %!s(int64=6) %!d(string=hai) anos
pai
achega
b265e753cd
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      data/lib/functions/effect/special_block.mcfunction

+ 4 - 4
data/lib/functions/effect/special_block.mcfunction

@@ -2,10 +2,10 @@
 
 # 钻石:起飞
 scoreboard players remove @a[scores={effect_floating=0..}] effect_floating 1
-execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ diamond_block run effect give @s levitation 1 12
-execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ diamond_block run effect give @s slow_falling 2 0 true
-execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ diamond_block run scoreboard players set @s effect_floating 2
-execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ diamond_block run function lib:sounds/teleport
+execute as @a[gamemode=!spectator,scores={effect_floating=..0}] at @s if block ~ ~-1 ~ diamond_block run effect give @s levitation 1 12
+execute as @a[gamemode=!spectator,scores={effect_floating=..0}] at @s if block ~ ~-1 ~ diamond_block run effect give @s slow_falling 2 0 true
+execute as @a[gamemode=!spectator,scores={effect_floating=..0}] at @s if block ~ ~-1 ~ diamond_block run scoreboard players set @s effect_floating 2
+execute as @a[gamemode=!spectator,scores={effect_floating=..0}] at @s if block ~ ~-1 ~ diamond_block run function lib:sounds/teleport
 effect clear @a[scores={effect_floating=0}] levitation
 
 # 绿宝石:回血