#built using mc-build (https://mcbuild.dev/)

setblock 8 4 2 minecraft:structure_block
data modify block 8 4 2 mode set value "LOAD"
data modify block 8 4 2 name set value "minecraft:clear"
data modify block 8 4 2 posX set value -5
data modify block 8 4 2 posY set value 2
data modify block 8 4 2 posZ set value -3
kill @e[type=item]
setblock 8 3 2 minecraft:redstone_block
schedule function main:redstone 1s
kill @e[type=item]
setblock 8 16 14 minecraft:structure_block
data modify block 8 16 14 mode set value "LOAD"
data modify block 8 16 14 name set value "minecraft:build31"
data modify block 8 16 14 posX set value -5
data modify block 8 16 14 posY set value 2
data modify block 8 16 14 posZ set value -3
data modify block 8 16 14 mirror set value "LEFT_RIGHT"
setblock 8 17 14 minecraft:redstone_block
schedule function main:redstone 1s
execute as @a[team=build] at @s run summon item ~ ~ ~ {PickupDelay:1,Tags:["tool"],Item:{id:"minecraft:diamond_pickaxe",Count:1b,tag:{Enchantments:[{id:"minecraft:efficiency",lvl:6s},{id:"minecraft:unbreaking",lvl:100s},{id:"minecraft:silk_touch",lvl:100s}]}}}
execute as @a[team=build] at @s run function loot:get_items
execute if score $difficulty ip matches 1 run function main:timerbuildhard/timerstart
execute if score $difficulty ip matches 2 run function main:timerbuildmed/timerstart
execute if score $difficulty ip matches 3 run function main:timerbuildeasy/timerstart