execute as @e[name=IslandShipShack] run execute at @s run tp @s ~10 200 ~
execute if predicate suhc:50percent 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 if predicate suhc:25percent 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 if predicate suhc:25percent 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 if predicate suhc:25percent 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 if predicate suhc:50percent run tag @e[name=IslandDock] add NorthTP
execute if predicate suhc:50percent 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