Fixed blocks not being removed with Trowel

Removed unneeded tags
Added clean trowel data after use
This commit is contained in:
2025-05-16 02:02:01 +01:00
parent 329f879cd8
commit 6b4033e081
6 changed files with 28 additions and 21 deletions

View File

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