Added Hammer

Added Unbreaking tag
Renamed rayloop to loop
This commit is contained in:
2025-05-17 01:47:52 +01:00
parent d97807baf3
commit c6a7150041
34 changed files with 312 additions and 11 deletions

View File

@@ -5,8 +5,8 @@ execute if entity @n[distance=..1] run return fail
function lzstools_trowel:random/start
# No block, don't place and end
execute store result score @s lzt_chosen_block_check run data get storage lzstools:trowel chosen_block
execute if score @s lzt_chosen_block_check matches 0 run return fail
execute store result score @s lzt_trowel_block_check run data get storage lzstools:trowel chosen_block
execute if score @s lzt_trowel_block_check matches 0 run return fail
execute at @s run playsound minecraft:block.stone.place master @a ~ ~ ~ 1 1.2
execute at @s run playsound minecraft:block.azalea_leaves.place master @a ~ ~ ~ 0.3 1

View File

@@ -11,4 +11,4 @@ execute if score @s lzt_trowel_raycast_hit matches 1 run tag @s remove lzstools_
# Advance forward and if nothing found
scoreboard players add #distance lzt_trowel_raycast 1
execute if score @s lzt_trowel_raycast_hit matches 0 if score #distance lzt_trowel_raycast matches ..451 positioned ^ ^ ^0.01 run function lzstools_trowel:raycast/rayloop
execute if score @s lzt_trowel_raycast_hit matches 0 if score #distance lzt_trowel_raycast matches ..451 positioned ^ ^ ^0.01 run function lzstools_trowel:raycast/loop

View File

@@ -2,7 +2,7 @@
scoreboard players set #distance lzt_trowel_raycast 0
#Activating the raycast. This function will call itself until it is done.
execute as @s at @s anchored eyes positioned ^ ^ ^ anchored feet run function lzstools_trowel:raycast/rayloop
execute as @s at @s anchored eyes positioned ^ ^ ^ anchored feet run function lzstools_trowel:raycast/loop
# Clean Data
data remove storage lzstools:trowel inventory