Disabling spawn invincibility?

I was wondering if anyone knows a method for disabling the invincibility frames that players get after spawning or respawning. Ideally a data pack, or fabric mod.
Was this page helpful?