# One-time setup/upgrade for respawn safety objectives (safe to run on existing worlds)

scoreboard objectives add bc_time_since_death minecraft.custom:minecraft.time_since_death
scoreboard objectives add bc_respawn_pending dummy

# Ensure a sane default
scoreboard players set @a bc_respawn_pending 0

data modify storage bordercraft:state respawn_init set value 1b
