execute as @e[name=IslandShipShack] run execute at @s run tp @s ~10 200 ~
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~1 ~ bedrock run tag @e[name=IslandShipShack] add WestTP
execute as @e[name=IslandShipShack,tag=WestTP] run execute at @s run tp @s ~-20 200 ~
execute at @e[type=armor_stand,name=IslandMake,tag=SavIsl] run execute as @e[type=armor_stand,name=IslandShipShack,distance=..40,tag=WestTP] run execute at @s run tp @s ~5 200 ~
execute at @e[type=armor_stand,name=IslandMake,tag=SavIsl] run execute as @e[type=armor_stand,name=IslandShipShack,distance=..40] run execute at @s run tp @s ~-5 200 ~
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run tag @e[name=IslandShipShack] add Rot90
execute as @e[type=armor_stand,name=IslandShipShack] run execute at @s[tag=Rot90,tag=WestTP] run tp @s ~3 ~ ~
execute as @e[type=armor_stand,name=IslandShipShack] run execute at @s[tag=Rot90,tag=!WestTP] run tp @s ~-3 ~ ~
execute at @e[type=minecraft:armor_stand,name=IslandShipShack,tag=Rot90] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandshackfire",posX:4,posZ:-4,posY:0,rotation:"CLOCKWISE_90",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run tag @e[name=IslandShipShack,tag=!Rot90] add Rot180
execute at @e[type=minecraft:armor_stand,name=IslandShipShack,tag=Rot180] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandshackfire",posX:3,posZ:4,posY:0,rotation:"CLOCKWISE_180",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run tag @e[name=IslandShipShack,tag=!Rot90,tag=!Rot180] add Rot270
execute as @e[type=armor_stand,name=IslandShipShack] run execute at @s[tag=Rot270,tag=WestTP] run tp @s ~3 ~ ~
execute as @e[type=armor_stand,name=IslandShipShack] run execute at @s[tag=Rot270,tag=!WestTP] run tp @s ~-3 ~ ~
execute at @e[type=minecraft:armor_stand,name=IslandShipShack,tag=Rot270] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandshackfire",posX:-4,posZ:4,posY:0,rotation:"COUNTERCLOCKWISE_90",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=minecraft:armor_stand,name=IslandShipShack,tag=!Rot90,tag=!Rot180,tag=!Rot270] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandshackfire",posX:-4,posZ:-4,posY:0,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=minecraft:armor_stand,name=IslandShipShack] run setblock ~ ~1 ~ redstone_block
#################################################################
execute as @e[name=IslandDock] run execute at @s run tp @s ~ 199 ~16
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~1 ~ bedrock run tag @e[name=IslandDock] add NorthTP
####execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~1 ~ bedrock run tag @e[name=IslandDock] add ShipDock
execute as @e[name=IslandDock,tag=NorthTP] run execute at @s run tp @s ~ 199 ~-32
execute at @e[type=armor_stand,name=IslandMake,tag=SavIsl] run execute as @e[type=armor_stand,name=IslandDock,distance=..40] run execute at @s run tp @s ~ ~-2 ~
####execute at @e[type=minecraft:armor_stand,name=IslandDock,tag=ShipDock] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islanddockandpirate",posX:-6,posZ:-5,posY:-9,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=minecraft:armor_stand,name=IslandDock,tag=!ShipDock] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islanddock",posX:-6,posZ:-5,posY:-5,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
tag @e[name=IslandDock,tag=NorthTP] add Rot180
####execute at @e[type=minecraft:armor_stand,name=IslandDock,tag=Rot180,tag=ShipDock] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islanddockandpirate",posX:6,posZ:5,posY:-9,rotation:"CLOCKWISE_180",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=minecraft:armor_stand,name=IslandDock,tag=Rot180,tag=!ShipDock] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islanddock",posX:6,posZ:5,posY:-5,rotation:"CLOCKWISE_180",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=minecraft:armor_stand,name=IslandDock] run setblock ~ ~1 ~ redstone_block
execute at @e[type=minecraft:armor_stand,name=IslandMake,limit=1] run spreadplayers ~ ~ 60 60 false @e[name=IslandShip]
execute as @e[name=IslandShip] run execute at @s run tp @s ~ 206 ~
execute at @e[type=minecraft:armor_stand,name=IslandShip] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandpirateship",posX:-6,posZ:-18,posY:0,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run tag @e[name=IslandShip] add Rot90
execute at @e[type=minecraft:armor_stand,name=IslandShip,tag=Rot90] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandpirateship",posX:18,posZ:-6,posY:0,rotation:"CLOCKWISE_90",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run tag @e[name=IslandShip,tag=!Rot90] add Rot180
execute at @e[type=minecraft:armor_stand,name=IslandShip,tag=Rot180] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandpirateship",posX:6,posZ:18,posY:0,rotation:"CLOCKWISE_180",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run tag @e[name=IslandShip,tag=!Rot90,tag=!Rot180] add Rot270
execute at @e[type=minecraft:armor_stand,name=IslandShip,tag=Rot270] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:islandpirateship",posX:-18,posZ:6,posY:0,rotation:"COUNTERCLOCKWISE_90",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=minecraft:armor_stand,name=IslandShip] run setblock ~ ~1 ~ redstone_block