Need help in creating a datapack similar to Semi-Hardcore
I want to create a datapack in which if you die, you get banned for say 30 minutes. But when you join back in, you gain a random negative potion effect. which usually lasts 1 hour. And if you died to a player, that negative potion effect is permanent until you kill a player.
To do this, I wanted to create two advancements. One of them detects when a player dies to another player and and then calls a function). Another one detects when a player dies (specifically not to another player) and then calls a function.
But I am unable to create an advacement that detects when a player dies a general death.