Keep Equipment

Keep Equipment

18.9k Downloads

This is a very simple mod, with code largely adapted from EnderIO's Soulbound enchantment handler (permitted by license), intended to make exploring in remote and dangerous areas not quite as punishing. This mod essentially creates a more specific/configurable version of the keepInventory gamerule. By default, weapons (swords, arrows, bows, TechGuns guns), armor, and baubles will stay in your inventory when you die. You can turn off any of those three main parts in the config, or specify other items that should persist through death.

Why? Well, think of something like Dark Souls, which is often said to be "hard but fair". When you die, you drop all your currency/unused experience, potentially losing it for good; you don't lose all of your weapons and armor and get sent back to level 1, because that would be ridiculous. There's a significant penalty for dying, and you need to go on a corpse run to retrieve it, but the death penalty doesn't take away your ability to get back to where you were. This mod aims to create a similar system.

Known issues:

- TechGuns ammo is not kept through death, largely because TechGuns is closed source with no API and I'm a scrub coder. Not a huge deal, but something to be aware of.

- Baubles are placed in your inventory upon death, rather than being placed back in the bauble slots. Not generally a huge deal, but in the extremely specific case that your inventory is completely full of stuff you've configged to not drop on death, and you're wearing baubles, some of it's still gonna get dropped. (I don't know why you'd ever end up in that situation, though.)