Complete rewrite

Prep for addition of optional additional tools
Removed config (for now)
Added loads of blocks
This commit is contained in:
2025-05-13 02:30:39 +01:00
parent 02a8a2ca97
commit 48d5cf9d5e
195 changed files with 2060 additions and 6794 deletions

View File

@@ -1,13 +1,10 @@
#Setting up the raycasting data.
tag @s add raycast
scoreboard players set #distance WrenchRaycast 0
scoreboard players set #distance lz_wrench_raycast 0
tag @s add lz_wrench_raycast
#Activating the raycast. This function will call itself until it is done.
execute as @e[tag=raycast] at @s anchored eyes positioned ^ ^ ^ run function wrench:raycast/rayloop
tag @e[tag=raycast] add WrenchResult
tag @e[tag=raycast] add RaycastResult
execute as @e[tag=lz_wrench_raycast] at @s anchored eyes positioned ^ ^ ^ run function wrench:raycast/rayloop
#Raycasting finished, removing tag from the raycaster.
tag @s remove raycast
tag @s remove lz_wrench_raycast
data remove storage lz:wrench block