Raycast Fix

This commit is contained in:
Mark Rapson 2023-12-16 22:59:48 +00:00
parent fba82a2f51
commit 7e53d272dc
2 changed files with 3 additions and 3 deletions

View File

@ -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} 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 # Advance forward and if nothing found
scoreboard players add #distance raycast 1 scoreboard players add #distance WrenchRaycast 1
execute if score @s WrenchSuccess matches 0 if score #distance raycast matches ..350 positioned ^ ^ ^0.01 run function wrench:raycast/rayloop execute if score @s WrenchSuccess matches 0 if score #distance WrenchRaycast matches ..350 positioned ^ ^ ^0.01 run function wrench:raycast/rayloop

View File

@ -1,7 +1,7 @@
#Setting up the raycasting data. #Setting up the raycasting data.
tag @s add raycast 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. #Activating the raycast. This function will call itself until it is done.