forceload add 999 999

fill 999 -39 999 1001 -40 1001 air
#Air structure
setblock 999 -40 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 -40 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 -40 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 999 -40 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 -40 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 -40 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 999 -40 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 -40 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 -40 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
#Kill all entities in the map area
execute positioned 1022 -11 1024 run kill @e[type=!minecraft:player,distance=..250]

#Redstone blocks
function subchronos:game/starting/redstone_blocks/9

fill 999 9 999 1001 9 1001 air

#top zone
setblock 999 8 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 8 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 8 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 999 8 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 8 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 8 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 999 8 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 8 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 8 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
#Redstone blocks
function subchronos:game/starting/redstone_blocks2/9


fill 1001 40 1001 999 40 999 air

#top zone
setblock 999 39 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 39 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 39 999 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:-47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 999 39 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 39 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 39 1000 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:0,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 999 39 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:-47,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1000 39 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:0,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
setblock 1001 39 1001 minecraft:structure_block[mode=load]{name:"subchronos:air",posX:47,posY:0,posZ:47,sizeX:48,sizeY:48,sizeZ:48,mode:"LOAD",ignoreEntities:0b,showboundingbox:0b}
#Redstone blocks
function subchronos:game/starting/redstone_blocks3/9