# One-time migration for existing V3 worlds when Items max changes 1674 -> 1675
# due to Golden Dandelion being added as a new eligible item.

execute if score Items/1674 bc_side matches 0.. run scoreboard players set Items/1675 bc_side 0
execute if score Items/1674 bc_side matches 0.. run scoreboard players operation Items/1675 bc_side = Items/1674 bc_side
team join bc_items Items/1675
team leave Items/1674
scoreboard players reset Items/1674 bc_side

data modify storage bordercraft:state migrate_items_1675 set value 1b
