Minecraft Data Packs / Quality of Life

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

  • check_circle Advancements
  • check_circle Functions
  • 16,091 views, 12 today
  • 2,522 downloads, 0 today
  • 99
  • 77
  • 70
PuckiSilver's Avatar PuckiSilver
Level 59 : Grandmaster uwu
104
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

5 Update Logs

v1.3.2 : by PuckiSilver 01/22/2024 2:47:13 pmJan 22nd

  • fix 'unknown scoreboard objective' typo
  • update drop_on_death to newest version
  • update config names (config will be reset in worlds where the pack was already installed and configured)
LOAD MORE LOGS

Create an account or sign in to comment.

3
01/22/2024 5:58 pm
Level 38 : Artisan Nerd
Azure_Flames
Azure_Flames's Avatar
THANK YOU
1
01/20/2024 4:07 am
Level 1 : New Miner
thevorkman_
thevorkman_'s Avatar
Is there possibiliy to combine it with datapacks that make graves on death?

(for example, VanillaTweaks Graves)



I tested it, and they doesn't work well together. All items from the invertory just go in to the "on-death container", including equipment.
1
01/20/2024 5:41 am
Level 59 : Grandmaster uwu
PuckiSilver
PuckiSilver's Avatar
There is most likely no grave data pack/mod that is compatible because of how this data pack is made
1
12/19/2023 9:47 am
Level 1 : New Miner
socrat0x01
socrat0x01's Avatar
i need to except nethrite block from keeping how i can do this help me
1
12/19/2023 2:10 pmhistory
Level 59 : Grandmaster uwu
PuckiSilver
PuckiSilver's Avatar
If you want players to keep netherite blocks, you can, like explained in the description, simply remove them from the list in the file at /data/ps-keep/tags/items/drop_on_death.json
2
11/22/2023 10:58 am
Level 29 : Expert Nerd
Sul4ur
Sul4ur's Avatar
Can you tell me how you wrote 9490 lines of code in the json files with no problem?
2
11/24/2023 10:54 am
Level 59 : Grandmaster uwu
PuckiSilver
PuckiSilver's Avatar
2
11/24/2023 1:13 pm
Level 29 : Expert Nerd
Sul4ur
Sul4ur's Avatar
Ooooh that's cool.
2
11/17/2023 7:56 pmhistory
Level 38 : Artisan Miner
sandwichentity
sandwichentity's Avatar
I modified this data pack so that players on my server can choose to have keep inventory enabled or disabled, per player. This is for my survival server, as some of my friends want it enabled, as they only enjoy the building aspects of the game.

I was wondering if it would be okay to upload my modified version to Planet Minecraft for anyone else to download, obviously I'm happy to give you full credit for the original data pack and link this page ect.

Thank you,
2
11/18/2023 7:26 am
Level 59 : Grandmaster uwu
PuckiSilver
PuckiSilver's Avatar
Sounds awesome!
Yes, you are free to publish it yourself!
Credit is much appreciated but you don’t even have to, the pack is licensed under the MIT license, so you can pretty much do as you please with it.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome