From 0e84867f0a874bdcf49ef7e92b2bfbe4e4d0f1c3 Mon Sep 17 00:00:00 2001 From: Mark Rapson Date: Wed, 1 Oct 2025 16:49:48 +0100 Subject: [PATCH] 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 --- data/lzstools/predicate/waterlogged.json | 8 ++ data/lzstools/tags/block/nesw.json | 6 +- data/lzstools/tags/block/partialbox.json | 36 +++---- data/lzstools/tags/block/skulls.json | 6 +- data/lzstools/tags/block/unbreakable.json | 20 ++-- data/lzstools/tags/block/updates.json | 4 +- data/lzstools/tags/block/xyz.json | 12 +-- .../function/raycast/partialbox.mcfunction | 38 ++++---- .../raycast/partialbox/banners.mcfunction | 2 +- .../calibrated_sculk_sensor.mcfunction | 2 +- .../raycast/partialbox/campfires.mcfunction | 2 +- .../raycast/partialbox/chain.mcfunction | 4 - .../raycast/partialbox/chains.mcfunction | 4 + .../raycast/partialbox/comparator.mcfunction | 2 +- .../copper_golem_statues.mcfunction | 2 + .../raycast/partialbox/ender_chest.mcfunction | 2 +- .../raycast/partialbox/grindstone.mcfunction | 96 +++++++++---------- .../raycast/partialbox/hopper.mcfunction | 14 +-- .../partialbox/lightning_rod.mcfunction | 7 -- .../partialbox/lightning_rods.mcfunction | 7 ++ .../raycast/partialbox/rails.mcfunction | 10 +- .../raycast/partialbox/repeater.mcfunction | 2 +- .../raycast/partialbox/signs.mcfunction | 32 +++---- .../raycast/partialbox/skulls.mcfunction | 2 +- .../raycast/partialbox/slabs.mcfunction | 4 +- .../raycast/partialbox/stairs.mcfunction | 24 ++--- .../raycast/partialbox/trapdoors.mcfunction | 12 +-- .../partialbox/wooden_shelves.mcfunction | 18 ++++ .../function/raycast/unique.mcfunction | 2 +- .../function/rotate/nesw/rotate.mcfunction | 13 ++- .../rotate/nesw/waterlogged_click.mcfunction | 12 +++ .../rotate/nesw/waterlogged_cycle.mcfunction | 6 ++ .../rotate/nesw/waterlogged_flip.mcfunction | 6 ++ .../rotate/nesw/waterlogged_player.mcfunction | 9 ++ .../function/rotate/neswud/rotate.mcfunction | 14 ++- .../neswud/waterlogged_click.mcfunction | 14 +++ .../neswud/waterlogged_cycle.mcfunction | 8 ++ .../rotate/neswud/waterlogged_flip.mcfunction | 8 ++ .../neswud/waterlogged_player.mcfunction | 11 +++ .../{ => partialbox}/banners/click.mcfunction | 2 +- .../{ => partialbox}/banners/cycle.mcfunction | 0 .../{ => partialbox}/banners/flip.mcfunction | 0 .../banners/player.mcfunction | 2 +- .../banners/rotate.mcfunction | 8 +- .../partialbox/campfires/cycle.mcfunction | 16 ++++ .../campfires/rotate.mcfunction | 2 +- .../comparator/click.mcfunction | 2 +- .../comparator/cycle.mcfunction | 0 .../comparator/flip.mcfunction | 0 .../comparator/player.mcfunction | 2 +- .../comparator}/rotate.mcfunction | 10 +- .../copper_golem_statues/click.mcfunction | 47 +++++++++ .../copper_golem_statues/cycle.mcfunction | 41 ++++++++ .../copper_golem_statues/flip.mcfunction | 41 ++++++++ .../copper_golem_statues/player.mcfunction | 44 +++++++++ .../copper_golem_statues}/rotate.mcfunction | 10 +- .../crafter/click.mcfunction | 2 +- .../crafter/cycle.mcfunction | 0 .../crafter/flip.mcfunction | 0 .../crafter/player.mcfunction | 2 +- .../crafter}/rotate.mcfunction | 10 +- .../partialbox/ender_chest/click.mcfunction | 17 ++++ .../partialbox/ender_chest/cycle.mcfunction | 11 +++ .../partialbox/ender_chest/flip.mcfunction | 11 +++ .../partialbox/ender_chest/player.mcfunction | 14 +++ .../ender_chest}/rotate.mcfunction | 10 +- .../grindstone/cycle.mcfunction | 0 .../grindstone/flip.mcfunction | 0 .../grindstone/player.mcfunction | 2 +- .../grindstone}/rotate.mcfunction | 8 +- .../hopper/click.mcfunction | 2 +- .../hopper/cycle.mcfunction | 0 .../hopper/flip.mcfunction | 0 .../hopper/player.mcfunction | 2 +- .../partialbox/hopper/rotate.mcfunction | 7 ++ .../{ => partialbox}/rails/cycle.mcfunction | 0 .../{ => partialbox}/rails/player.mcfunction | 0 .../{ => partialbox}/rails/rotate.mcfunction | 4 +- .../repeater/click.mcfunction | 2 +- .../repeater/cycle.mcfunction | 0 .../repeater/flip.mcfunction | 0 .../repeater/player.mcfunction | 2 +- .../partialbox/repeater/rotate.mcfunction | 7 ++ .../rotate/partialbox/signs/click.mcfunction | 18 ++++ .../rotate/partialbox/signs/cycle.mcfunction | 35 +++++++ .../rotate/partialbox/signs/flip.mcfunction | 35 +++++++ .../rotate/partialbox/signs/player.mcfunction | 38 ++++++++ .../{ => partialbox}/signs/rotate.mcfunction | 8 +- .../partialbox/signs_hanging/cycle.mcfunction | 35 +++++++ .../partialbox/signs_hanging/flip.mcfunction | 35 +++++++ .../signs_hanging/player.mcfunction | 38 ++++++++ .../signs_hanging}/rotate.mcfunction | 8 +- .../partialbox/signs_wall/flip.mcfunction | 10 ++ .../signs_wall/rotate.mcfunction | 2 +- .../{ => partialbox}/skulls/click.mcfunction | 2 +- .../{ => partialbox}/skulls/cycle.mcfunction | 0 .../{ => partialbox}/skulls/flip.mcfunction | 0 .../{ => partialbox}/skulls/player.mcfunction | 2 +- .../{ => partialbox}/skulls/rotate.mcfunction | 8 +- .../rotate/partialbox/slabs/flip.mcfunction | 6 ++ .../{ => partialbox}/slabs/rotate.mcfunction | 2 +- .../rotate/partialbox/stairs/click.mcfunction | 24 +++++ .../rotate/partialbox/stairs/cycle.mcfunction | 18 ++++ .../rotate/partialbox/stairs/flip.mcfunction | 18 ++++ .../partialbox/stairs/player.mcfunction | 23 +++++ .../{ => partialbox}/stairs/rotate.mcfunction | 8 +- .../partialbox/trapdoors/click.mcfunction | 40 ++++++++ .../partialbox/trapdoors/cycle.mcfunction | 34 +++++++ .../partialbox/trapdoors/flip.mcfunction | 34 +++++++ .../partialbox/trapdoors/player.mcfunction | 37 +++++++ .../trapdoors}/rotate.mcfunction | 10 +- .../function/rotate/signs/click.mcfunction | 18 ---- .../function/rotate/signs/cycle.mcfunction | 35 ------- .../function/rotate/signs/flip.mcfunction | 35 ------- .../function/rotate/signs/player.mcfunction | 38 -------- .../rotate/signs_hanging/cycle.mcfunction | 35 ------- .../rotate/signs_hanging/flip.mcfunction | 35 ------- .../rotate/signs_hanging/player.mcfunction | 38 -------- .../rotate/signs_wall/flip.mcfunction | 12 --- .../function/rotate/slabs/flip.mcfunction | 6 -- .../function/rotate/stairs/click.mcfunction | 24 ----- .../function/rotate/stairs/cycle.mcfunction | 18 ---- .../function/rotate/stairs/flip.mcfunction | 18 ---- .../function/rotate/stairs/player.mcfunction | 23 ----- .../rotate/trapdoors/click.mcfunction | 40 -------- .../rotate/trapdoors/cycle.mcfunction | 34 ------- .../function/rotate/trapdoors/flip.mcfunction | 34 ------- .../rotate/trapdoors/player.mcfunction | 37 ------- .../calibrated_sculk_sensor/click.mcfunction | 17 ---- .../calibrated_sculk_sensor/cycle.mcfunction | 10 -- .../calibrated_sculk_sensor/flip.mcfunction | 10 -- .../calibrated_sculk_sensor/player.mcfunction | 13 --- .../calibrated_sculk_sensor/rotate.mcfunction | 7 -- .../unique_blocks/campfires/cycle.mcfunction | 10 -- .../function/rotate/xyz/rotate.mcfunction | 10 +- .../rotate/xyz/waterlogged_click.mcfunction | 12 +++ .../rotate/xyz/waterlogged_cycle.mcfunction | 5 + .../rotate/xyz/waterlogged_player.mcfunction | 11 +++ 138 files changed, 1135 insertions(+), 799 deletions(-) create mode 100644 data/lzstools/predicate/waterlogged.json delete mode 100644 data/lzstools_wrench/function/raycast/partialbox/chain.mcfunction create mode 100644 data/lzstools_wrench/function/raycast/partialbox/chains.mcfunction create mode 100644 data/lzstools_wrench/function/raycast/partialbox/copper_golem_statues.mcfunction delete mode 100644 data/lzstools_wrench/function/raycast/partialbox/lightning_rod.mcfunction create mode 100644 data/lzstools_wrench/function/raycast/partialbox/lightning_rods.mcfunction create mode 100644 data/lzstools_wrench/function/raycast/partialbox/wooden_shelves.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/nesw/waterlogged_click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/nesw/waterlogged_cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/nesw/waterlogged_flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/nesw/waterlogged_player.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/neswud/waterlogged_click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/neswud/waterlogged_cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/neswud/waterlogged_flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/neswud/waterlogged_player.mcfunction rename data/lzstools_wrench/function/rotate/{ => partialbox}/banners/click.mcfunction (91%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/banners/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/banners/flip.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/banners/player.mcfunction (96%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/banners/rotate.mcfunction (63%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/campfires/cycle.mcfunction rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/campfires/rotate.mcfunction (50%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/comparator/click.mcfunction (94%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/comparator/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/comparator/flip.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/comparator/player.mcfunction (95%) rename data/lzstools_wrench/function/rotate/{unique_blocks/crafter => partialbox/comparator}/rotate.mcfunction (65%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/player.mcfunction rename data/lzstools_wrench/function/rotate/{unique_blocks/comparator => partialbox/copper_golem_statues}/rotate.mcfunction (59%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/crafter/click.mcfunction (96%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/crafter/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/crafter/flip.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/crafter/player.mcfunction (96%) rename data/lzstools_wrench/function/rotate/{trapdoors => partialbox/crafter}/rotate.mcfunction (62%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/ender_chest/click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/ender_chest/cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/ender_chest/flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/ender_chest/player.mcfunction rename data/lzstools_wrench/function/rotate/{unique_blocks/repeater => partialbox/ender_chest}/rotate.mcfunction (64%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/grindstone/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/grindstone/flip.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/grindstone/player.mcfunction (96%) rename data/lzstools_wrench/function/rotate/{signs_hanging => partialbox/grindstone}/rotate.mcfunction (59%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/hopper/click.mcfunction (94%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/hopper/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/hopper/flip.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/hopper/player.mcfunction (93%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/hopper/rotate.mcfunction rename data/lzstools_wrench/function/rotate/{ => partialbox}/rails/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/rails/player.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/rails/rotate.mcfunction (62%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/repeater/click.mcfunction (97%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/repeater/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/repeater/flip.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{unique_blocks => partialbox}/repeater/player.mcfunction (97%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/repeater/rotate.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs/click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs/cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs/flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs/player.mcfunction rename data/lzstools_wrench/function/rotate/{ => partialbox}/signs/rotate.mcfunction (63%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs_hanging/cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs_hanging/flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs_hanging/player.mcfunction rename data/lzstools_wrench/function/rotate/{unique_blocks/grindstone => partialbox/signs_hanging}/rotate.mcfunction (62%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/signs_wall/flip.mcfunction rename data/lzstools_wrench/function/rotate/{ => partialbox}/signs_wall/rotate.mcfunction (60%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/skulls/click.mcfunction (91%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/skulls/cycle.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/skulls/flip.mcfunction (100%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/skulls/player.mcfunction (96%) rename data/lzstools_wrench/function/rotate/{ => partialbox}/skulls/rotate.mcfunction (64%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/slabs/flip.mcfunction rename data/lzstools_wrench/function/rotate/{ => partialbox}/slabs/rotate.mcfunction (60%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/stairs/click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/stairs/cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/stairs/flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/stairs/player.mcfunction rename data/lzstools_wrench/function/rotate/{ => partialbox}/stairs/rotate.mcfunction (63%) create mode 100644 data/lzstools_wrench/function/rotate/partialbox/trapdoors/click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/trapdoors/cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/trapdoors/flip.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/partialbox/trapdoors/player.mcfunction rename data/lzstools_wrench/function/rotate/{unique_blocks/hopper => partialbox/trapdoors}/rotate.mcfunction (65%) delete mode 100644 data/lzstools_wrench/function/rotate/signs/click.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/signs/cycle.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/signs/flip.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/signs/player.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/signs_hanging/cycle.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/signs_hanging/flip.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/signs_hanging/player.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/signs_wall/flip.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/slabs/flip.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/stairs/click.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/stairs/cycle.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/stairs/flip.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/stairs/player.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/trapdoors/click.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/trapdoors/cycle.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/trapdoors/flip.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/trapdoors/player.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/click.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/cycle.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/flip.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/player.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/rotate.mcfunction delete mode 100644 data/lzstools_wrench/function/rotate/unique_blocks/campfires/cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/xyz/waterlogged_click.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/xyz/waterlogged_cycle.mcfunction create mode 100644 data/lzstools_wrench/function/rotate/xyz/waterlogged_player.mcfunction diff --git a/data/lzstools/predicate/waterlogged.json b/data/lzstools/predicate/waterlogged.json new file mode 100644 index 0000000..592cc98 --- /dev/null +++ b/data/lzstools/predicate/waterlogged.json @@ -0,0 +1,8 @@ +{ + "condition": "minecraft:location_check", + "predicate": { + "fluid": { + "fluids": "#minecraft:water" + } + } +} \ No newline at end of file diff --git a/data/lzstools/tags/block/nesw.json b/data/lzstools/tags/block/nesw.json index 2e25121..c95d31d 100644 --- a/data/lzstools/tags/block/nesw.json +++ b/data/lzstools/tags/block/nesw.json @@ -1,10 +1,10 @@ { "replace": false, "values": [ - "minecraft:furnace", - "minecraft:smoker", "minecraft:blast_furnace", "minecraft:carved_pumpkin", - "minecraft:jack_o_lantern" + "minecraft:furnace", + "minecraft:jack_o_lantern", + "minecraft:smoker" ] } diff --git a/data/lzstools/tags/block/partialbox.json b/data/lzstools/tags/block/partialbox.json index 361ccc2..fef5997 100644 --- a/data/lzstools/tags/block/partialbox.json +++ b/data/lzstools/tags/block/partialbox.json @@ -1,27 +1,29 @@ { "replace": false, "values": [ - "#minecraft:rails", - "#minecraft:trapdoors", - "#minecraft:fence_gates", - "#minecraft:campfires", "#minecraft:all_signs", "#minecraft:anvil", - "minecraft:hopper", - "minecraft:repeater", - "minecraft:comparator", - "minecraft:calibrated_sculk_sensor", + "#minecraft:campfires", + "#minecraft:chains", + "#minecraft:copper_golem_statues", + "#minecraft:fence_gates", + "#minecraft:lightning_rods", + "#minecraft:rails", "#minecraft:slabs", "#minecraft:stairs", - "minecraft:end_rod", - "minecraft:chain", - "minecraft:piston", - "minecraft:sticky_piston", - "minecraft:decorated_pot", - "minecraft:lightning_rod", - "minecraft:stonecutter", - "minecraft:ender_chest", + "#minecraft:trapdoors", + "#minecraft:wooden_shelves", "minecraft:bell", - "minecraft:grindstone" + "minecraft:calibrated_sculk_sensor", + "minecraft:comparator", + "minecraft:decorated_pot", + "minecraft:end_rod", + "minecraft:ender_chest", + "minecraft:grindstone", + "minecraft:hopper", + "minecraft:piston", + "minecraft:repeater", + "minecraft:sticky_piston", + "minecraft:stonecutter" ] } diff --git a/data/lzstools/tags/block/skulls.json b/data/lzstools/tags/block/skulls.json index e5f431b..b2fec7a 100644 --- a/data/lzstools/tags/block/skulls.json +++ b/data/lzstools/tags/block/skulls.json @@ -1,11 +1,11 @@ { "replace": false, "values": [ - "minecraft:player_head", - "minecraft:zombie_head", "minecraft:creeper_head", + "minecraft:dragon_head", + "minecraft:player_head", "minecraft:skeleton_skull", "minecraft:wither_skeleton_skull", - "minecraft:dragon_head" + "minecraft:zombie_head" ] } diff --git a/data/lzstools/tags/block/unbreakable.json b/data/lzstools/tags/block/unbreakable.json index 532e2cc..3737989 100644 --- a/data/lzstools/tags/block/unbreakable.json +++ b/data/lzstools/tags/block/unbreakable.json @@ -2,20 +2,20 @@ "replace": false, "values": [ "minecraft:bedrock", - "minecraft:structure_block", - "minecraft:structure_void", - "minecraft:jigsaw", - "minecraft:command_block", "minecraft:chain_command_block", - "minecraft:repeating_command_block", - "minecraft:test_instance_block", - "minecraft:test_block", - "minecraft:light", + "minecraft:command_block", "minecraft:end_portal", "minecraft:end_portal_frame", + "minecraft:jigsaw", + "minecraft:lava", + "minecraft:light", "minecraft:nether_portal", "minecraft:reinforced_deepslate", - "minecraft:water", - "minecraft:lava" + "minecraft:repeating_command_block", + "minecraft:structure_block", + "minecraft:structure_void", + "minecraft:test_block", + "minecraft:test_instance_block", + "minecraft:water" ] } \ No newline at end of file diff --git a/data/lzstools/tags/block/updates.json b/data/lzstools/tags/block/updates.json index 46885fb..55f7f2c 100644 --- a/data/lzstools/tags/block/updates.json +++ b/data/lzstools/tags/block/updates.json @@ -1,8 +1,8 @@ { "replace": false, "values": [ - "minecraft:repeater", "minecraft:comparator", - "minecraft:hopper" + "minecraft:hopper", + "minecraft:repeater" ] } diff --git a/data/lzstools/tags/block/xyz.json b/data/lzstools/tags/block/xyz.json index 0688b84..81c5462 100644 --- a/data/lzstools/tags/block/xyz.json +++ b/data/lzstools/tags/block/xyz.json @@ -2,13 +2,13 @@ "replace": false, "values": [ "#minecraft:logs", - "minecraft:quartz_pillar", - "minecraft:purpur_pillar", - "minecraft:hay_block", - "minecraft:bone_block", "minecraft:basalt", - "minecraft:polished_basalt", + "minecraft:bone_block", "minecraft:deepslate", - "minecraft:muddy_mangrove_roots" + "minecraft:hay_block", + "minecraft:muddy_mangrove_roots", + "minecraft:polished_basalt", + "minecraft:purpur_pillar", + "minecraft:quartz_pillar" ] } diff --git a/data/lzstools_wrench/function/raycast/partialbox.mcfunction b/data/lzstools_wrench/function/raycast/partialbox.mcfunction index 9613604..d436245 100644 --- a/data/lzstools_wrench/function/raycast/partialbox.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox.mcfunction @@ -6,25 +6,27 @@ function lzstools_wrench:raycast/target_coords # Partial Boxes execute if block ~ ~ ~ #lzstools:banners run function lzstools_wrench:raycast/partialbox/banners execute if block ~ ~ ~ #lzstools:skulls run function lzstools_wrench:raycast/partialbox/skulls -execute if block ~ ~ ~ #minecraft:rails run function lzstools_wrench:raycast/partialbox/rails -execute if block ~ ~ ~ #minecraft:trapdoors run function lzstools_wrench:raycast/partialbox/trapdoors -execute if block ~ ~ ~ #minecraft:slabs run function lzstools_wrench:raycast/partialbox/slabs -execute if block ~ ~ ~ #minecraft:stairs run function lzstools_wrench:raycast/partialbox/stairs -execute if block ~ ~ ~ #minecraft:fence_gates run function lzstools_wrench:raycast/partialbox/fence_gates -execute if block ~ ~ ~ #minecraft:campfires run function lzstools_wrench:raycast/partialbox/campfires execute if block ~ ~ ~ #minecraft:all_signs run function lzstools_wrench:raycast/partialbox/signs execute if block ~ ~ ~ #minecraft:anvil run function lzstools_wrench:raycast/partialbox/anvils -execute if block ~ ~ ~ minecraft:repeater run function lzstools_wrench:raycast/partialbox/repeater -execute if block ~ ~ ~ minecraft:comparator run function lzstools_wrench:raycast/partialbox/comparator -execute if block ~ ~ ~ minecraft:calibrated_sculk_sensor run function lzstools_wrench:raycast/partialbox/calibrated_sculk_sensor -execute if block ~ ~ ~ minecraft:piston run function lzstools_wrench:raycast/partialbox/pistons -execute if block ~ ~ ~ minecraft:sticky_piston run function lzstools_wrench:raycast/partialbox/pistons -execute if block ~ ~ ~ minecraft:hopper run function lzstools_wrench:raycast/partialbox/hopper -execute if block ~ ~ ~ minecraft:end_rod run function lzstools_wrench:raycast/partialbox/end_rod -execute if block ~ ~ ~ minecraft:lightning_rod run function lzstools_wrench:raycast/partialbox/lightning_rod -execute if block ~ ~ ~ minecraft:chain run function lzstools_wrench:raycast/partialbox/chain -execute if block ~ ~ ~ minecraft:decorated_pot run function lzstools_wrench:raycast/partialbox/decorated_pot -execute if block ~ ~ ~ minecraft:stonecutter run function lzstools_wrench:raycast/partialbox/stonecutter -execute if block ~ ~ ~ minecraft:ender_chest run function lzstools_wrench:raycast/partialbox/ender_chest +execute if block ~ ~ ~ #minecraft:campfires run function lzstools_wrench:raycast/partialbox/campfires +execute if block ~ ~ ~ #minecraft:chains run function lzstools_wrench:raycast/partialbox/chains +execute if block ~ ~ ~ #minecraft:copper_golem_statues run function lzstools_wrench:raycast/partialbox/copper_golem_statues +execute if block ~ ~ ~ #minecraft:fence_gates run function lzstools_wrench:raycast/partialbox/fence_gates +execute if block ~ ~ ~ #minecraft:lightning_rods run function lzstools_wrench:raycast/partialbox/lightning_rods +execute if block ~ ~ ~ #minecraft:rails run function lzstools_wrench:raycast/partialbox/rails +execute if block ~ ~ ~ #minecraft:slabs run function lzstools_wrench:raycast/partialbox/slabs +execute if block ~ ~ ~ #minecraft:stairs run function lzstools_wrench:raycast/partialbox/stairs +execute if block ~ ~ ~ #minecraft:trapdoors run function lzstools_wrench:raycast/partialbox/trapdoors +execute if block ~ ~ ~ #minecraft:wooden_shelves run function lzstools_wrench:raycast/partialbox/wooden_shelves execute if block ~ ~ ~ minecraft:bell run function lzstools_wrench:raycast/partialbox/bell +execute if block ~ ~ ~ minecraft:calibrated_sculk_sensor run function lzstools_wrench:raycast/partialbox/calibrated_sculk_sensor +execute if block ~ ~ ~ minecraft:comparator run function lzstools_wrench:raycast/partialbox/comparator +execute if block ~ ~ ~ minecraft:decorated_pot run function lzstools_wrench:raycast/partialbox/decorated_pot +execute if block ~ ~ ~ minecraft:end_rod run function lzstools_wrench:raycast/partialbox/end_rod +execute if block ~ ~ ~ minecraft:ender_chest run function lzstools_wrench:raycast/partialbox/ender_chest execute if block ~ ~ ~ minecraft:grindstone run function lzstools_wrench:raycast/partialbox/grindstone +execute if block ~ ~ ~ minecraft:hopper run function lzstools_wrench:raycast/partialbox/hopper +execute if block ~ ~ ~ minecraft:piston run function lzstools_wrench:raycast/partialbox/pistons +execute if block ~ ~ ~ minecraft:repeater run function lzstools_wrench:raycast/partialbox/repeater +execute if block ~ ~ ~ minecraft:sticky_piston run function lzstools_wrench:raycast/partialbox/pistons +execute if block ~ ~ ~ minecraft:stonecutter run function lzstools_wrench:raycast/partialbox/stonecutter diff --git a/data/lzstools_wrench/function/raycast/partialbox/banners.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/banners.mcfunction index 119dcb5..c306f84 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/banners.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/banners.mcfunction @@ -1,2 +1,2 @@ # Banners -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 run function lzstools_wrench:rotate/banners/rotate \ No newline at end of file +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 run function lzstools_wrench:rotate/partialbox/banners/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/calibrated_sculk_sensor.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/calibrated_sculk_sensor.mcfunction index 81c96ec..8155358 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/calibrated_sculk_sensor.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/calibrated_sculk_sensor.mcfunction @@ -1,2 +1,2 @@ # Calibrated Sculk Sensor -execute if block ~ ~ ~ minecraft:calibrated_sculk_sensor if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/unique_blocks/calibrated_sculk_sensor/rotate \ No newline at end of file +execute if block ~ ~ ~ minecraft:calibrated_sculk_sensor if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/nesw/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/campfires.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/campfires.mcfunction index ab6d0e1..78a1df4 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/campfires.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/campfires.mcfunction @@ -1,2 +1,2 @@ # Campfires -execute if block ~ ~ ~ #minecraft:campfires if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/unique_blocks/campfires/rotate \ No newline at end of file +execute if block ~ ~ ~ #minecraft:campfires if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/partialbox/campfires/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/chain.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/chain.mcfunction deleted file mode 100644 index 9992202..0000000 --- a/data/lzstools_wrench/function/raycast/partialbox/chain.mcfunction +++ /dev/null @@ -1,4 +0,0 @@ -# Chain -execute if block ~ ~ ~ minecraft:chain[axis=x] if score py lzt_wrench_raycast matches 7..8 if score pz lzt_wrench_raycast matches 7..8 run function lzstools_wrench:rotate/xyz/rotate -execute if block ~ ~ ~ minecraft:chain[axis=y] if score px lzt_wrench_raycast matches 7..8 if score pz lzt_wrench_raycast matches 7..8 run function lzstools_wrench:rotate/xyz/rotate -execute if block ~ ~ ~ minecraft:chain[axis=z] if score px lzt_wrench_raycast matches 7..8 if score py lzt_wrench_raycast matches 7..8 run function lzstools_wrench:rotate/xyz/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/chains.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/chains.mcfunction new file mode 100644 index 0000000..3f14492 --- /dev/null +++ b/data/lzstools_wrench/function/raycast/partialbox/chains.mcfunction @@ -0,0 +1,4 @@ +# Chain +execute if block ~ ~ ~ #minecraft:chains[axis=x] if score py lzt_wrench_raycast matches 7..8 if score pz lzt_wrench_raycast matches 7..8 run function lzstools_wrench:rotate/xyz/rotate +execute if block ~ ~ ~ #minecraft:chains[axis=y] if score px lzt_wrench_raycast matches 7..8 if score pz lzt_wrench_raycast matches 7..8 run function lzstools_wrench:rotate/xyz/rotate +execute if block ~ ~ ~ #minecraft:chains[axis=z] if score px lzt_wrench_raycast matches 7..8 if score py lzt_wrench_raycast matches 7..8 run function lzstools_wrench:rotate/xyz/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/comparator.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/comparator.mcfunction index 8bd7948..52d1eac 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/comparator.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/comparator.mcfunction @@ -1,2 +1,2 @@ # Redstone Comprator -execute if block ~ ~ ~ minecraft:comparator if score py lzt_wrench_raycast matches ..1 run function lzstools_wrench:rotate/unique_blocks/comparator/rotate \ No newline at end of file +execute if block ~ ~ ~ minecraft:comparator if score py lzt_wrench_raycast matches ..1 run function lzstools_wrench:rotate/partialbox/comparator/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/copper_golem_statues.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/copper_golem_statues.mcfunction new file mode 100644 index 0000000..981c0b0 --- /dev/null +++ b/data/lzstools_wrench/function/raycast/partialbox/copper_golem_statues.mcfunction @@ -0,0 +1,2 @@ +# Signs +execute if score px lzt_wrench_raycast matches 3..12 if score pz lzt_wrench_raycast matches 3..12 if block ~ ~ ~ #minecraft:copper_golem_statues run function lzstools_wrench:rotate/partialbox/copper_golem_statues/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/ender_chest.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/ender_chest.mcfunction index aff1227..37e3ded 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/ender_chest.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/ender_chest.mcfunction @@ -1,2 +1,2 @@ # Ender Chest -execute if score px lzt_wrench_raycast matches 1..14 if score pz lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches ..14 run function lzstools_wrench:rotate/nesw/rotate +execute if score px lzt_wrench_raycast matches 1..14 if score pz lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches ..14 run function lzstools_wrench:rotate/partialbox/ender_chest/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/grindstone.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/grindstone.mcfunction index b152d43..db24d96 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/grindstone.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/grindstone.mcfunction @@ -1,64 +1,64 @@ # Grindstone # Floor -execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4..15 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 7..12 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate # Wall -execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score pz lzt_wrench_raycast matches 0..11 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score px lzt_wrench_raycast matches 4..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score pz lzt_wrench_raycast matches 4..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score px lzt_wrench_raycast matches 0..11 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score pz lzt_wrench_raycast matches 0..11 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score px lzt_wrench_raycast matches 4..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score pz lzt_wrench_raycast matches 4..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 2..13 if score px lzt_wrench_raycast matches 0..11 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score pz lzt_wrench_raycast matches 3..8 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score px lzt_wrench_raycast matches 7..12 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score pz lzt_wrench_raycast matches 7..12 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score px lzt_wrench_raycast matches 3..8 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score pz lzt_wrench_raycast matches 3..8 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score px lzt_wrench_raycast matches 7..12 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score pz lzt_wrench_raycast matches 7..12 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 5..10 if score px lzt_wrench_raycast matches 3..8 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 9..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 9..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 6..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 9..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 9..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 9..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score pz lzt_wrench_raycast matches 0..6 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 0..6 if score px lzt_wrench_raycast matches 9..15 if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate # Ceiling -execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score pz lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 0..11 if score px lzt_wrench_raycast matches 2..13 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score pz lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..13 if score py lzt_wrench_raycast matches 3..8 if score px lzt_wrench_raycast matches 5..10 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 2..3 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate -execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate -execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/unique_blocks/grindstone/rotate +execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score px lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score pz lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function lzstools_wrench:rotate/partialbox/grindstone/rotate +execute if score pz lzt_wrench_raycast matches 12..13 if score py lzt_wrench_raycast matches 9..15 if score px lzt_wrench_raycast matches 6..9 if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function lzstools_wrench:rotate/partialbox/grindstone/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/hopper.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/hopper.mcfunction index 6a896c1..fe2c29c 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/hopper.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/hopper.mcfunction @@ -1,8 +1,8 @@ # Hopper -execute if block ~ ~ ~ minecraft:hopper[facing=down] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches ..3 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/unique_blocks/hopper/rotate -execute if block ~ ~ ~ minecraft:hopper[facing=south] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches 12.. run function lzstools_wrench:rotate/unique_blocks/hopper/rotate -execute if block ~ ~ ~ minecraft:hopper[facing=north] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches ..3 run function lzstools_wrench:rotate/unique_blocks/hopper/rotate -execute if block ~ ~ ~ minecraft:hopper[facing=east] if score px lzt_wrench_raycast matches 12.. if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/unique_blocks/hopper/rotate -execute if block ~ ~ ~ minecraft:hopper[facing=west] if score px lzt_wrench_raycast matches ..3 if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/unique_blocks/hopper/rotate -execute if block ~ ~ ~ minecraft:hopper if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4.. if score pz lzt_wrench_raycast matches 4..11 run function lzstools_wrench:rotate/unique_blocks/hopper/rotate -execute if block ~ ~ ~ minecraft:hopper if score py lzt_wrench_raycast matches 10.. run function lzstools_wrench:rotate/unique_blocks/hopper/rotate +execute if block ~ ~ ~ minecraft:hopper[facing=down] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches ..3 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/partialbox/hopper/rotate +execute if block ~ ~ ~ minecraft:hopper[facing=south] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches 12.. run function lzstools_wrench:rotate/partialbox/hopper/rotate +execute if block ~ ~ ~ minecraft:hopper[facing=north] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches ..3 run function lzstools_wrench:rotate/partialbox/hopper/rotate +execute if block ~ ~ ~ minecraft:hopper[facing=east] if score px lzt_wrench_raycast matches 12.. if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/partialbox/hopper/rotate +execute if block ~ ~ ~ minecraft:hopper[facing=west] if score px lzt_wrench_raycast matches ..3 if score py lzt_wrench_raycast matches 4..7 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/partialbox/hopper/rotate +execute if block ~ ~ ~ minecraft:hopper if score px lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches 4.. if score pz lzt_wrench_raycast matches 4..11 run function lzstools_wrench:rotate/partialbox/hopper/rotate +execute if block ~ ~ ~ minecraft:hopper if score py lzt_wrench_raycast matches 10.. run function lzstools_wrench:rotate/partialbox/hopper/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/lightning_rod.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/lightning_rod.mcfunction deleted file mode 100644 index 9a06ac7..0000000 --- a/data/lzstools_wrench/function/raycast/partialbox/lightning_rod.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# Lightning Rod -execute if block ~ ~ ~ minecraft:lightning_rod[facing=up] if score px lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate -execute if block ~ ~ ~ minecraft:lightning_rod[facing=down] if score px lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate -execute if block ~ ~ ~ minecraft:lightning_rod[facing=south] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate -execute if block ~ ~ ~ minecraft:lightning_rod[facing=north] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate -execute if block ~ ~ ~ minecraft:lightning_rod[facing=east] if score py lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate -execute if block ~ ~ ~ minecraft:lightning_rod[facing=west] if score py lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/lightning_rods.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/lightning_rods.mcfunction new file mode 100644 index 0000000..9d0c588 --- /dev/null +++ b/data/lzstools_wrench/function/raycast/partialbox/lightning_rods.mcfunction @@ -0,0 +1,7 @@ +# Lightning Rod +execute if block ~ ~ ~ #minecraft:lightning_rods[facing=up] if score px lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate +execute if block ~ ~ ~ #minecraft:lightning_rods[facing=down] if score px lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate +execute if block ~ ~ ~ #minecraft:lightning_rods[facing=south] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate +execute if block ~ ~ ~ #minecraft:lightning_rods[facing=north] if score px lzt_wrench_raycast matches 6..9 if score py lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate +execute if block ~ ~ ~ #minecraft:lightning_rods[facing=east] if score py lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate +execute if block ~ ~ ~ #minecraft:lightning_rods[facing=west] if score py lzt_wrench_raycast matches 6..9 if score pz lzt_wrench_raycast matches 6..9 run function lzstools_wrench:rotate/neswud/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/rails.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/rails.mcfunction index 91f6dbf..29973ab 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/rails.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/rails.mcfunction @@ -1,6 +1,6 @@ # Rails -execute if block ~ ~ ~ #minecraft:rails if score py lzt_wrench_raycast matches ..1 run function lzstools_wrench:rotate/rails/rotate -execute if block ~ ~ ~ #minecraft:rails[shape=ascending_west] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/rails/rotate -execute if block ~ ~ ~ #minecraft:rails[shape=ascending_east] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/rails/rotate -execute if block ~ ~ ~ #minecraft:rails[shape=ascending_north] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/rails/rotate -execute if block ~ ~ ~ #minecraft:rails[shape=ascending_south] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/rails/rotate \ No newline at end of file +execute if block ~ ~ ~ #minecraft:rails if score py lzt_wrench_raycast matches ..1 run function lzstools_wrench:rotate/partialbox/rails/rotate +execute if block ~ ~ ~ #minecraft:rails[shape=ascending_west] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/partialbox/rails/rotate +execute if block ~ ~ ~ #minecraft:rails[shape=ascending_east] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/partialbox/rails/rotate +execute if block ~ ~ ~ #minecraft:rails[shape=ascending_north] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/partialbox/rails/rotate +execute if block ~ ~ ~ #minecraft:rails[shape=ascending_south] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/partialbox/rails/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/repeater.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/repeater.mcfunction index 0eaca31..e27caff 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/repeater.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/repeater.mcfunction @@ -1,2 +1,2 @@ # Redstone Repeater -execute if block ~ ~ ~ minecraft:repeater if score py lzt_wrench_raycast matches ..1 run function lzstools_wrench:rotate/unique_blocks/repeater/rotate \ No newline at end of file +execute if block ~ ~ ~ minecraft:repeater if score py lzt_wrench_raycast matches ..1 run function lzstools_wrench:rotate/partialbox/repeater/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/signs.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/signs.mcfunction index 72c2b04..1bd7a78 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/signs.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/signs.mcfunction @@ -1,23 +1,23 @@ # Signs execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:standing_signs run function lzstools_wrench:rotate/signs/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=1] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=2] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=3] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=5] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=6] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=7] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=9] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=10] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=11] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=13] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=14] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=15] run function lzstools_wrench:rotate/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=1] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=2] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=3] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=5] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=6] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=7] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=9] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=10] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=11] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=13] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=14] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=15] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score pz lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=0] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score px lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score pz lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=8] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score pz lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score px lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=4] run function lzstools_wrench:rotate/signs_hanging/rotate -execute if score pz lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score px lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=12] run function lzstools_wrench:rotate/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score pz lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=0] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score px lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score pz lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=8] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score pz lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score px lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=4] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate +execute if score pz lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score px lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:ceiling_hanging_signs[rotation=12] run function lzstools_wrench:rotate/partialbox/signs_hanging/rotate # Wall hanging signs can't be defined with the current method of getting the block ID so these fail as it's updated to the standard hanging sign # execute if score px lzt_wrench_raycast matches 1..14 if score py lzt_wrench_raycast matches 0..9 if score pz lzt_wrench_raycast matches 7..8 if block ~ ~ ~ #minecraft:wall_hanging_signs[facing=north] run function lzstools_wrench:rotate/signs_wall/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/skulls.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/skulls.mcfunction index b12b162..460397e 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/skulls.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/skulls.mcfunction @@ -1,2 +1,2 @@ # Skulls -execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/skulls/rotate \ No newline at end of file +execute if score px lzt_wrench_raycast matches 4..11 if score pz lzt_wrench_raycast matches 4..11 if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/partialbox/skulls/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/slabs.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/slabs.mcfunction index 0bd84b8..f1afbea 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/slabs.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/slabs.mcfunction @@ -1,3 +1,3 @@ # Slabs -execute if block ~ ~ ~ #minecraft:slabs[type=top] if score py lzt_wrench_raycast matches 8.. run function lzstools_wrench:rotate/slabs/rotate -execute if block ~ ~ ~ #minecraft:slabs[type=bottom] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/slabs/rotate +execute if block ~ ~ ~ #minecraft:slabs[type=top] if score py lzt_wrench_raycast matches 8.. run function lzstools_wrench:rotate/partialbox/slabs/rotate +execute if block ~ ~ ~ #minecraft:slabs[type=bottom] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/partialbox/slabs/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/stairs.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/stairs.mcfunction index 0352815..9fc56d7 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/stairs.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/stairs.mcfunction @@ -3,18 +3,18 @@ execute if block ~ ~ ~ #minecraft:stairs[half=bottom] if score py lzt_wrench_raycast matches ..7 run function lzstools_wrench:rotate/stairs/rotate execute if block ~ ~ ~ #minecraft:stairs[half=top] if score py lzt_wrench_raycast matches 8.. run function lzstools_wrench:rotate/stairs/rotate # -x-z -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches ..7 unless block ~ ~ ~ #minecraft:stairs[facing=west,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=north,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=east] unless block ~ ~ ~ #minecraft:stairs[facing=south] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=east,shape=inner_left] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=south,shape=inner_right] run function lzstools_wrench:rotate/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches ..7 unless block ~ ~ ~ #minecraft:stairs[facing=west,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=north,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=east] unless block ~ ~ ~ #minecraft:stairs[facing=south] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=east,shape=inner_left] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=south,shape=inner_right] run function lzstools_wrench:rotate/partialbox/stairs/rotate # -x+z -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches 8.. unless block ~ ~ ~ #minecraft:stairs[facing=south,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=west,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=north] unless block ~ ~ ~ #minecraft:stairs[facing=east] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=north,shape=inner_left] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=east,shape=inner_right] run function lzstools_wrench:rotate/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches 8.. unless block ~ ~ ~ #minecraft:stairs[facing=south,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=west,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=north] unless block ~ ~ ~ #minecraft:stairs[facing=east] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=north,shape=inner_left] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches ..7 if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=east,shape=inner_right] run function lzstools_wrench:rotate/partialbox/stairs/rotate # +x+z -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches 8.. unless block ~ ~ ~ #minecraft:stairs[facing=east,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=south,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=west] unless block ~ ~ ~ #minecraft:stairs[facing=north] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=west,shape=inner_left] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=north,shape=inner_right] run function lzstools_wrench:rotate/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches 8.. unless block ~ ~ ~ #minecraft:stairs[facing=east,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=south,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=west] unless block ~ ~ ~ #minecraft:stairs[facing=north] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=west,shape=inner_left] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches 8.. if block ~ ~ ~ #minecraft:stairs[facing=north,shape=inner_right] run function lzstools_wrench:rotate/partialbox/stairs/rotate # +x-z -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches ..7 unless block ~ ~ ~ #minecraft:stairs[facing=north,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=east,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=south] unless block ~ ~ ~ #minecraft:stairs[facing=west] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=south,shape=inner_left] run function lzstools_wrench:rotate/stairs/rotate -execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=west,shape=inner_right] run function lzstools_wrench:rotate/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches ..7 unless block ~ ~ ~ #minecraft:stairs[facing=north,shape=outer_left] unless block ~ ~ ~ #minecraft:stairs[facing=east,shape=outer_right] unless block ~ ~ ~ #minecraft:stairs[facing=south] unless block ~ ~ ~ #minecraft:stairs[facing=west] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=south,shape=inner_left] run function lzstools_wrench:rotate/partialbox/stairs/rotate +execute if block ~ ~ ~ #minecraft:stairs if score px lzt_wrench_raycast matches 8.. if score pz lzt_wrench_raycast matches ..7 if block ~ ~ ~ #minecraft:stairs[facing=west,shape=inner_right] run function lzstools_wrench:rotate/partialbox/stairs/rotate diff --git a/data/lzstools_wrench/function/raycast/partialbox/trapdoors.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/trapdoors.mcfunction index 957cac1..508c067 100644 --- a/data/lzstools_wrench/function/raycast/partialbox/trapdoors.mcfunction +++ b/data/lzstools_wrench/function/raycast/partialbox/trapdoors.mcfunction @@ -1,13 +1,13 @@ # Trapdoors -execute if block ~ ~ ~ #minecraft:trapdoors[open=false,half=top] if score py lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/trapdoors/rotate -execute if block ~ ~ ~ #minecraft:trapdoors[open=false,half=bottom] if score py lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/trapdoors/rotate +execute if block ~ ~ ~ #minecraft:trapdoors[open=false,half=top] if score py lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/partialbox/trapdoors/rotate +execute if block ~ ~ ~ #minecraft:trapdoors[open=false,half=bottom] if score py lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/partialbox/trapdoors/rotate # North -execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=north] if score pz lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/trapdoors/rotate +execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=north] if score pz lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/partialbox/trapdoors/rotate # East -execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=east] if score px lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/trapdoors/rotate +execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=east] if score px lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/partialbox/trapdoors/rotate # South -execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=south] if score pz lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/trapdoors/rotate +execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=south] if score pz lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/partialbox/trapdoors/rotate # West -execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=west] if score px lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/trapdoors/rotate \ No newline at end of file +execute if block ~ ~ ~ #minecraft:trapdoors[open=true,facing=west] if score px lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/partialbox/trapdoors/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/partialbox/wooden_shelves.mcfunction b/data/lzstools_wrench/function/raycast/partialbox/wooden_shelves.mcfunction new file mode 100644 index 0000000..fb3ce6f --- /dev/null +++ b/data/lzstools_wrench/function/raycast/partialbox/wooden_shelves.mcfunction @@ -0,0 +1,18 @@ +# Wooden Shelves + +# North +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=north] if score pz lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=north] if score py lzt_wrench_raycast matches ..3 if score pz lzt_wrench_raycast matches 11.. run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=north] if score py lzt_wrench_raycast matches 12.. if score pz lzt_wrench_raycast matches 11.. run function lzstools_wrench:rotate/nesw/rotate +# East +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=east] if score px lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=east] if score py lzt_wrench_raycast matches ..3 if score px lzt_wrench_raycast matches ..4 run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=east] if score py lzt_wrench_raycast matches 12.. if score px lzt_wrench_raycast matches ..4 run function lzstools_wrench:rotate/nesw/rotate +# South +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=south] if score pz lzt_wrench_raycast matches ..2 run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=south] if score py lzt_wrench_raycast matches ..3 if score pz lzt_wrench_raycast matches ..4 run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=south] if score py lzt_wrench_raycast matches 12.. if score pz lzt_wrench_raycast matches ..4 run function lzstools_wrench:rotate/nesw/rotate +# West +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=west] if score px lzt_wrench_raycast matches 13.. run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=west] if score py lzt_wrench_raycast matches ..3 if score px lzt_wrench_raycast matches 11.. run function lzstools_wrench:rotate/nesw/rotate +execute if block ~ ~ ~ #minecraft:wooden_shelves[facing=west] if score py lzt_wrench_raycast matches 12.. if score px lzt_wrench_raycast matches 11.. run function lzstools_wrench:rotate/nesw/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/raycast/unique.mcfunction b/data/lzstools_wrench/function/raycast/unique.mcfunction index d388019..86b2bc6 100644 --- a/data/lzstools_wrench/function/raycast/unique.mcfunction +++ b/data/lzstools_wrench/function/raycast/unique.mcfunction @@ -1,3 +1,3 @@ ## Unique Items -execute if block ~ ~ ~ minecraft:crafter run function lzstools_wrench:rotate/unique_blocks/crafter/rotate \ No newline at end of file +execute if block ~ ~ ~ minecraft:crafter run function lzstools_wrench:rotate/partialbox/crafter/rotate \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/nesw/rotate.mcfunction b/data/lzstools_wrench/function/rotate/nesw/rotate.mcfunction index 49518ee..2e0dbe6 100644 --- a/data/lzstools_wrench/function/rotate/nesw/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/nesw/rotate.mcfunction @@ -1,7 +1,12 @@ ## NESW # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/nesw/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/nesw/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/nesw/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/nesw/cycle with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/waterlogged_flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/waterlogged_player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/waterlogged_click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/waterlogged_cycle with storage lzstools:wrench + +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/nesw/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/nesw/waterlogged_click.mcfunction b/data/lzstools_wrench/function/rotate/nesw/waterlogged_click.mcfunction new file mode 100644 index 0000000..7be3277 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/nesw/waterlogged_click.mcfunction @@ -0,0 +1,12 @@ +## Click NESW + +# Get Raycast Target Coords +function lzstools_wrench:raycast/target_coords + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/nesw/waterlogged_flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/nesw/waterlogged_cycle.mcfunction b/data/lzstools_wrench/function/rotate/nesw/waterlogged_cycle.mcfunction new file mode 100644 index 0000000..abb2d14 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/nesw/waterlogged_cycle.mcfunction @@ -0,0 +1,6 @@ +## Cycle NESW + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/nesw/waterlogged_flip.mcfunction b/data/lzstools_wrench/function/rotate/nesw/waterlogged_flip.mcfunction new file mode 100644 index 0000000..968283e --- /dev/null +++ b/data/lzstools_wrench/function/rotate/nesw/waterlogged_flip.mcfunction @@ -0,0 +1,6 @@ +## Flip NESW + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/nesw/waterlogged_player.mcfunction b/data/lzstools_wrench/function/rotate/nesw/waterlogged_player.mcfunction new file mode 100644 index 0000000..fddc38f --- /dev/null +++ b/data/lzstools_wrench/function/rotate/nesw/waterlogged_player.mcfunction @@ -0,0 +1,9 @@ +## Face Player NESW + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/nesw/waterlogged_flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/neswud/rotate.mcfunction b/data/lzstools_wrench/function/rotate/neswud/rotate.mcfunction index 79a2e4e..85d7209 100644 --- a/data/lzstools_wrench/function/rotate/neswud/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/neswud/rotate.mcfunction @@ -1,7 +1,13 @@ ## NESW UD # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/neswud/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/neswud/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/neswud/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/neswud/cycle with storage lzstools:wrench \ No newline at end of file + +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/waterlogged_flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/waterlogged_player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/waterlogged_click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/waterlogged_cycle with storage lzstools:wrench + +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/neswud/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/neswud/waterlogged_click.mcfunction b/data/lzstools_wrench/function/rotate/neswud/waterlogged_click.mcfunction new file mode 100644 index 0000000..9f385c4 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/neswud/waterlogged_click.mcfunction @@ -0,0 +1,14 @@ +## Face Click NESWUD + +# Get Raycast Target Coords +function lzstools_wrench:raycast/target_coords + +$execute as @s[scores={lzt_wrench_success=0}] if score py lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=up] replace +$execute as @s[scores={lzt_wrench_success=0}] if score py lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=down] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/neswud/waterlogged_flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/neswud/waterlogged_cycle.mcfunction b/data/lzstools_wrench/function/rotate/neswud/waterlogged_cycle.mcfunction new file mode 100644 index 0000000..99dba7b --- /dev/null +++ b/data/lzstools_wrench/function/rotate/neswud/waterlogged_cycle.mcfunction @@ -0,0 +1,8 @@ +## Cycle NESWUD + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=up] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=down] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=down] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=up] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/neswud/waterlogged_flip.mcfunction b/data/lzstools_wrench/function/rotate/neswud/waterlogged_flip.mcfunction new file mode 100644 index 0000000..f0ca581 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/neswud/waterlogged_flip.mcfunction @@ -0,0 +1,8 @@ +## Flip NESWUD + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=up] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=down] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=down] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=up] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/neswud/waterlogged_player.mcfunction b/data/lzstools_wrench/function/rotate/neswud/waterlogged_player.mcfunction new file mode 100644 index 0000000..0555add --- /dev/null +++ b/data/lzstools_wrench/function/rotate/neswud/waterlogged_player.mcfunction @@ -0,0 +1,11 @@ +## Face Player NESWUD + +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=45..90] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=up] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-90..-45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=down] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=45..135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/neswud/waterlogged_flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/banners/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/banners/click.mcfunction similarity index 91% rename from data/lzstools_wrench/function/rotate/banners/click.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/banners/click.mcfunction index 84f24e7..91148d6 100644 --- a/data/lzstools_wrench/function/rotate/banners/click.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/banners/click.mcfunction @@ -10,4 +10,4 @@ $execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast mat $execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[rotation=4] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/banners/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/banners/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/banners/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/banners/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/banners/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/banners/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/banners/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/banners/flip.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/banners/flip.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/banners/flip.mcfunction diff --git a/data/lzstools_wrench/function/rotate/banners/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/banners/player.mcfunction similarity index 96% rename from data/lzstools_wrench/function/rotate/banners/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/banners/player.mcfunction index fca5c3f..a8e9348 100644 --- a/data/lzstools_wrench/function/rotate/banners/player.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/banners/player.mcfunction @@ -18,4 +18,4 @@ $execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store r $execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[rotation=7] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/banners/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/banners/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/banners/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/banners/rotate.mcfunction similarity index 63% rename from data/lzstools_wrench/function/rotate/banners/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/banners/rotate.mcfunction index 6951b4d..0e65b68 100644 --- a/data/lzstools_wrench/function/rotate/banners/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/banners/rotate.mcfunction @@ -1,7 +1,7 @@ ## Banners # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/banners/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/banners/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/banners/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/banners/cycle with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/banners/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/banners/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/banners/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/banners/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/campfires/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/campfires/cycle.mcfunction new file mode 100644 index 0000000..ca9f075 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/campfires/cycle.mcfunction @@ -0,0 +1,16 @@ +## Campfires Cycle + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,lit=false,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,lit=false,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,lit=false,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,lit=false,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=true,facing=west] run setblock ~ ~ ~ $(block)[lit=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=true,facing=north] run setblock ~ ~ ~ $(block)[lit=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=true,facing=east] run setblock ~ ~ ~ $(block)[lit=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=true,facing=south] run setblock ~ ~ ~ $(block)[lit=true,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=false,facing=west] run setblock ~ ~ ~ $(block)[lit=false,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=false,facing=north] run setblock ~ ~ ~ $(block)[lit=false,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=false,facing=east] run setblock ~ ~ ~ $(block)[lit=false,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[lit=false,facing=south] run setblock ~ ~ ~ $(block)[lit=false,facing=west] replace diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/campfires/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/campfires/rotate.mcfunction similarity index 50% rename from data/lzstools_wrench/function/rotate/unique_blocks/campfires/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/campfires/rotate.mcfunction index ec6cc5c..9d9b557 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/campfires/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/campfires/rotate.mcfunction @@ -1,3 +1,3 @@ ## Campfires -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/unique_blocks/campfires/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/campfires/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/comparator/click.mcfunction similarity index 94% rename from data/lzstools_wrench/function/rotate/unique_blocks/comparator/click.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/comparator/click.mcfunction index 7c9abc3..c91cc39 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/click.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/comparator/click.mcfunction @@ -15,4 +15,4 @@ $execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast mat $execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[mode=subtract] run setblock ~ ~ ~ $(block)[mode=subtract,facing=west] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/comparator/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/comparator/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/comparator/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/comparator/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/comparator/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/comparator/flip.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/comparator/flip.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/comparator/flip.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/comparator/player.mcfunction similarity index 95% rename from data/lzstools_wrench/function/rotate/unique_blocks/comparator/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/comparator/player.mcfunction index a67bf53..0146185 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/player.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/comparator/player.mcfunction @@ -12,4 +12,4 @@ $execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result $execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success unless block ~ ~ ~ $(block)[facing=west] run execute if block ~ ~ ~ $(block)[mode=subtract] run setblock ~ ~ ~ $(block)[mode=subtract,facing=west] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/comparator/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/comparator/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/comparator/rotate.mcfunction similarity index 65% rename from data/lzstools_wrench/function/rotate/unique_blocks/crafter/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/comparator/rotate.mcfunction index f8ae9f9..3b8dddc 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/comparator/rotate.mcfunction @@ -1,7 +1,7 @@ -## Crafter +## Comparator # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/unique_blocks/crafter/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/unique_blocks/crafter/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/unique_blocks/crafter/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/unique_blocks/crafter/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/comparator/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/comparator/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/comparator/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/comparator/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/click.mcfunction new file mode 100644 index 0000000..9d0a6d7 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/click.mcfunction @@ -0,0 +1,47 @@ +## Click Copper Golems + +# Get Raycast Target Coords +function lzstools_wrench:raycast/target_coords + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 12 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 3 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/copper_golem_statues/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/cycle.mcfunction new file mode 100644 index 0000000..517cecb --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/cycle.mcfunction @@ -0,0 +1,41 @@ +## Cycle NESW + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/flip.mcfunction new file mode 100644 index 0000000..41dfc91 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/flip.mcfunction @@ -0,0 +1,41 @@ +## Flip Copper Golems + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/player.mcfunction new file mode 100644 index 0000000..c81d871 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/player.mcfunction @@ -0,0 +1,44 @@ +## Face Player Copper Golems + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west,waterlogged=true] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=standing] run setblock ~ ~ ~ $(block)[copper_golem_pose=standing,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=sitting] run setblock ~ ~ ~ $(block)[copper_golem_pose=sitting,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=running] run setblock ~ ~ ~ $(block)[copper_golem_pose=running,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[copper_golem_pose=star] run setblock ~ ~ ~ $(block)[copper_golem_pose=star,facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/copper_golem_statues/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/rotate.mcfunction similarity index 59% rename from data/lzstools_wrench/function/rotate/unique_blocks/comparator/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/rotate.mcfunction index 46a762b..6965a59 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/comparator/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/copper_golem_statues/rotate.mcfunction @@ -1,7 +1,7 @@ -## Comparator +## Copper Golems # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/unique_blocks/comparator/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/unique_blocks/comparator/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/unique_blocks/comparator/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/unique_blocks/comparator/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/copper_golem_statues/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/copper_golem_statues/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/copper_golem_statues/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/copper_golem_statues/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/crafter/click.mcfunction similarity index 96% rename from data/lzstools_wrench/function/rotate/unique_blocks/crafter/click.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/crafter/click.mcfunction index b4d883c..c688de9 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/click.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/crafter/click.mcfunction @@ -17,4 +17,4 @@ $execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast mat $execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[orientation=west_up] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/crafter/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/crafter/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/crafter/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/crafter/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/crafter/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/crafter/flip.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/crafter/flip.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/crafter/flip.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/crafter/player.mcfunction similarity index 96% rename from data/lzstools_wrench/function/rotate/unique_blocks/crafter/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/crafter/player.mcfunction index 659bf79..cb0c1a9 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/crafter/player.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/crafter/player.mcfunction @@ -14,4 +14,4 @@ $execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=135 $execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[orientation=west_up] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/crafter/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/crafter/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/trapdoors/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/crafter/rotate.mcfunction similarity index 62% rename from data/lzstools_wrench/function/rotate/trapdoors/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/crafter/rotate.mcfunction index 5f04c41..cd048a3 100644 --- a/data/lzstools_wrench/function/rotate/trapdoors/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/crafter/rotate.mcfunction @@ -1,7 +1,7 @@ -## Trapdoors +## Crafter # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/trapdoors/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/trapdoors/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/trapdoors/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/trapdoors/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/crafter/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/crafter/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/crafter/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/crafter/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/partialbox/ender_chest/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/click.mcfunction new file mode 100644 index 0000000..64be23c --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/click.mcfunction @@ -0,0 +1,17 @@ +## Click NESW + +# Get Raycast Target Coords +function lzstools_wrench:raycast/target_coords + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 1 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 14 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 14 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 1 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 1 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 14 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 14 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 1 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/ender_chest/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/ender_chest/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/cycle.mcfunction new file mode 100644 index 0000000..8b1b427 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/cycle.mcfunction @@ -0,0 +1,11 @@ +## Cycle Ender Chest + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[facing=west] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/ender_chest/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/flip.mcfunction new file mode 100644 index 0000000..cc219ef --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/flip.mcfunction @@ -0,0 +1,11 @@ +## Flip Ender Chest + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[facing=east] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/ender_chest/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/player.mcfunction new file mode 100644 index 0000000..5b9ba01 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/player.mcfunction @@ -0,0 +1,14 @@ +## Face Player Ender Chest + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=west] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/ender_chest/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/rotate.mcfunction similarity index 64% rename from data/lzstools_wrench/function/rotate/unique_blocks/repeater/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/ender_chest/rotate.mcfunction index 4c721a8..80cd7e0 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/ender_chest/rotate.mcfunction @@ -1,7 +1,7 @@ -## Repeater +## Ender Chest # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/unique_blocks/repeater/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/unique_blocks/repeater/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/unique_blocks/repeater/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/unique_blocks/repeater/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/ender_chest/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/ender_chest/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/ender_chest/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/ender_chest/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/grindstone/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/grindstone/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/grindstone/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/grindstone/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/grindstone/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/grindstone/flip.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/grindstone/flip.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/grindstone/flip.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/grindstone/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/grindstone/player.mcfunction similarity index 96% rename from data/lzstools_wrench/function/rotate/unique_blocks/grindstone/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/grindstone/player.mcfunction index f7310b3..6b4a783 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/grindstone/player.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/grindstone/player.mcfunction @@ -14,4 +14,4 @@ $execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=135 $execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[face=floor,facing=west] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/grindstone/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/grindstone/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs_hanging/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/grindstone/rotate.mcfunction similarity index 59% rename from data/lzstools_wrench/function/rotate/signs_hanging/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/grindstone/rotate.mcfunction index 149a246..97df950 100644 --- a/data/lzstools_wrench/function/rotate/signs_hanging/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/grindstone/rotate.mcfunction @@ -1,6 +1,6 @@ -## Signs Hanging +## Grindstone # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/signs_hanging/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/signs_hanging/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/signs_hanging/cycle with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/grindstone/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/grindstone/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/grindstone/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/hopper/click.mcfunction similarity index 94% rename from data/lzstools_wrench/function/rotate/unique_blocks/hopper/click.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/hopper/click.mcfunction index 6a46537..579f820 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/click.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/hopper/click.mcfunction @@ -16,4 +16,4 @@ $execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast mat $execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success unless block ~ ~ ~ $(block)[facing=west] run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=west] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/hopper/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/hopper/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/hopper/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/hopper/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/hopper/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/hopper/flip.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/hopper/flip.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/hopper/flip.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/hopper/player.mcfunction similarity index 93% rename from data/lzstools_wrench/function/rotate/unique_blocks/hopper/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/hopper/player.mcfunction index 180fe93..d101c70 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/player.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/hopper/player.mcfunction @@ -9,4 +9,4 @@ $execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=135 $execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=-135..-45] store result score @s lzt_wrench_success unless block ~ ~ ~ $(block)[facing=west] run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[facing=west] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/hopper/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/hopper/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/partialbox/hopper/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/hopper/rotate.mcfunction new file mode 100644 index 0000000..eda1233 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/hopper/rotate.mcfunction @@ -0,0 +1,7 @@ +## Hopper + +# Rotate Based on Wrench Mode +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/hopper/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/hopper/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/hopper/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/hopper/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/rails/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/rails/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/rails/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/rails/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/rails/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/rails/player.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/rails/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/rails/player.mcfunction diff --git a/data/lzstools_wrench/function/rotate/rails/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/rails/rotate.mcfunction similarity index 62% rename from data/lzstools_wrench/function/rotate/rails/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/rails/rotate.mcfunction index 56970e1..a502a44 100644 --- a/data/lzstools_wrench/function/rotate/rails/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/rails/rotate.mcfunction @@ -1,5 +1,5 @@ ## Rails # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/rails/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/rails/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/rails/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/rails/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/repeater/click.mcfunction similarity index 97% rename from data/lzstools_wrench/function/rotate/unique_blocks/repeater/click.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/repeater/click.mcfunction index d019206..a703bd4 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/click.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/repeater/click.mcfunction @@ -25,4 +25,4 @@ $execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast mat $execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[delay=4] run setblock ~ ~ ~ $(block)[delay=4,facing=west] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/repeater/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/repeater/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/repeater/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/repeater/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/repeater/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/repeater/flip.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/unique_blocks/repeater/flip.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/repeater/flip.mcfunction diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/repeater/player.mcfunction similarity index 97% rename from data/lzstools_wrench/function/rotate/unique_blocks/repeater/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/repeater/player.mcfunction index 1b0b9d0..708f191 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/repeater/player.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/repeater/player.mcfunction @@ -22,4 +22,4 @@ $execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result $execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success unless block ~ ~ ~ $(block)[facing=west] run execute if block ~ ~ ~ $(block)[delay=4] run setblock ~ ~ ~ $(block)[delay=4,facing=west] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/repeater/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/repeater/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/partialbox/repeater/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/repeater/rotate.mcfunction new file mode 100644 index 0000000..931584a --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/repeater/rotate.mcfunction @@ -0,0 +1,7 @@ +## Repeater + +# Rotate Based on Wrench Mode +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/repeater/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/repeater/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/repeater/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/repeater/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs/click.mcfunction new file mode 100644 index 0000000..2487e62 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs/click.mcfunction @@ -0,0 +1,18 @@ +## Face Click Signs + +# Get Raycast Target Coords +function lzstools_wrench:raycast/target_coords + +# Signs and Banners don't have full hitboxes, nothing else uses numeric rotation +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/signs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs/cycle.mcfunction new file mode 100644 index 0000000..8c60c73 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs/cycle.mcfunction @@ -0,0 +1,35 @@ +## Cycle Signs + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=7] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=7] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs/flip.mcfunction new file mode 100644 index 0000000..6482c8c --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs/flip.mcfunction @@ -0,0 +1,35 @@ +## Flip Signs + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=7] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=7] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs/player.mcfunction new file mode 100644 index 0000000..b241217 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs/player.mcfunction @@ -0,0 +1,38 @@ +## Face Player Signs + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=7] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=7] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/signs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs/rotate.mcfunction similarity index 63% rename from data/lzstools_wrench/function/rotate/signs/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/signs/rotate.mcfunction index 8a3d687..5eb13de 100644 --- a/data/lzstools_wrench/function/rotate/signs/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/signs/rotate.mcfunction @@ -1,7 +1,7 @@ ## Signs # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/signs/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/signs/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/signs/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/signs/cycle with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/signs/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/signs/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/signs/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/signs/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/cycle.mcfunction new file mode 100644 index 0000000..1c929a7 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/cycle.mcfunction @@ -0,0 +1,35 @@ +## Cycle Signs Hanging + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=7] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=0] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=7] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=0] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/flip.mcfunction new file mode 100644 index 0000000..c4d43a5 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/flip.mcfunction @@ -0,0 +1,35 @@ +## Flip Signs Hanging + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=7] replace + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=7] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/player.mcfunction new file mode 100644 index 0000000..863720f --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/player.mcfunction @@ -0,0 +1,38 @@ +## Face Player Signs Hanging + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=7] replace + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=8] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=9] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=10] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=11] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=12] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=13] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=14] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=15] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=0] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=1] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=2] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=3] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=4] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=5] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=6] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=7] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/signs_hanging/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/grindstone/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/rotate.mcfunction similarity index 62% rename from data/lzstools_wrench/function/rotate/unique_blocks/grindstone/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/signs_hanging/rotate.mcfunction index d01b0cb..9ab6b8f 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/grindstone/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/signs_hanging/rotate.mcfunction @@ -1,6 +1,6 @@ -## Grindstone +## Signs Hanging # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/unique_blocks/grindstone/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/unique_blocks/grindstone/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/unique_blocks/grindstone/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/signs_hanging/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/signs_hanging/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/signs_hanging/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/signs_wall/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs_wall/flip.mcfunction new file mode 100644 index 0000000..85e6fa2 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/signs_wall/flip.mcfunction @@ -0,0 +1,10 @@ +## Flip Signs Wall + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=south] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=west] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=north] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[facing=east] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=west] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs_wall/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/signs_wall/rotate.mcfunction similarity index 60% rename from data/lzstools_wrench/function/rotate/signs_wall/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/signs_wall/rotate.mcfunction index bec5b23..f57bc0a 100644 --- a/data/lzstools_wrench/function/rotate/signs_wall/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/signs_wall/rotate.mcfunction @@ -1,4 +1,4 @@ ## Signs Wall # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/signs_wall/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/signs_wall/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/skulls/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/skulls/click.mcfunction similarity index 91% rename from data/lzstools_wrench/function/rotate/skulls/click.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/skulls/click.mcfunction index d4161ea..4b3a3a0 100644 --- a/data/lzstools_wrench/function/rotate/skulls/click.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/skulls/click.mcfunction @@ -10,4 +10,4 @@ $execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast mat $execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[rotation=12] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/skulls/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/skulls/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/skulls/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/skulls/cycle.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/skulls/cycle.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/skulls/cycle.mcfunction diff --git a/data/lzstools_wrench/function/rotate/skulls/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/skulls/flip.mcfunction similarity index 100% rename from data/lzstools_wrench/function/rotate/skulls/flip.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/skulls/flip.mcfunction diff --git a/data/lzstools_wrench/function/rotate/skulls/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/skulls/player.mcfunction similarity index 96% rename from data/lzstools_wrench/function/rotate/skulls/player.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/skulls/player.mcfunction index 94bb7da..43357d3 100644 --- a/data/lzstools_wrench/function/rotate/skulls/player.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/skulls/player.mcfunction @@ -18,4 +18,4 @@ $execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store r $execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[rotation=15] replace # Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/skulls/flip with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/skulls/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/skulls/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/skulls/rotate.mcfunction similarity index 64% rename from data/lzstools_wrench/function/rotate/skulls/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/skulls/rotate.mcfunction index 330b8b7..86be3e4 100644 --- a/data/lzstools_wrench/function/rotate/skulls/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/skulls/rotate.mcfunction @@ -1,7 +1,7 @@ ## Heads and Skulls # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/skulls/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/skulls/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/skulls/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/skulls/cycle with storage lzstools:wrench \ No newline at end of file +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/skulls/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/skulls/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/skulls/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/skulls/cycle with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/slabs/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/slabs/flip.mcfunction new file mode 100644 index 0000000..47f223f --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/slabs/flip.mcfunction @@ -0,0 +1,6 @@ +## Flip Slabs + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[type=top] run setblock ~ ~ ~ $(block)[type=bottom,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[type=bottom] run setblock ~ ~ ~ $(block)[type=top,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[type=top] run setblock ~ ~ ~ $(block)[type=bottom] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[type=bottom] run setblock ~ ~ ~ $(block)[type=top] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/slabs/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/slabs/rotate.mcfunction similarity index 60% rename from data/lzstools_wrench/function/rotate/slabs/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/slabs/rotate.mcfunction index 657719b..0165be1 100644 --- a/data/lzstools_wrench/function/rotate/slabs/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/slabs/rotate.mcfunction @@ -1,4 +1,4 @@ ## Slabs # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/slabs/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/slabs/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/partialbox/stairs/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/stairs/click.mcfunction new file mode 100644 index 0000000..a5a56bc --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/stairs/click.mcfunction @@ -0,0 +1,24 @@ +## Face Click Stairs + +# Get Raycast Target Coords +function lzstools_wrench:raycast/target_coords + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=east] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/stairs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/stairs/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/stairs/cycle.mcfunction new file mode 100644 index 0000000..0ea0844 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/stairs/cycle.mcfunction @@ -0,0 +1,18 @@ +## Cycle Stairs + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north] run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west] run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south] run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east] run setblock ~ ~ ~ $(block)[half=top,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north] run setblock ~ ~ ~ $(block)[half=top,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west] run setblock ~ ~ ~ $(block)[half=top,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south] run setblock ~ ~ ~ $(block)[half=top,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east] run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/stairs/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/stairs/flip.mcfunction new file mode 100644 index 0000000..d357611 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/stairs/flip.mcfunction @@ -0,0 +1,18 @@ +## Flip Stairs + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west] run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south] run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east] run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north] run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west] run setblock ~ ~ ~ $(block)[half=top,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south] run setblock ~ ~ ~ $(block)[half=top,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east] run setblock ~ ~ ~ $(block)[half=top,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north] run setblock ~ ~ ~ $(block)[half=top,facing=south] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/stairs/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/stairs/player.mcfunction new file mode 100644 index 0000000..da6cba5 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/stairs/player.mcfunction @@ -0,0 +1,23 @@ +## Face Player Stairs + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=south] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=west] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=north] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block) run setblock ~ ~ ~ $(block)[half=top,facing=east] replace + +## Non-processed + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/stairs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/stairs/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/stairs/rotate.mcfunction similarity index 63% rename from data/lzstools_wrench/function/rotate/stairs/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/stairs/rotate.mcfunction index 29bf9f3..2d7e190 100644 --- a/data/lzstools_wrench/function/rotate/stairs/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/stairs/rotate.mcfunction @@ -1,7 +1,7 @@ ## Stairs # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/stairs/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/stairs/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/stairs/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/stairs/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/stairs/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/stairs/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/stairs/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/stairs/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/partialbox/trapdoors/click.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/click.mcfunction new file mode 100644 index 0000000..7130464 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/click.mcfunction @@ -0,0 +1,40 @@ +## Face Click Trapdoors + +# Get Raycast Target Coords +function lzstools_wrench:raycast/target_coords + +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/trapdoors/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/trapdoors/cycle.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/cycle.mcfunction new file mode 100644 index 0000000..8a75dd0 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/cycle.mcfunction @@ -0,0 +1,34 @@ +## Cycle Trapdoors + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/trapdoors/flip.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/flip.mcfunction new file mode 100644 index 0000000..7f3c7c5 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/flip.mcfunction @@ -0,0 +1,34 @@ +## Flip Trapdoors + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/partialbox/trapdoors/player.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/player.mcfunction new file mode 100644 index 0000000..8de9c25 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/player.mcfunction @@ -0,0 +1,37 @@ +## Face Player Trapdoors + +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace +$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute unless predicate lzstools:waterlogged run execute if block ~ ~ ~ $(block)[open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace + +# Otherwise, Flip +execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/partialbox/trapdoors/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/rotate.mcfunction b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/rotate.mcfunction similarity index 65% rename from data/lzstools_wrench/function/rotate/unique_blocks/hopper/rotate.mcfunction rename to data/lzstools_wrench/function/rotate/partialbox/trapdoors/rotate.mcfunction index e2b7897..0b03e36 100644 --- a/data/lzstools_wrench/function/rotate/unique_blocks/hopper/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/partialbox/trapdoors/rotate.mcfunction @@ -1,7 +1,7 @@ -## Hopper +## Trapdoors # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/unique_blocks/hopper/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/unique_blocks/hopper/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/unique_blocks/hopper/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/unique_blocks/hopper/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/partialbox/trapdoors/flip with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/partialbox/trapdoors/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/partialbox/trapdoors/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/partialbox/trapdoors/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/signs/click.mcfunction b/data/lzstools_wrench/function/rotate/signs/click.mcfunction deleted file mode 100644 index 7f4a0b3..0000000 --- a/data/lzstools_wrench/function/rotate/signs/click.mcfunction +++ /dev/null @@ -1,18 +0,0 @@ -## Face Click Signs - -# Get Raycast Target Coords -function lzstools_wrench:raycast/target_coords - -# Signs and Banners don't have full hitboxes, nothing else uses numeric rotation -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace - -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 11 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 4 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/signs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs/cycle.mcfunction b/data/lzstools_wrench/function/rotate/signs/cycle.mcfunction deleted file mode 100644 index 4667cd9..0000000 --- a/data/lzstools_wrench/function/rotate/signs/cycle.mcfunction +++ /dev/null @@ -1,35 +0,0 @@ -## Cycle Signs - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=7] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=7] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs/flip.mcfunction b/data/lzstools_wrench/function/rotate/signs/flip.mcfunction deleted file mode 100644 index 73e40c6..0000000 --- a/data/lzstools_wrench/function/rotate/signs/flip.mcfunction +++ /dev/null @@ -1,35 +0,0 @@ -## Flip Signs - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=7] replace - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=0] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=1] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=2] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=3] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=4] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=5] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=6] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=7] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=8] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=9] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=10] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=11] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=12] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=13] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=14] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=15] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=7] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs/player.mcfunction b/data/lzstools_wrench/function/rotate/signs/player.mcfunction deleted file mode 100644 index 09d3efc..0000000 --- a/data/lzstools_wrench/function/rotate/signs/player.mcfunction +++ /dev/null @@ -1,38 +0,0 @@ -## Face Player Signs - -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,rotation=7] replace - -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,rotation=7] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/signs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs_hanging/cycle.mcfunction b/data/lzstools_wrench/function/rotate/signs_hanging/cycle.mcfunction deleted file mode 100644 index dbef654..0000000 --- a/data/lzstools_wrench/function/rotate/signs_hanging/cycle.mcfunction +++ /dev/null @@ -1,35 +0,0 @@ -## Cycle Signs Hanging - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=7] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=0] replace - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=7] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=0] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs_hanging/flip.mcfunction b/data/lzstools_wrench/function/rotate/signs_hanging/flip.mcfunction deleted file mode 100644 index 6c5fdbe..0000000 --- a/data/lzstools_wrench/function/rotate/signs_hanging/flip.mcfunction +++ /dev/null @@ -1,35 +0,0 @@ -## Flip Signs Hanging - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=7] replace - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=0] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=1] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=2] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=3] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=4] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=5] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=6] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=7] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=8] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=9] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=10] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=11] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=12] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=13] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=14] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,rotation=15] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=7] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs_hanging/player.mcfunction b/data/lzstools_wrench/function/rotate/signs_hanging/player.mcfunction deleted file mode 100644 index 9700cf2..0000000 --- a/data/lzstools_wrench/function/rotate/signs_hanging/player.mcfunction +++ /dev/null @@ -1,38 +0,0 @@ -## Face Player Signs Hanging - -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=true,rotation=7] replace - -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-11.25..11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=8] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=11.25..33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=9] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=33.75..56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=10] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=56.25..78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=11] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=78.75..101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=12] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=101.25..123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=13] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=123.75..146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=14] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=146.25..168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=15] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=168.75..-168.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=0] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-168.75..-146.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=1] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-146.25..-123.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=2] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-123.75..-101.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=3] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-101.25..-78.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=4] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-78.75..-56.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=5] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-56.25..-33.75] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=6] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-33.75..-11.25] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[attached=true,waterlogged=false,rotation=7] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/signs_hanging/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/signs_wall/flip.mcfunction b/data/lzstools_wrench/function/rotate/signs_wall/flip.mcfunction deleted file mode 100644 index e34716e..0000000 --- a/data/lzstools_wrench/function/rotate/signs_wall/flip.mcfunction +++ /dev/null @@ -1,12 +0,0 @@ -## Flip Signs Wall - -say flip - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=south] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=west] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=north] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ #minecraft:wall_hanging_signs[facing=east] run setblock ~ ~ ~ $(block)[facing=west] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/slabs/flip.mcfunction b/data/lzstools_wrench/function/rotate/slabs/flip.mcfunction deleted file mode 100644 index b7b9ef8..0000000 --- a/data/lzstools_wrench/function/rotate/slabs/flip.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -## Flip Slabs - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[type=top,waterlogged=true] run setblock ~ ~ ~ $(block)[type=bottom,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[type=bottom,waterlogged=true] run setblock ~ ~ ~ $(block)[type=top,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[type=top] run setblock ~ ~ ~ $(block)[type=bottom] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[type=bottom] run setblock ~ ~ ~ $(block)[type=top] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/stairs/click.mcfunction b/data/lzstools_wrench/function/rotate/stairs/click.mcfunction deleted file mode 100644 index 7c70617..0000000 --- a/data/lzstools_wrench/function/rotate/stairs/click.mcfunction +++ /dev/null @@ -1,24 +0,0 @@ -## Face Click Stairs - -# Get Raycast Target Coords -function lzstools_wrench:raycast/target_coords - -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=east] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/stairs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/stairs/cycle.mcfunction b/data/lzstools_wrench/function/rotate/stairs/cycle.mcfunction deleted file mode 100644 index 421863d..0000000 --- a/data/lzstools_wrench/function/rotate/stairs/cycle.mcfunction +++ /dev/null @@ -1,18 +0,0 @@ -## Cycle Stairs - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north] run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west] run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south] run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east] run setblock ~ ~ ~ $(block)[half=top,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north] run setblock ~ ~ ~ $(block)[half=top,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west] run setblock ~ ~ ~ $(block)[half=top,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south] run setblock ~ ~ ~ $(block)[half=top,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east] run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/stairs/flip.mcfunction b/data/lzstools_wrench/function/rotate/stairs/flip.mcfunction deleted file mode 100644 index 12790ca..0000000 --- a/data/lzstools_wrench/function/rotate/stairs/flip.mcfunction +++ /dev/null @@ -1,18 +0,0 @@ -## Flip Stairs - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west] run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south] run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east] run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north] run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west] run setblock ~ ~ ~ $(block)[half=top,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south] run setblock ~ ~ ~ $(block)[half=top,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east] run setblock ~ ~ ~ $(block)[half=top,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north] run setblock ~ ~ ~ $(block)[half=top,facing=south] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/stairs/player.mcfunction b/data/lzstools_wrench/function/rotate/stairs/player.mcfunction deleted file mode 100644 index 0f79677..0000000 --- a/data/lzstools_wrench/function/rotate/stairs/player.mcfunction +++ /dev/null @@ -1,23 +0,0 @@ -## Face Player Stairs - -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[half=top,facing=east] replace - -## Non-processed - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/stairs/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/trapdoors/click.mcfunction b/data/lzstools_wrench/function/rotate/trapdoors/click.mcfunction deleted file mode 100644 index c1a9b21..0000000 --- a/data/lzstools_wrench/function/rotate/trapdoors/click.mcfunction +++ /dev/null @@ -1,40 +0,0 @@ -## Face Click Trapdoors - -# Get Raycast Target Coords -function lzstools_wrench:raycast/target_coords - -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 7.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/trapdoors/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/trapdoors/cycle.mcfunction b/data/lzstools_wrench/function/rotate/trapdoors/cycle.mcfunction deleted file mode 100644 index d68860b..0000000 --- a/data/lzstools_wrench/function/rotate/trapdoors/cycle.mcfunction +++ /dev/null @@ -1,34 +0,0 @@ -## Cycle Trapdoors - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/trapdoors/flip.mcfunction b/data/lzstools_wrench/function/rotate/trapdoors/flip.mcfunction deleted file mode 100644 index d3283b3..0000000 --- a/data/lzstools_wrench/function/rotate/trapdoors/flip.mcfunction +++ /dev/null @@ -1,34 +0,0 @@ -## Flip Trapdoors - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=bottom,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=west,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=south,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=east,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[half=top,facing=north,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/trapdoors/player.mcfunction b/data/lzstools_wrench/function/rotate/trapdoors/player.mcfunction deleted file mode 100644 index 56b864e..0000000 --- a/data/lzstools_wrench/function/rotate/trapdoors/player.mcfunction +++ /dev/null @@ -1,37 +0,0 @@ -## Face Player Trapdoors - -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,waterlogged=true,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=true] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=true] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=north,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=east,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=south,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches ..7 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=bottom,facing=west,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=north,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=east,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=south,open=false] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] if score py lzt_wrench_raycast matches 8.. store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,open=false] run setblock ~ ~ ~ $(block)[half=top,facing=west,open=false] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/trapdoors/flip with storage lzstools:wrench \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/click.mcfunction b/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/click.mcfunction deleted file mode 100644 index 23c5f29..0000000 --- a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/click.mcfunction +++ /dev/null @@ -1,17 +0,0 @@ -## Face Click Calibrated Sculk Sensor - -# Get Raycast Target Coords -function lzstools_wrench:raycast/target_coords - -# Calibrated Sculk Sensor -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] if score pz lzt_wrench_raycast matches 15 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] if score px lzt_wrench_raycast matches 0 store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=east] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/calibrated_sculk_sensor/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/cycle.mcfunction b/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/cycle.mcfunction deleted file mode 100644 index 418947d..0000000 --- a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/cycle.mcfunction +++ /dev/null @@ -1,10 +0,0 @@ -## Cycle Calibrated Sculk Sensor - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=north] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=west] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=south] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=east] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=south] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/flip.mcfunction b/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/flip.mcfunction deleted file mode 100644 index 77138fb..0000000 --- a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/flip.mcfunction +++ /dev/null @@ -1,10 +0,0 @@ -## Flip Calibrated Sculk Sensor - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=west] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=south] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=east] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true,facing=north] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=west] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=south] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=east] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false,facing=north] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=south] replace diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/player.mcfunction b/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/player.mcfunction deleted file mode 100644 index 89fb828..0000000 --- a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/player.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -## Cycle Calibrated Sculk Sensor - -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=true] run setblock ~ ~ ~ $(block)[waterlogged=true,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-45..45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=45..135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=135..-135] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}, y_rotation=-135..-45] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[waterlogged=false] run setblock ~ ~ ~ $(block)[waterlogged=false,facing=east] replace - -# Otherwise, Flip -execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run function lzstools_wrench:rotate/unique_blocks/calibrated_sculk_sensor/flip with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/rotate.mcfunction b/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/rotate.mcfunction deleted file mode 100644 index d843e65..0000000 --- a/data/lzstools_wrench/function/rotate/unique_blocks/calibrated_sculk_sensor/rotate.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -## Calibrated Sculk Sensor - -# Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Flip"]}}}] run function lzstools_wrench:rotate/unique_blocks/calibrated_sculk_sensor/flip with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/unique_blocks/calibrated_sculk_sensor/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/unique_blocks/calibrated_sculk_sensor/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/unique_blocks/calibrated_sculk_sensor/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/unique_blocks/campfires/cycle.mcfunction b/data/lzstools_wrench/function/rotate/unique_blocks/campfires/cycle.mcfunction deleted file mode 100644 index 1894a66..0000000 --- a/data/lzstools_wrench/function/rotate/unique_blocks/campfires/cycle.mcfunction +++ /dev/null @@ -1,10 +0,0 @@ -## Campfires Cycle - -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=true,facing=west] run setblock ~ ~ ~ $(block)[lit=true,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=true,facing=north] run setblock ~ ~ ~ $(block)[lit=true,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=true,facing=east] run setblock ~ ~ ~ $(block)[lit=true,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=true,facing=south] run setblock ~ ~ ~ $(block)[lit=true,facing=west] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=false,facing=west] run setblock ~ ~ ~ $(block)[lit=false,facing=north] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=false,facing=north] run setblock ~ ~ ~ $(block)[lit=false,facing=east] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=false,facing=east] run setblock ~ ~ ~ $(block)[lit=false,facing=south] replace -$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[lit=false,facing=south] run setblock ~ ~ ~ $(block)[lit=false,facing=west] replace diff --git a/data/lzstools_wrench/function/rotate/xyz/rotate.mcfunction b/data/lzstools_wrench/function/rotate/xyz/rotate.mcfunction index 24dbd06..c3bc205 100644 --- a/data/lzstools_wrench/function/rotate/xyz/rotate.mcfunction +++ b/data/lzstools_wrench/function/rotate/xyz/rotate.mcfunction @@ -1,6 +1,10 @@ ## X Y Z # Rotate Based on Wrench Mode -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run function lzstools_wrench:rotate/xyz/player with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run function lzstools_wrench:rotate/xyz/click with storage lzstools:wrench -execute as @s[scores={lzt_wrench_success=0}] run function lzstools_wrench:rotate/xyz/cycle with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/xyz/waterlogged_player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/xyz/waterlogged_click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run execute if predicate lzstools:waterlogged run function lzstools_wrench:rotate/xyz/waterlogged_cycle with storage lzstools:wrench + +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Player"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/xyz/player with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0},nbt={SelectedItem:{components:{"minecraft:lore":["Face Click"]}}}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/xyz/click with storage lzstools:wrench +execute as @s[scores={lzt_wrench_success=0}] run execute unless predicate lzstools:waterlogged run function lzstools_wrench:rotate/xyz/cycle with storage lzstools:wrench diff --git a/data/lzstools_wrench/function/rotate/xyz/waterlogged_click.mcfunction b/data/lzstools_wrench/function/rotate/xyz/waterlogged_click.mcfunction new file mode 100644 index 0000000..c64c300 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/xyz/waterlogged_click.mcfunction @@ -0,0 +1,12 @@ +## 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 diff --git a/data/lzstools_wrench/function/rotate/xyz/waterlogged_cycle.mcfunction b/data/lzstools_wrench/function/rotate/xyz/waterlogged_cycle.mcfunction new file mode 100644 index 0000000..15a4689 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/xyz/waterlogged_cycle.mcfunction @@ -0,0 +1,5 @@ +## X Y Z Cycle + +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[axis=y] run setblock ~ ~ ~ $(block)[waterlogged=true,axis=x] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[axis=x] run setblock ~ ~ ~ $(block)[waterlogged=true,axis=z] replace +$execute as @s[scores={lzt_wrench_success=0}] store result score @s lzt_wrench_success run execute if block ~ ~ ~ $(block)[axis=z] run setblock ~ ~ ~ $(block)[waterlogged=true,axis=y] replace \ No newline at end of file diff --git a/data/lzstools_wrench/function/rotate/xyz/waterlogged_player.mcfunction b/data/lzstools_wrench/function/rotate/xyz/waterlogged_player.mcfunction new file mode 100644 index 0000000..856ffb1 --- /dev/null +++ b/data/lzstools_wrench/function/rotate/xyz/waterlogged_player.mcfunction @@ -0,0 +1,11 @@ +## X Y Z Player + +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=45..90] store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=y] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-90..-45] store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=y] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=-45..45] store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=z] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=135..-135] store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=z] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=45..135] store result score @s lzt_wrench_success run setblock ~ ~ ~ $(block)[waterlogged=true,axis=x] replace +$execute as @s[scores={lzt_wrench_success=0}, x_rotation=-45..45, y_rotation=-135..-45] 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 \ No newline at end of file