aboutsummaryrefslogtreecommitdiff
path: root/data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-07-24 16:59:58 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-07-24 16:59:58 +0800
commit77f0e689f84a601f5da4aaf2308bccf74a531346 (patch)
tree8154832f6c4ac0d071a771657c4a67c6a024f398 /data/bktsb/functions/structgen/helpers/amethyst/loop.mcfunction
downloadbktmc-skyblock-77f0e689f84a601f5da4aaf2308bccf74a531346.tar.xz
Initial public release (minecraft 1.17.1).
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