aboutsummaryrefslogtreecommitdiff
path: root/data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction
diff options
context:
space:
mode:
Diffstat (limited to 'data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction')
-rw-r--r--data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction b/data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction
new file mode 100644
index 0000000..dcd7362
--- /dev/null
+++ b/data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction
@@ -0,0 +1,3 @@
+execute if score #a looper matches ..0 run setblock ~ ~ ~ amethyst_block
+execute positioned ~ ~1 ~ if score #a looper matches 1.. run function bktsb:structgen/helpers/amethyst/cast_ray
+execute if score #a looper matches 1.. run scoreboard players operation #a looper -= #a loopstep