{"id":28718,"date":"2026-06-01T14:31:58","date_gmt":"2026-06-01T11:31:58","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/"},"modified":"2026-06-01T14:31:58","modified_gmt":"2026-06-01T11:31:58","slug":"better-keep-inventory-datapack","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/","title":{"rendered":"Better Keep Inventory datapack"},"content":{"rendered":"<p># What does it do?<br \/>\n&#8211; This datapack allows you to configure which items don&#8217;t drop upon player death and how much is dropped from the rest.<br \/>\n  &#8211; Singular or unstackable items have random chance of dropping based on the same value how much plural items (means more than 1 item in the stack) are dropped.<br \/>\n&#8211; It let you configure how xp behave after death. By default everything is dropped and 50% can be pick up at the place of death which is far more than vanilla and it&#8217;s max 7 levels.<br \/>\n  &#8211; You can give players items with custom data always_drop:1b and never_drop:1b which take priority over general list.<br \/>\n&#8211; Adjustable lifetime for items and xp (before they despawn).<br \/>\n&#8211; Current settings can be seen by regular player by using `\/trigger check_keep_inventory`. It shows on first join by default but can be turned off<\/p>\n<p>Main purpose of this datapack was to create list of items that do not drop for a SMP.<br \/>\nThe datapack I was inspired by (Keep Some Inventory by PuckiSilver), was insufficient, easy to made but hard to use.<br \/>\nSo I made my own. Then I added rest of the features that were nice to have.<\/p>\n<p>## Priority of items settings<br \/>\n1. components:{&#8220;minecraft:custom_data&#8221;:{always_drop:1b}}<br \/>\n    > Example command: `\/give @s minecraft:ender_chest[minecraft:custom_data={always_drop:1b}] 1`<br \/>\n2. components:{&#8220;minecraft:custom_data&#8221;:{never_drop:1b}}<br \/>\n    &#8211; Works like Bedrock keep_on_death tag, unless the item als have curse of vanishing<br \/>\n3. List of items that do not drop.<br \/>\n    &#8211; Default list is inside bki:reset function, you can edit it there with text editor and than run the function or try using bki:settings function in game.<br \/>\n4. The rest is dropped. By default it is everything, but you can adjust drop percentage in the same way as the list above<\/p>\n<p>To adjust the settings change values in file `reset.mcfunction` with text editor or use in game settings with<\/p>\n<p>`\/function bki:settings`<\/p>\n<p>Photo misses adjustable lifetime feature<br \/>\n![Preview of in game settings for the datapack](https:\/\/cdn.modrinth.com\/data\/cached_images\/54125804ae9a6d98e8c47c91c608adce93b72a7d.png)<\/p>\n<p>There will be **no updates** of this datapack unless I will need it myself, but feel free to modify it yourself<br \/>\nFor that I&#8217;m leaving comments so future someone will be able to quickly understand what each part does<\/p>\n<p># Compatability<\/p>\n<p>&#8211; This pack will most likely not work together with grave packs or packs doing anything to items on death.<br \/>\n&#8211; It might work with modded items, but I haven&#8217;t tested it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Control item and XP loss upon death<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_minecraft_slug":"better-keep-inventory-datapack","_minecraft_project_id":"WzVQCdgr","_minecraft_author":"MatHieusz","_minecraft_license":"MIT","_minecraft_downloads":1391,"_minecraft_follows":3,"_minecraft_client_side":"optional","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"better-keep-inventory-datapack.zip","_minecraft_size_bytes":125093,"_minecraft_version_count":4,"_minecraft_updated_at":"2026-05-16T04:14:08.636829Z","_minecraft_date_created":"2025-09-26T22:20:27.496395Z","_minecraft_date_modified":"2026-03-31T18:31:29.687707Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/better-keep-inventory-datapack","_minecraft_icon_attachment_id":0,"_minecraft_imported_at":"2026-06-01T11:31:58+00:00","_minecraft_import_hash":"a8f7e00fd4e54f943c5dfd35afaf8aa7","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[84,88,89],"mod_loader":[86],"minecraft_version":[101,102,62,95,96,154,155,108,37,40,41,73,71,72,74,38,78,79,80,81,82,148,149,150,151,152,153,63,64,65,66,67,68,69,70,75,76,77,83],"class_list":["post-28718","mod","type-mod","status-publish","hentry","mod_category-datapack","mod_category-equipment","mod_category-game-mechanics","mod_loader-datapack","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-pre1","minecraft_version-1-21-pre2","minecraft_version-1-21-pre3","minecraft_version-1-21-pre4","minecraft_version-1-21-rc1","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-2-pre1","minecraft_version-1-21-2-pre2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-24w18a","minecraft_version-24w19a","minecraft_version-24w19b","minecraft_version-24w20a","minecraft_version-24w21a","minecraft_version-24w21b","minecraft_version-24w33a","minecraft_version-24w34a","minecraft_version-24w35a","minecraft_version-24w36a","minecraft_version-24w37a","minecraft_version-24w38a","minecraft_version-24w39a","minecraft_version-24w40a","minecraft_version-24w44a","minecraft_version-24w45a","minecraft_version-24w46a","minecraft_version-26-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Better Keep Inventory datapack - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Better Keep Inventory datapack - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Control item and XP loss upon death\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/better-keep-inventory-datapack\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/better-keep-inventory-datapack\\\/\",\"name\":\"Better Keep Inventory datapack - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"datePublished\":\"2026-06-01T11:31:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/better-keep-inventory-datapack\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/better-keep-inventory-datapack\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/better-keep-inventory-datapack\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Better Keep Inventory datapack\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Better Keep Inventory datapack - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/","og_locale":"en_US","og_type":"article","og_title":"Better Keep Inventory datapack - Minecraft","og_description":"Control item and XP loss upon death","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/","name":"Better Keep Inventory datapack - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"datePublished":"2026-06-01T11:31:58+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/better-keep-inventory-datapack\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Better Keep Inventory datapack"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/28718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=28718"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=28718"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=28718"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=28718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}