diff --git a/Wrench/data/wrench/functions/raycast/rayloop.mcfunction b/Wrench/data/wrench/functions/raycast/rayloop.mcfunction index 472fef6..9567907 100644 --- a/Wrench/data/wrench/functions/raycast/rayloop.mcfunction +++ b/Wrench/data/wrench/functions/raycast/rayloop.mcfunction @@ -16,5 +16,5 @@ execute as @s[scores={WrenchSuccess=1..}] run playsound minecraft:entity.item_fr execute if score WrenchDebug WrenchConfig matches 1 run summon area_effect_cloud ~ ~ ~ {Particle:happy_villager,Radius:0.01,Duration:2} # Advance forward and if nothing found -scoreboard players add #distance raycast 1 -execute if score @s WrenchSuccess matches 0 if score #distance raycast matches ..350 positioned ^ ^ ^0.01 run function wrench:raycast/rayloop \ No newline at end of file +scoreboard players add #distance WrenchRaycast 1 +execute if score @s WrenchSuccess matches 0 if score #distance WrenchRaycast matches ..350 positioned ^ ^ ^0.01 run function wrench:raycast/rayloop \ No newline at end of file diff --git a/Wrench/data/wrench/functions/raycast/start.mcfunction b/Wrench/data/wrench/functions/raycast/start.mcfunction index c0d69c9..abf18b0 100644 --- a/Wrench/data/wrench/functions/raycast/start.mcfunction +++ b/Wrench/data/wrench/functions/raycast/start.mcfunction @@ -1,7 +1,7 @@ #Setting up the raycasting data. tag @s add raycast -scoreboard players set #distance raycast 0 +scoreboard players set #distance WrenchRaycast 0 #Activating the raycast. This function will call itself until it is done.