Data Packs Simple

Full XP Drop On Death!

  • 17.8k views 2 today
  • save_alt 2.1k downloads
Compatibility
Minecraft 1.15
Changes include
  • Functions
  • 41
  • 33
  • 20
Bertiecrafter
Retired Moderator
Lvl 72Legendary System
829

This datapack causes ALL of a player's experience to be dropped if the player dies


Losing most of your experience levels when you die, just sucks. This datapack solves that problem :D

Customizing behaviour

In order to change the behaviour, unzip the datapack into into a "Full XP Drop" folder. Check that the data folder is two levels below the datapacks folder or in other words, make sure this path exists:
.minecraft/saves/<your world>/datapacks/Full XP Drop/data

Then inside data/bertiecrafter/functions/fxpd/options.mcfunction, you'll find a couple options that you can set. Make sure you run /reload after you modify the file.
  • Drop XP with Keep Inventory: If true, full experience will drop if you die with keep inventory on. The default is false, meaning that you'll keep experience levels if you die with keep inventory on. This option is not used when keep inventory is off.


Notes:
  • Only full levels will be dropped. You'll lose any progress towards the next level.
  • The xp orbs despawn after 5 minutes, just like items.



Install Instructions
This is a datapack, it can easily be used in any world or server without any difficulties.
Simply drop the downloaded zip file in the "datapacks" folder of your world save (<world>/datapacks).
Then open your world and do
/reload

In case the datapack doesn't automatically get enabled, run:
/datapack enable "file/[​datapack folder name].zip"

I encountered a bug! What do I do now?

I test all my creations, but bugs happen no matter how long you test something. Whenever someone experiences a bug, I do my best to fix the issue. You can help me by providing any useful information. You can never give me enough information, but please send it in a DM instead of placing it in the comments. You can still place a one-liner in the comments stating the issue to make the community aware, but that alone isn't enough to help me fix the issue.
  • Checklist: Are you using the right version? Did you do /reload after dropping the datapack in? After /reload, does the datapack show up green in /datapack list?
  • What is the issue? Does the datapack not seem to be working at all or is there a specific feature you are having issues with?
  • What happened? Please give me all the steps needed to reproduce the issue. The faster I can experience it, the faster I can solve it.
  • What did you expect to happen instead? This helps me understand your point of view and determine if the issue described is actually the issue I need to fix. The bug you are experiencing could just be a side effect of something else that doesn't behave as expected.

Full XP Drop On Death! Minecraft Data Pack
Full XP Drop On Death! Minecraft Data Pack

1 Update Logs

CRITICAL BUGFIX (sorry!) + Keep Inventory Options! : by Bertiecrafter 04/03/2020 3:27:12 amApril 3, 2020 @ 7:27 am UTC

So.... Someone over at Mojang decided it would be a good idea to run the datapack before it's fully loaded in -_-

One bugfix later, players that already have XP levels upon loading the datapack will be able to collect them again when they die. Previously the levels would just disappear.

And the datapack now takes keep inventory into account. No more xp duplication with keep inventory on.
Check the description for instructions on how to customize this behaviour!

More like this

  Have something to say?

LGSC team
03/28/2023 4:54 pm
Level 68 : High Grandmaster Modder
1.19 support?
1
pink_pariah
03/14/2022 2:10 pm
Level 44 : Master Princess
Is there a way to configure it so you keep like 75% instead of all of it?
1
pink_pariah
03/14/2022 2:12 pm
Level 44 : Master Princess
oh I just realized this was last updated a long time ago
1
RAJ_24
01/06/2021 9:11 am
Level 1 : New Crafter
Bro can we use them with graves datapack?
2
Bertiecrafter
01/06/2021 1:04 pm
Level 72 : Legendary System
I have no clue, why don't you give it a go and tell me how it went? XD

The data packs I write are made to be able to "work" together with others. But when two data packs have conflicting areas of effect, they might still fight and give unexpected results. Let me know! :D
2
iArtzy
10/01/2020 11:32 pm
Level 1 : New Miner
history
I can in fact confirm that this is fully functional in mc version 1.16.3. A suggestion (and I might add this myself) is making it where you don't need to collect EVERY orb to get to ur level. I died with 97 and well you get the point. Instead, You need only collect 1 XP orb, and then it will use the number of ur xp detected when u died to instantly give you the levels that were detected. Aside from that, amazing datapack. You need more recognition my guy
2
Bertiecrafter
10/02/2020 1:41 pm
Level 72 : Legendary System
Thanks for the kind words!
And isn't that part of the feeling of satisfaction and relief when you find your XP again? :P
1
IllageIdiot
08/25/2020 8:54 pm
Level 5 : Apprentice Architect
Are you going to make a 1.16 version of this, or do you know if it might already work? This is a concept that really needs to be in-game by the way.
2
Bertiecrafter
08/26/2020 9:44 am
Level 72 : Legendary System
Hmm, probably not. But it's a super lightweight data pack, so I'd be surprised if it's broken in 1.16.
1
DMan16
04/26/2020 1:59 pm
Level 1 : New Explorer
Hey, I really like the concept of this datapack, but when I tried it on my (fresh new 1.15.2 Paper) server - it didn't work.
I do see the dropped orbs when I go back to the death place, but when I get it - nothing. Still 0 XP.
I tried doing this with different lvls of XP, tried manually running the load script, I even tried unzipping the folder - still nothing.
Any idea how to fix this pls??? I really want this datapack to work!

P.S: tried with both regular non-op Survival non-Admin account and with an Admin account (still non-op and Survival)
1

Welcome