Jump to content

Selective Keep On Death


TuckMeIntoBread
 Share

Recommended Posts

Selective Keep On Death

ModDB Page

 

Customize your survival save's difficulty! New mod to allow you to customize what drops (or gets deleted entirely 😱) upon death. Also has various other options relating to rng chance to drop items, and damaging item conditions when you have an unplanned release from this mortal coil. Purely server-side for those playing with friends, to boot.

 

By default, keeps bags, tools, armor, and clothing. This is completely customizable in the settings' .json, and includes a whitelist & blacklist for specific item asset codes to respectively keep or drop. Also allows dropped items to be deleted entirely instead of dropped in the world, if you want that extra bit of challenge.

Items are checked to be kept/dropped in the following order:

Blacklist > Whitelist > AlwaysDiscardedInventoryTypes > KeepEverything > KeepEquippedClothing > KeepEquippedArmor > KeepArmor > KeepClothing > KeepBags > KeepTools

 

Within the config .json, it's possible to change all of the following:

"KeepEverything": Boolean whether or not to keep everything... except for what's on the Blacklist.

"KeepBags": Boolean whether or not to keep bags (Mining Bag, Linen Sack, etc. Anything with a quantitySlots attribute.)

"KeepTools": Boolean whether or not to keep anything that's a tool.

"KeepArmor": Boolean whether or not to keep any armor in the player's inventory.

"KeepClothing": Boolean whether or not to keep any clothing in the player's inventory.

"KeepEquippedArmor": Boolean whether or not to keep any armor the player is currently wearing.

"KeepEquippedClothing": Boolean whether or not to keep any clothing the player is currently wearing.

"DeleteDroppedItems": If set to true, will permanently delete dropped items instead of dropping them into the world at the location of the player's death.

"DamageToolsAmount": Float from 0.0 to 1.0 on how much to damage tools by when the player dies. Tools that have their durability reduced to 0 will be destroyed as normal.

"DamageToolsByRemainingDur": If set to true, will damage tools by a % of their current durability rather than maximum durability.

DamageArmor/Clothing is the same as tools, but for armor and clothing.

"DamageCanDestroyClothing": If true, and a clothing's condition/warmth provided hits 0, it will destroy the article of clothing instead of letting it potentially be repaired.

"RandomDropChancePerItem": Array of inventory types, with floats ranging from 0.0 to 1.0 on the chance per-item for that item to be dropped (or deleted, if DeleteDroppedItems is set to true). The dice are rolled for each item individually; you may keep all your items, you may keep none of them.

"PercentageToRandomlyKeep": Array of inventory types, with floats ranging from 0.0 to 1.0 on what percentage of items to keep. ie; if you had 20 items, and the float was 0.5, you would keep 10 items, no more, no less. This is calculated after RandomDropChancePerItem.

"KeepWhitelist": Item asset codes (supports * wildcard) to always keep, no matter what.

"KeepBlacklist": Same as whitelist, but instead to always drop.

"CheckedInventoryTypes": Array of inventory types to check. By default, contains all the vanilla survival ones.

"AlwaysDiscardedInventoryTypes": Array of inventory types to always drop items from, unless an item is on the whitelist.

 

 

If anything is broken, or you've thought of a combination that isn't possible yet, feel free to @ or DM TuckMeIntoBread#9902 in the official Vintage Story discord server for a quick response.

Edited by TuckMeIntoBread
config descriptions in a code block looked ugly :(
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.