updated tags and scoreboards
added sound to action fixed damage when in offhand
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#Setting up the raycasting data.
|
||||
scoreboard players set #distance lz_wrench_raycast 0
|
||||
tag @s add lz_wrench_raycast
|
||||
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=lz_wrench_raycast] at @s anchored eyes positioned ^ ^ ^ run function lzstools_wrench:raycast/rayloop
|
||||
execute as @e[tag=lzt_wrench_raycast] at @s anchored eyes positioned ^ ^ ^ run function lzstools_wrench:raycast/rayloop
|
||||
|
||||
#Raycasting finished, removing tag from the raycaster.
|
||||
tag @s remove lz_wrench_raycast
|
||||
tag @s remove lzt_wrench_raycast
|
||||
data remove storage lzstools:wrench block
|
Reference in New Issue
Block a user