I am trying to figure out how to make a mod for a dedicated server (Linux if it matters). Specifically one that allows players to keep their inventory when they die. I couldn’t find an option in the game configs so I’m guessing it’s not possible without a mod. I suspect it would have to do something like remove the inventory from your most recent dead body and put it back into your newly spawned body. But I have no idea how it works so that could be way off.
I’m a programmer but clearly I’m missing something somewhere. I’ve read some guides, watched tutorials and read docs and just don’t see any way to do what I’m trying to do. Everyone seems to be just copying existing assets and clicking things in the interface to change their values or whatever. I’m guessing what I want to do has to be coded somehow but I’m not sure how to go about doing that. Should it even be possible to make it keep inv on death? Can someone please point me in the right direction?