Minecraft Data Packs / Quality of Life

Keep Some Inventory | Don't lose Weapons, Tools and Armor upon Death

  • check_circle Advancements
  • check_circle Functions
  • 19,267 views, 17 today
  • 3,011 downloads, 2 today
  • 113
  • 96
  • 89
PuckiSilver's Avatar PuckiSilver
Level 60 : High Grandmaster uwu
111
Isn't it annoying when you die and your Items are far away and surrounded by danger?

With this data pack no longer, since you keep your fighting equipment like weapons, tools and armor on you when dying!

Personally I don't like playing with the keepInventory true gamerule because it feels cheap to go somewhere dangerous without the risk of losing anything. This data pack aims to give dangerous areas the risk back they deserve while still allowing you to use your best equipment that you spent hours on farming, crafting and enchanting.

Items normally despawn after 5 minutes.
This data pack extends that to 10 minutes for items dropped by dying although this can be changed with the in game config.

The following items are kept when dying:
- Armor, Elytra, Heads, Skulls and Carved Pumpkins
- Tools and Weapons including Trident, Flint and Steal and Fishing Rods
- Clocks, Compasses and Recovery Compasses
- All Golden Apples, Potions and Totems
- Every type of Arrow, all Torches and Firework Rockets
- Ender Pearls and Ender Eyes
- Goat Horns, Spyglasses, all Maps and all Buckets
- All types of Boats, Minecarts, Saddles and Horse Armor
- Written Books and Writable Books (Book and Quill)
- Carrots on a Stick and Warped Fungi on a Stick

The data pack is highly configurable:
You can change what items are kept/dropped by modifying the item tag at /data/ps-keep/tags/items/drop_on_death.json
The config can be changed ingame by any admin by typing /function ps-keep:config


This data pack should be compatible with most other data packs.
If you find any incompatibilities or other bugs, just let me know in a comment below!



Check me out on other platforms:
Keep Some Inventory | Don't lose Weapons, Tools and Armor upon Death Minecraft Data Pack Keep Some Inventory | Don't lose Weapons, Tools and Armor upon Death Minecraft Data Pack
Modrinth Github
CompatibilityMinecraft 1.15
toMinecraft 1.20
Tags

8 Update Logs

v1.4.2 : by PuckiSilver 05/12/2024 6:53:42 amMay 12th

  • Fix all enchanted items getting deleted (vanishing cursed ones will still get deleted)
LOAD MORE LOGS

Create an account or sign in to comment.

SpruceStudios
07/21/2024 9:51 pm
Level 40 : Master Procrastinator
SpruceStudios's Avatar
Hello! Any chance this will be updated to 1.21 / can you let me know what has to be changed so I can do it for my server? No rush btw :) All the best
2
User5160860G
06/18/2024 9:23 am
Level 1 : New Miner
User5160860G's Avatar
is there a way to get this to work with the gravestone mod
1
PuckiSilver
06/18/2024 6:33 pm
Level 60 : High Grandmaster uwu
PuckiSilver's Avatar
No, I haven’t heard of any gravestone mod or data pack that is compatible
1
Juisaderp
06/14/2024 10:56 am
Level 38 : Artisan Nerd
Juisaderp's Avatar
thinking about adding this to a server im launching
any eta on 1.21?
no rush of course though i know people have lives
3
Thirg
06/15/2024 8:36 am
Level 1 : New Miner
Thirg's Avatar
i second this!!
3
PuckiSilver
06/14/2024 6:22 pm
Level 60 : High Grandmaster uwu
PuckiSilver's Avatar
The updating itself won’t take long, I’ll see when I find the time, can’t really give an estimate tho, hope this helps somewhat
4
fukudck
05/30/2024 1:11 pm
Level 1 : New Miner
fukudck's Avatar
When I use this datapack with Weird Crafts Studios - Totem of Keeping - Sculk Expansion . I have a very fun 'feature'. This datapack will not work unless you have a Totem of Keeping in inventory.

Check out this video for a more detailed view: https://youtu.be/soh2_gBKswU
1
PuckiSilver
05/31/2024 5:27 am
Level 60 : High Grandmaster uwu
PuckiSilver's Avatar
1. Sorry, I can’t guarantee support for every other data pack, and probably for (almost) none that do anything with items related to death.

2. Your server seems to be using a lot of plugins (or mods), they might also mess with the data pack(s), breaking things that would normally work

So while it is indeed quite amusing, it’s probably nothing I can or will fix on my end, sorry
2
Nugo
05/13/2024 5:00 am
Level 1 : New Miner
Nugo's Avatar
yes, this is similar to how the system should be, but you did it opposite. weapons and armor is what you should lose. that encourages the player to craft new gear if they lose it, and it gives uses to leftover materials
1
Nugo
05/13/2024 5:03 am
Level 1 : New Miner
Nugo's Avatar
i simply suggest you do a function where you can swap between what is saved, gear (tools, waepons, armor, etc), or every otehr item
1

Welcome