Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /scoreboard objectives add conector dummy
- /scoreboard objectives add dir dummy
- /scoreboard objectives add last_room dummy
- /scoreboard objectives add room dummy
- /scoreboard players set last_room last_room 30
- /scoreboard players random @e[type=armor_stand,name=gen] dir 1 4
- /tag @e[type=armor_stand,name=gen] remove gen
- /scoreboard players add @e[type=armor_stand,name=gen] room 1
- /execute @e[type=armor_stand,scores={dir=1,room=2..}] ~ ~ ~ tp @s ~10 ~ ~
- /execute @e[type=armor_stand,scores={dir=2,room=2..}] ~ ~ ~ tp @s ~-10 ~ ~
- /execute @e[type=armor_stand,scores={dir=3,room=2..}] ~ ~ ~ tp @s ~ ~ ~10
- /execute @e[type=armor_stand,scores={dir=4,room=2..}] ~ ~ ~ tp @s ~ ~ ~-10
- /execute @e[type=armor_stand,name=gen] ~ ~ ~ detect ~ ~3 ~ air -1 tag @e[type=armor_stand,name=gen] add gen
- /scoreboard players operation @e[tag=gen] last_room = @e[tag=gen] room
- /scoreboard players operation @e[tag=gen] last_room -= last_room last_room
- /scoreboard players random @e[type=armor_stand,name=gen,tag=!gen] conector 4 10
- /execute @e[scores={room=1,last_room=..-1},tag=gen] ~ ~3 ~ structure load mystructure:room_start ~-2 ~ ~-2
- /execute @e[scores={room=2..,last_room=0},tag=gen] ~ ~3 ~ structure load mystructure:room_end ~-2 ~ ~-2
- /execute @e[scores={room=2..,last_room=..-1},tag=gen] ~ ~3 ~ structure load mystructure:room_mid ~-2 ~ ~-2
- /execute @e[type=armor_stand,scores={dir=1,room=2..},tag=gen] ~-5 ~3 ~ structure load mystructure:path_x ~-3 ~ ~-2
- /execute @e[type=armor_stand,scores={dir=2,room=2..},tag=gen] ~5 ~3 ~ structure load mystructure:path_x ~-3 ~ ~-2
- /execute @e[type=armor_stand,scores={dir=3,room=2..},tag=gen] ~ ~3 ~-5 structure load mystructure:path_z ~-2 ~ ~-3
- /execute @e[type=armor_stand,scores={dir=4,room=2..},tag=gen] ~ ~3 ~5 structure load mystructure:path_z ~-2 ~ ~-3
- /execute @e[type=armor_stand,scores={dir=1,room=2..,conector=..8},tag=!gen] ~-5 ~3 ~ structure load mystructure:path_x ~-3 ~ ~-2
- /execute @e[type=armor_stand,scores={dir=2,room=2..,conector=..8},tag=!gen] ~5 ~3 ~ structure load mystructure:path_x ~-3 ~ ~-2
- /execute @e[type=armor_stand,scores={dir=3,room=2..,conector=..8},tag=!gen] ~ ~3 ~-5 structure load mystructure:path_z ~-2 ~ ~-3
- /execute @e[type=armor_stand,scores={dir=4,room=2..,conector=..8},tag=!gen] ~ ~3 ~5 structure load mystructure:path_z ~-2 ~ ~-3
- /scoreboard players remove @e[type=armor_stand,name=gen,tag=!gen] room 1
- /kill @e[type=armor_stand,name=gen,scores={last_room=0}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement