A simple datapack that makes lightning spawn upon a player's death! You can enable/disable it during runtime.
Commands:
/function lightningdeath:disableto disable the datapack/function lightningdeath:enableto enable the datapack/function lightningdeath:helpto show this list
