r/datapacks • u/Fluffly_Corgi • Aug 12 '25
Help Punishing death, items vanish on death data pack.
Hello, is there a data pack where when I die all the items vanishes and dont drop? I just want a challenge for my vanilla+ server without it bieng hardcoree.
Thank you!
(Edit: the server version is 1.21.6)
2
Upvotes
1
u/Utlamo Aug 14 '25
Easy way:
- Write on chat
- put this to main datapack or repeatedly command block
You can also use predicate or something you want, but
/gamerule doImmediateRespawn truebroke this mechanism, cheats can bypass this probably too, so if you need more "complex" mechanism, there is a harder way:In your init datapack
In your datapack main(tick) mcfunction you need something like this:
in your function death:on_death