Mark Rapson 329f879cd8 updated tags and scoreboards
added sound to action
fixed damage when in offhand
2025-05-15 23:20:41 +01:00

21 lines
3.7 KiB
MCFunction

# Anvils
execute if score px lzt_wrench_raycast matches 3..12 if score pz lzt_wrench_raycast matches 0..15 if score py lzt_wrench_raycast matches 10..15 if block ~ ~ ~ #minecraft:anvil[facing=north] run function lzstools_wrench:rotate/nesw/rotate
execute if score px lzt_wrench_raycast matches 2..13 if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 0..3 if block ~ ~ ~ #minecraft:anvil[facing=north] run function lzstools_wrench:rotate/nesw/rotate
execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 3..12 if score py lzt_wrench_raycast matches 4 if block ~ ~ ~ #minecraft:anvil[facing=north] run function lzstools_wrench:rotate/nesw/rotate
execute if score px lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 5..9 if block ~ ~ ~ #minecraft:anvil[facing=north] run function lzstools_wrench:rotate/nesw/rotate
execute if score px lzt_wrench_raycast matches 3..12 if score pz lzt_wrench_raycast matches 0..15 if score py lzt_wrench_raycast matches 10..15 if block ~ ~ ~ #minecraft:anvil[facing=south] run function lzstools_wrench:rotate/nesw/rotate
execute if score px lzt_wrench_raycast matches 2..13 if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 0..3 if block ~ ~ ~ #minecraft:anvil[facing=south] run function lzstools_wrench:rotate/nesw/rotate
execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 3..12 if score py lzt_wrench_raycast matches 4 if block ~ ~ ~ #minecraft:anvil[facing=south] run function lzstools_wrench:rotate/nesw/rotate
execute if score px lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 5..9 if block ~ ~ ~ #minecraft:anvil[facing=south] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 3..12 if score px lzt_wrench_raycast matches 0..15 if score py lzt_wrench_raycast matches 10..15 if block ~ ~ ~ #minecraft:anvil[facing=east] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 2..13 if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 0..3 if block ~ ~ ~ #minecraft:anvil[facing=east] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 4..11 if score px lzt_wrench_raycast matches 3..12 if score py lzt_wrench_raycast matches 4 if block ~ ~ ~ #minecraft:anvil[facing=east] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 6..9 if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 5..9 if block ~ ~ ~ #minecraft:anvil[facing=east] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 3..12 if score px lzt_wrench_raycast matches 0..15 if score py lzt_wrench_raycast matches 10..15 if block ~ ~ ~ #minecraft:anvil[facing=west] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 2..13 if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 0..3 if block ~ ~ ~ #minecraft:anvil[facing=west] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 4..11 if score px lzt_wrench_raycast matches 3..12 if score py lzt_wrench_raycast matches 4 if block ~ ~ ~ #minecraft:anvil[facing=west] run function lzstools_wrench:rotate/nesw/rotate
execute if score pz lzt_wrench_raycast matches 6..9 if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 5..9 if block ~ ~ ~ #minecraft:anvil[facing=west] run function lzstools_wrench:rotate/nesw/rotate