Logicon
Terrarian
So I decided I was fed up with the insane amount of time it takes to manage your inventory every time you die on a medium-core character, especially when playing with multiple people. Someone dies and you vacuum up all their stuff, then you gotta figure out who has what and so on. This mod is something I've made that we've been using for a little while which causes a gold tombstone to spawn right where you die. You can respawn, find the tombstone and right click it and you'll immediately have your old equipment exactly where it used to be in the action bar/inventory, your armor, accessories, social, dyes, equipment will also be re-equipped exactly how you had it before you died. No more spending 10 minutes putting everything back to the way it was .
I'm calling this mod released, but as of right now there are some possible edge cases which may not be covered as I have not run into them myself. This mod is working exactly how I want it to and I don't really feel like continuing to work on it. But I will link the github source so all are welcome to make improvements if they like (Would be nice for a credit though).
Here's how it works:
I've been playing on a server with this mod and 5 other people for about a week now and no one has permanently lost their inventories through these wierd edge cases but it's possible, so look out for these issues:
I realize that there might be more "what if's" than people might be comfortable with trying, these edge cases have yet to actually happen in the server I've been playing on for a while now but I know they do exist. I don't have any motivation to actually fix these since it's working enough for me at the moment. I would recommend backing up characters regularly if you're afraid to permanently lose your stuff, and if you're interested and willing please take a look at the source and make any improvements you see fit. This mod has drastically lowered the burden of time it takes to reorganize your inventory after dying during a boss fight, especially with multiple players.
Download link: Version 2
Github Source
UPDATE: exuvo has forked my original project and improved upon it immensely, he has fixed a lot of the edge cases with the mod and has it fallback to default behaviour if he can't spawn the tombstone properly. I recommend taking his version hosted here: exuvo/TModTombstone
If you have any questions about it I'm Logicon on the tModLoader Discord
I'm calling this mod released, but as of right now there are some possible edge cases which may not be covered as I have not run into them myself. This mod is working exactly how I want it to and I don't really feel like continuing to work on it. But I will link the github source so all are welcome to make improvements if they like (Would be nice for a credit though).
Here's how it works:
- On death it will place a golden tombstone right at the position you died if there's space. If there's no space it will destroy tiles around it enough to make space
- If you die in mid air it will create 2 blocks to put the tombstone on
- Only the player who died can click on their tombstone to get their stuff back.
- IMPORTANT: The tombstone inventories are stored clientside at the moment and DO NOT persist if you close and reopen the game. They DO NOT persist if you leave and rejoin the server. The inventories at that point would be lost forever.
- Another thing to note here is that you should not have this mod enabled if you're playing a soft-core character as this mod overwrites the death logic and will cause you to lose your items as if you were a medium-core character.
I've been playing on a server with this mod and 5 other people for about a week now and no one has permanently lost their inventories through these wierd edge cases but it's possible, so look out for these issues:
- If you die on top of a chest with items in it. The chest will be destroyed. While it looks like the contents are also destroyed, if you put a chest back down exactly where the old one was then it actually returns the inventory to that chest
- The tombstone that contains the player inventory can be destroyed, if it is before the player gets back to it, you can still get your inventory back if you place the tombstone in the exact position it was in before it was taken down
- If 2 players die on the exact same spot, there is an issue where one of the players may lose their inventories. This is something that could be improved upon
- And finally, I haven't at all tested what happens if you die on the far right/left/ceiling of the map, but I can only assume it won't be able to place the tombstone and thus you lose your inventory.
I realize that there might be more "what if's" than people might be comfortable with trying, these edge cases have yet to actually happen in the server I've been playing on for a while now but I know they do exist. I don't have any motivation to actually fix these since it's working enough for me at the moment. I would recommend backing up characters regularly if you're afraid to permanently lose your stuff, and if you're interested and willing please take a look at the source and make any improvements you see fit. This mod has drastically lowered the burden of time it takes to reorganize your inventory after dying during a boss fight, especially with multiple players.
Download link: Version 2
Github Source
UPDATE: exuvo has forked my original project and improved upon it immensely, he has fixed a lot of the edge cases with the mod and has it fallback to default behaviour if he can't spawn the tombstone properly. I recommend taking his version hosted here: exuvo/TModTombstone
If you have any questions about it I'm Logicon on the tModLoader Discord
Last edited: