Files
minecraft_lzstools/data/lzstools_wrench/function/rotate/xyz/waterlogged_click.mcfunction
Mark Rapson 0e84867f0a
All checks were successful
Draft Release / deploy-prod (push) Successful in 4s
Alphabetized tags
Added waterlogged predicate
Added Chain Variants
Added Copper Golems
Added Shelves
Shrunk Ender Chest hitbox

Moved partial box items into their own folder
2025-10-01 16:49:48 +01:00

13 lines
806 B
MCFunction

## X Y Z Click
# Get Raycast Target Coords
function lzstools_wrench:raycast/target_coords
## Rotate X Y Z
$execute as @s[scores={lzt_wrench_success=0}] unless score pz lzt_wrench_raycast matches 1..14 store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=z] replace
$execute as @s[scores={lzt_wrench_success=0}] unless score py lzt_wrench_raycast matches 1..14 store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=y] replace
$execute as @s[scores={lzt_wrench_success=0}] unless score px lzt_wrench_raycast matches 1..14 store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=x] replace
# Failed
execute as @s[scores={lzt_wrench_success=0}] run scoreboard players set @s lzt_wrench_success -1