# Expand the world border by 20 blocks (10 expansions)
# Overworld + End expand at the same rate
execute in minecraft:overworld run worldborder add 20
execute in minecraft:the_end run worldborder add 20

# Nether expands 1/8 as fast: every 8 overworld expansions => +1 nether expansion
scoreboard players add NetherAcc bc_nether_accum 10
execute if score NetherAcc bc_nether_accum matches 8.. run function bordercraft:nether_sync

# Update progress scoreboard (global)
scoreboard players add Increases bc_border 10

tellraw @a ["",{"text":"A new structure was discovered!","color":"aqua"},{"text":"  ("},{"text":"+10 expansions","color":"yellow"},{"text":")  ("},{"score":{"name":"Increases","objective":"bc_border"}},{"text":" / "},{"score":{"name":"Max","objective":"bc_border"}},{"text":")","color":"gray"}]
playsound entity.experience_orb.pickup master @a ~ ~ ~ 1000 2