tp @s ~-1 ~ ~
tp @e[tag=conPlacer] ~-2 ~ ~

execute @e[tag=conPlacer] ~ ~ ~ fill ~1 ~1 ~1 ~ ~ ~ barrier
execute @s ~ ~ ~ detect ~ ~ ~ air * execute @e[tag=conPlacer] ~ ~ ~ fill ~1 ~1 ~1 ~ ~ ~ air

execute @s ~ ~ ~ detect ~ ~ ~ iron_block 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:white_glazed_terracotta 1
execute @s ~ ~ ~ detect ~ ~ ~ planks 5 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:orange_glazed_terracotta 0
execute @s ~ ~ ~ detect ~ ~ ~ cyan_glazed_terracotta 1 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:white_glazed_terracotta 0
execute @s ~ ~ ~ detect ~ ~ ~ log 1 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:white_glazed_terracotta 2
execute @s ~ ~ ~ detect ~ ~ ~ log 5 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:white_glazed_terracotta 3
execute @s ~ ~ ~ detect ~ ~ ~ log 9 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:white_glazed_terracotta 3
execute @s ~ ~ ~ detect ~ ~ ~ log 13 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:white_glazed_terracotta 3
execute @s ~ ~ ~ detect ~ ~ ~ planks 1 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:orange_glazed_terracotta 1
execute @s ~ ~ ~ detect ~ ~ ~ stone 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:orange_glazed_terracotta 3
execute @s ~ ~ ~ detect ~ ~ ~ stonebrick 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:yellow_glazed_terracotta 1
execute @s ~ ~ ~ detect ~ ~ ~ stone 5 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:yellow_glazed_terracotta 0
execute @s ~ ~ ~ detect ~ ~ ~ bookshelf 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:lime_glazed_terracotta 0
execute @s ~ ~ ~ detect ~ ~ ~ gold_block 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:lime_glazed_terracotta 1
execute @s ~ ~ ~ detect ~ ~ ~ planks 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:lime_glazed_terracotta 2
execute @s ~ ~ ~ detect ~ ~ ~ brown_glazed_terracotta 1 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:lime_glazed_terracotta 3
execute @s ~ ~ ~ detect ~ ~ ~ stone 6 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:pink_glazed_terracotta 0
execute @s ~ ~ ~ detect ~ ~ ~ jukebox * execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:pink_glazed_terracotta 2
execute @s ~ ~ ~ detect ~ ~ ~ magma 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:pink_glazed_terracotta 3

execute @s ~ ~ ~ detect ~ ~ ~ packed_ice 0 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 ice
execute @s ~ ~ ~ detect ~ ~ ~ packed_ice 0 execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:pink_glazed_terracotta 1

execute @s ~ ~ ~ detect ~ ~ ~ lit_redstone_lamp * execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~ ~ minecraft:orange_glazed_terracotta 2
execute @s ~ ~ ~ detect ~ ~ ~ lit_redstone_lamp * execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~1 ~ end_rod 1

execute @s ~ ~ ~ detect ~ ~ ~ concrete 0 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 0
execute @s ~ ~ ~ detect ~ ~ ~ concrete 1 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 1
execute @s ~ ~ ~ detect ~ ~ ~ concrete 2 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 2
execute @s ~ ~ ~ detect ~ ~ ~ concrete 3 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 3
execute @s ~ ~ ~ detect ~ ~ ~ concrete 4 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 4
execute @s ~ ~ ~ detect ~ ~ ~ concrete 5 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 5
execute @s ~ ~ ~ detect ~ ~ ~ concrete 6 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 6
execute @s ~ ~ ~ detect ~ ~ ~ concrete 7 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 7
execute @s ~ ~ ~ detect ~ ~ ~ concrete 8 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 8
execute @s ~ ~ ~ detect ~ ~ ~ concrete 9 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 9
execute @s ~ ~ ~ detect ~ ~ ~ concrete 10 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 10
execute @s ~ ~ ~ detect ~ ~ ~ concrete 11 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 11
execute @s ~ ~ ~ detect ~ ~ ~ concrete 12 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 12
execute @s ~ ~ ~ detect ~ ~ ~ concrete 13 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 13
execute @s ~ ~ ~ detect ~ ~ ~ concrete 14 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 14
execute @s ~ ~ ~ detect ~ ~ ~ concrete 15 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 concrete 15

