Hardcore Survival Respawn Datapack
Author: BriskBand

What this datapack does:
- It watches each player's death counter.
- When a player dies in hardcore, it marks that player for automatic recovery.
- As soon as the player is moved into spectator mode, the datapack switches them back to survival mode.
- It enables immediate respawn automatically with the gamerule `doImmediateRespawn true`.
- It does not display any respawn message in chat.

How it works:
- `bbDeaths` stores the vanilla `deathCount` value.
- `bbSeenDeaths` stores the last processed death count for each player.
- If those values become different, the datapack knows the player has just died.
- The player receives the `bb_hc_dead` tag.
- On the next tick, if that tagged player is in spectator mode, the datapack restores survival mode and removes the tag.

Important note:
This is a vanilla datapack solution. Depending on how the hardcore world or server behaves, the switch back to survival can happen immediately after death or immediately after spectator mode is entered.
