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

execute if entity @a[tag=inround] run particle minecraft:happy_villager 8 6 14 6 6 6 0.01 650 normal
setblock 8 0 8 minecraft:structure_block
data modify block 8 0 8 mode set value "LOAD"
data modify block 8 0 8 name set value "minecraft:duo"
data modify block 8 0 8 posX set value -14
data modify block 8 0 8 posY set value 3
data modify block 8 0 8 posZ set value -10
setblock 9 0 8 minecraft:redstone_block
setblock 9 0 8 minecraft:stone
execute at @a run playsound minecraft:block.note_block.bell master @a[tag=inround] ~ ~ ~ 10 1 1
team join ingame @a[tag=inround]
clear @a[tag=inround]
tp @a[tag=inround] -15.5 6.00 8.5 270 2
scoreboard players add @a[tag=inround] score 1
bossbar set minecraft:time visible false
title @a[tag=ingame] times 0 30 10
title @a[tag=ingame] subtitle [{"selector":"@s","color":"yellow"},{"text":" Mirrored The Build!"}]
title @a[tag=ingame] title {"text":"Congratulations!","color":"green"}
scoreboard players add @a[tag=sep,scores={id=3}] wins 1
scoreboard players set @a id 0
tag @a[tag=inround] remove sep
tag @a[tag=inround] remove inround
bossbar set minecraft:time style progress
bossbar set minecraft:time max 10
bossbar set minecraft:time value 10
bossbar set time name [{"text":"View Time Remaining: "},{"text":"10 seconds","color":"red"}]
function main:clearschedule
function main:duoportalstart