# GatVillage Ship_Dock
# Made by GatKong
#tellraw @a ["",{"text":"gatvillage/ship_dock","color":"green"}]

#execute if block ~ ~ ~ minecraft:command_block[facing=north] run say north
#execute if block ~ ~ ~ minecraft:command_block[facing=south] run say south
#execute if block ~ ~ ~ minecraft:command_block[facing=east] run say east
#execute if block ~ ~ ~ minecraft:command_block[facing=west] run say west

######### North ######### good
execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~7 62 ~16 ~-7 61 ~-9 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~7 60 ~16 ~-7 60 ~-2 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~1 ~-4 ~9 ~-1 ~-4 ~-6 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~2 ~-4 ~5 ~-2 ~-4 ~-5 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~ ~-4 ~10 ~ ~-4 ~12 minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~ ~-5 ~11 ~ ~-5 ~12 minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~ ~-5 ~7 ~ ~-5 ~-5 minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=north] run fill ~1 ~-3 ~1 ~-1 ~-3 ~8 minecraft:air replace minecraft:water

######### South ######### good
execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~7 62 ~9 ~-7 61 ~-16 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~7 60 ~2 ~-7 60 ~-16 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~1 ~-4 ~6 ~-1 ~-4 ~-9 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~2 ~-4 ~5 ~-2 ~-4 ~-5 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~ ~-4 ~-10 ~ ~-4 ~-12 minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~ ~-5 ~-11 ~ ~-5 ~-12 minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~ ~-5 ~5 ~ ~-5 ~-7 minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=south] run fill ~1 ~-3 ~-1 ~-1 ~-3 ~-8 minecraft:air replace minecraft:water

######### East ######### good
execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~9 62 ~7 ~-16 61 ~-7 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~2 60 ~7 ~-16 60 ~-7 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~6 ~-4 ~1 ~-9 ~-4 ~-1 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~5 ~-4 ~2 ~-5 ~-4 ~-2 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~-10 ~-4 ~ ~-12 ~-4 ~ minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~-11 ~-5 ~ ~-12 ~-5 ~ minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~5 ~-5 ~ ~-7 ~-5 ~ minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=east] run fill ~-1 ~-3 ~1 ~-8 ~-3 ~-1 minecraft:air replace minecraft:water

######### West ######### good
execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~16 62 ~7 ~-9 61 ~-7 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~16 60 ~7 ~-2 60 ~-7 minecraft:water replace #gatkong:ship_carver_replaceables

execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~9 ~-4 ~1 ~-6 ~-4 ~-1 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~5 ~-4 ~2 ~-5 ~-4 ~-2 minecraft:oak_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~10 ~-4 ~ ~12 ~-4 ~ minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~11 ~-5 ~ ~12 ~-5 ~ minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~7 ~-5 ~ ~-5 ~-5 ~ minecraft:birch_planks replace

execute if block ~ ~ ~ minecraft:command_block[facing=west] run fill ~1 ~-3 ~1 ~8 ~-3 ~-1 minecraft:air replace minecraft:water

kill @e[type=cod,distance=..3]

fill ~ ~ ~ ~ ~2 ~ minecraft:air

kill @e[type=item,distance=..3]

######### WIP LINE #########