# execute if score .teleport hub matches 1 run function main:hub/objects/text {"number":5,"color":"green"}
# execute if score .teleport hub matches 21 run function main:hub/objects/text {"number":4,"color":"green"}
# execute if score .teleport hub matches 41 run function main:hub/objects/text {"number":3,"color":"yellow"}
# execute if score .teleport hub matches 61 run function main:hub/objects/text {"number":2,"color":"gold"}
# execute if score .teleport hub matches 81 run function main:hub/objects/text {"number":1,"color":"red"}
# execute if score .teleport hub matches 100 run function main:hub/objects/text {"number":"Get Ready!","color":"aqua"}
execute if score .teleport hub matches 1.. at @a run particle minecraft:trial_spawner_detection_ominous ~ ~1 ~ 0.5 2 0.5 0 10
execute if score .teleport hub matches 1 run function main:hub/objects/teleport/teleport_1
execute if score .teleport hub matches 1.. run tp @s 75 -57 9 -90 0
# execute unless entity @e[type=item_display,tag=aj.portal.root] positioned 0 0 0 rotated 90 ~ run function animated_java:portal/summon {args:{}}
# execute as @e[type=item_display,tag=aj.portal.root] run function animated_java:portal/animations/start/resume
execute if score .teleport hub matches 20.. run function main:game/start/start