execute @s ~ ~ ~ detect ~ ~ ~ wool 0 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 wool 0
execute @s ~ ~ ~ detect ~ ~ ~ wool 1 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 wool 1
execute @s ~ ~ ~ detect ~ ~ ~ wool 2 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 wool 2
execute @s ~ ~ ~ detect ~ ~ ~ wool 3 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 wool 3
execute @s ~ ~ ~ detect ~ ~ ~ wool 4 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 wool 4
execute @s ~ ~ ~ detect ~ ~ ~ wool 5 execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 wool 5

execute @s ~ ~ ~ detect ~ ~ ~ heavy_weighted_pressure_plate * execute @e[tag=conPlacer] ~ ~ ~ setblock ~ ~-1 ~ yellow_glazed_terracotta 2
execute @s ~ ~ ~ detect ~ ~ ~ heavy_weighted_pressure_plate * execute @e[tag=conPlacer] ~ ~ ~ fill ~ ~ ~ ~1 ~1 ~1 air
execute @s ~ ~ ~ detect ~ ~ ~ heavy_weighted_pressure_plate * execute @e[tag=conPlacer] ~ ~ ~ summon armor_stand ~0.5 ~ ~0.5 {Tags:["plate"],Marker:1,Invisible:1,NoGravity:1}

execute @s ~ ~ ~ detect ~ ~ ~ command_block * clone ~ ~ ~ ~ ~ ~ -105 7 -40
execute @s ~ ~ ~ detect ~ ~ ~ chain_command_block * clone ~ ~ ~ ~ ~ ~ -105 7 -40
execute @s ~ ~ ~ detect ~ ~ ~ repeating_command_block * clone ~ ~ ~ ~ ~ ~ -105 7 -40
execute @s ~ ~ ~ detect ~ ~ ~ command_block * execute @e[tag=conPlacer] ~ ~ ~ clone -105 7 -40 -105 7 -40 ~ ~ ~
execute @s ~ ~ ~ detect ~ ~ ~ command_block * execute @e[tag=conPlacer] ~ ~ ~ clone -105 7 -40 -105 7 -40 ~1 ~1 ~1
execute @s ~ ~ ~ detect ~ ~ ~ chain_command_block * execute @e[tag=conPlacer] ~ ~ ~ clone -105 7 -40 -105 7 -40 ~ ~ ~
execute @s ~ ~ ~ detect ~ ~ ~ chain_command_block * execute @e[tag=conPlacer] ~ ~ ~ clone -105 7 -40 -105 7 -40 ~1 ~1 ~1
execute @s ~ ~ ~ detect ~ ~ ~ repeating_command_block * execute @e[tag=conPlacer] ~ ~ ~ clone -105 7 -40 -105 7 -40 ~ ~ ~
execute @s ~ ~ ~ detect ~ ~ ~ repeating_command_block * execute @e[tag=conPlacer] ~ ~ ~ clone -105 7 -40 -105 7 -40 ~1 ~1 ~1


execute @s ~ ~ ~ detect ~ 4 ~ concrete 5 tp @e[tag=conPlacer] ~30 ~ ~-2
execute @s ~ ~ ~ detect ~ 4 ~ concrete 5 tp @s ~15 ~ ~-1
execute @s ~ ~ ~ detect ~ 4 ~ concrete 13 scoreboard players add @s convert 1
execute @s ~ ~ ~ detect ~ 4 ~ concrete 13 tp @e[tag=conPlacer] ~30 ~2 ~28
execute @s ~ ~ ~ detect ~ 4 ~ concrete 13 tp @s ~15 ~1 ~14
execute @s[score_convert_min=15] ~ ~ ~ kill @e[tag=conPlacer]
kill @s[score_convert_min=15] 

execute @s ~ ~ ~ detect ~ 4 ~ stone * function mctsts:error/convert