scoreboard objectives add KyuDummy5 dummy
#execute unless entity @e[name=DayQ,type=armor_stand] run tellraw @a ["",{"text":"Super UHC is being added, please wait a few moments...","color":"gold"}]
execute unless score #SUHCInstall KyuDummy5 matches 1 run tellraw @a ["",{"text":"Super UHC is being added, please wait a few moments...","color":"gold"}]

team add P
gamerule doFireTick false
gamerule commandBlockOutput false
scoreboard objectives add TPKyu dummy
team add P
forceload add 999968 999968 1000032 1000032
#execute as @s if entity @e[name=DayQ,type=armor_stand] run tellraw @s ["",{"text":"Super UHC is already active. See 'function suhchelp' for help on commands.","color":"yellow"}]
#execute unless entity @e[name=DayQ,type=armor_stand] run tellraw @a ["",{"text":"Super UHC has been added!","color":"gold"}]
#execute unless entity @e[name=DayQ,type=armor_stand] run summon minecraft:armor_stand 999968 99 999968 {CustomName:"\"ObbySpawn\"",Invulnerable:1,NoGravity:1}

execute if score #SUHCInstall KyuDummy5 matches 1 run tellraw @s ["",{"text":"SUHC is already active. See 'function suhchelp' for help on commands.","color":"yellow"}]
execute unless score #SUHCInstall KyuDummy5 matches 1 run summon minecraft:armor_stand 999968 99 999968 {CustomName:"\"ObbySpawn\"",Invulnerable:1,NoGravity:1}

execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~ ~1 minecraft:structure_block[mode=load]{name:"suhc:obbypart1final",posX:1,posZ:1,posY:20,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~32 ~1 minecraft:structure_block[mode=load]{name:"suhc:obbypart2final",posX:1,posZ:1,posY:20,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~64 ~1 minecraft:structure_block[mode=load]{name:"suhc:obbypart3final",posX:1,posZ:1,posY:20,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~96 ~1 minecraft:structure_block[mode=load]{name:"suhc:obbypart4final",posX:1,posZ:1,posY:20,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~-1 ~1 redstone_block
execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~31 ~1 redstone_block
execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~63 ~1 redstone_block
execute at @e[name=ObbySpawn,limit=1] run setblock ~1 ~95 ~1 redstone_block
execute at @e[name=ObbySpawn,limit=1] run fill ~1 255 ~1 ~1 80 ~1 air replace redstone_block
execute at @e[name=ObbySpawn,limit=1] run fill ~1 255 ~1 ~1 80 ~1 air replace structure_block
forceload remove 999968 999968 1000032 1000032
forceload add 999968 999968 1000001 999989
kill @e[name=ObbySpawn]

execute unless score #SUHCInstall KyuDummy5 matches 1 run tellraw @a ["",{"text":"Super UHC has been added!","color":"gold"}]

execute unless score #SUHCInstall KyuDummy5 matches 1 run function suhcinfo



scoreboard players set #SUHCInstall KyuDummy5 1