aboutsummaryrefslogtreecommitdiff
path: root/data/bktsb/functions/structgen/gen_bastion_north.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/gen_bastion_north.mcfunction
downloadbktmc-skyblock-77f0e689f84a601f5da4aaf2308bccf74a531346.tar.xz
Initial public release (minecraft 1.17.1).
Diffstat (limited to 'data/bktsb/functions/structgen/gen_bastion_north.mcfunction')
-rw-r--r--data/bktsb/functions/structgen/gen_bastion_north.mcfunction25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/bktsb/functions/structgen/gen_bastion_north.mcfunction b/data/bktsb/functions/structgen/gen_bastion_north.mcfunction
new file mode 100644
index 0000000..492ef0c
--- /dev/null
+++ b/data/bktsb/functions/structgen/gen_bastion_north.mcfunction
@@ -0,0 +1,25 @@
+scoreboard players set #a lim 4
+function bktsb:rng
+scoreboard players operation #a genvar = #a randr
+#for debugging
+#scoreboard players set #a genvar 0
+
+#11 x 4 x 12, w x h x d
+execute if score #a genvar matches 0 run setblock ~-5 ~ ~-13 minecraft:structure_block{name:"bktsb:nether/bastion1",mode:"LOAD",ignoreEntities:1,rotation:"NONE"} replace
+execute if score #a genvar matches 0 run setblock ~-5 ~12 ~-13 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0}
+execute if score #a genvar matches 0 run setblock ~-5 ~1 ~-13 redstone_block
+
+#10 x 3 x 10
+execute if score #a genvar matches 1 run setblock ~-5 ~ ~-11 minecraft:structure_block{name:"bktsb:nether/bastion2",mode:"LOAD",ignoreEntities:1,rotation:"NONE"} replace
+execute if score #a genvar matches 1 run setblock ~-5 ~12 ~-11 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0}
+execute if score #a genvar matches 1 run setblock ~-5 ~1 ~-11 redstone_block
+
+#11 x 5 x 11
+execute if score #a genvar matches 2 run setblock ~-5 ~ ~-12 minecraft:structure_block{name:"bktsb:nether/bastion3",mode:"LOAD",ignoreEntities:1,rotation:"NONE"} replace
+execute if score #a genvar matches 2 run setblock ~-5 ~12 ~-12 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0}
+execute if score #a genvar matches 2 run setblock ~-5 ~1 ~-12 redstone_block
+
+#19 x 10 x 20
+execute if score #a genvar matches 3 run setblock ~-9 ~ ~-21 minecraft:structure_block{name:"bktsb:nether/bastion4",mode:"LOAD",ignoreEntities:1,rotation:"NONE"} replace
+execute if score #a genvar matches 3 run setblock ~-9 ~12 ~-21 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0}
+execute if score #a genvar matches 3 run setblock ~-9 ~1 ~-21 redstone_block