diff options
Diffstat (limited to 'data/bktsb/functions/structgen/gen_bastion_west.mcfunction')
-rw-r--r-- | data/bktsb/functions/structgen/gen_bastion_west.mcfunction | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/data/bktsb/functions/structgen/gen_bastion_west.mcfunction b/data/bktsb/functions/structgen/gen_bastion_west.mcfunction new file mode 100644 index 0000000..4ff206f --- /dev/null +++ b/data/bktsb/functions/structgen/gen_bastion_west.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 ~-13 ~ ~5 minecraft:structure_block{name:"bktsb:nether/bastion1",mode:"LOAD",ignoreEntities:1,rotation:"COUNTERCLOCKWISE_90"} replace +execute if score #a genvar matches 0 run setblock ~-13 ~12 ~5 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0} +execute if score #a genvar matches 0 run setblock ~-13 ~1 ~5 redstone_block + +#10 x 3 x 10 +execute if score #a genvar matches 1 run setblock ~-11 ~ ~5 minecraft:structure_block{name:"bktsb:nether/bastion2",mode:"LOAD",ignoreEntities:1,rotation:"COUNTERCLOCKWISE_90"} replace +execute if score #a genvar matches 1 run setblock ~-11 ~12 ~5 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0} +execute if score #a genvar matches 1 run setblock ~-11 ~1 ~5 redstone_block + +#11 x 5 x 11 +execute if score #a genvar matches 2 run setblock ~-12 ~ ~5 minecraft:structure_block{name:"bktsb:nether/bastion3",mode:"LOAD",ignoreEntities:1,rotation:"COUNTERCLOCKWISE_90"} replace +execute if score #a genvar matches 2 run setblock ~-12 ~12 ~5 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0} +execute if score #a genvar matches 2 run setblock ~-12 ~1 ~5 redstone_block + +#19 x 10 x 20 +execute if score #a genvar matches 3 run setblock ~-21 ~ ~9 minecraft:structure_block{name:"bktsb:nether/bastion4",mode:"LOAD",ignoreEntities:1,rotation:"COUNTERCLOCKWISE_90"} replace +execute if score #a genvar matches 3 run setblock ~-21 ~12 ~9 minecraft:command_block{auto:1,Command:"function bktsb:structgen/helpers/gen_bastion_helper",TrackOutput:0} +execute if score #a genvar matches 3 run setblock ~-21 ~1 ~9 redstone_block |