Chisel do nothing on unbreakable blocks
All checks were successful
Draft Release / deploy-prod (push) Successful in 5s
All checks were successful
Draft Release / deploy-prod (push) Successful in 5s
This commit is contained in:
parent
46a6e9ad65
commit
a4ef6ca5f0
@ -7,6 +7,9 @@ execute as @s run kill @n[type=minecraft:item,distance=..0.5,y=-65]
|
|||||||
execute as @s if score @s lzt_chisel_raycast_hit matches 1 run function lzstools_chisel:raycast/hit
|
execute as @s if score @s lzt_chisel_raycast_hit matches 1 run function lzstools_chisel:raycast/hit
|
||||||
execute if score @s lzt_chisel_raycast_hit matches 1 run tag @s remove lzstools_chisel_mainhand
|
execute if score @s lzt_chisel_raycast_hit matches 1 run tag @s remove lzstools_chisel_mainhand
|
||||||
|
|
||||||
|
# Do nothing is unbreakable block
|
||||||
|
execute if block ~ ~ ~ #lzstools:unbreakable run return fail
|
||||||
|
|
||||||
# Advance forward and if nothing found
|
# Advance forward and if nothing found
|
||||||
scoreboard players add #distance lzt_chisel_raycast 1
|
scoreboard players add #distance lzt_chisel_raycast 1
|
||||||
execute if score @s lzt_chisel_raycast_hit matches 0 if score #distance lzt_chisel_raycast matches ..451 positioned ^ ^ ^0.01 run function lzstools_chisel:raycast/loop
|
execute if score @s lzt_chisel_raycast_hit matches 0 if score #distance lzt_chisel_raycast matches ..451 positioned ^ ^ ^0.01 run function lzstools_chisel:raycast/loop
|
Loading…
x
Reference in New Issue
Block a user