Minecraft Data Packs / Simple

Full XP Drop On Death!

  • check_circle Functions
  • 15,369 views, 4 today
  • 2,039 downloads, 0 today
  • 40
  • 32
  • 20
Bertiecrafter's Avatar Bertiecrafter
Retired Moderator
Level 70 : Legendary Engineer
772

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
CompatibilityMinecraft 1.15
Tags

1 Update Logs

CRITICAL BUGFIX (sorry!) + Keep Inventory Options! : by Bertiecrafter 04/03/2020 3:27:12 amApr 3rd, 2020

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!

Create an account or sign in to comment.

1
03/28/2023 4:54 pm
Level 59 : Grandmaster Modder
LGSC team
LGSC team's Avatar
1.19 support?
1
03/14/2022 2:10 pm
Level 40 : Master Princess
pink_pariah
pink_pariah's Avatar
Is there a way to configure it so you keep like 75% instead of all of it?
1
03/14/2022 2:12 pm
Level 40 : Master Princess
pink_pariah
pink_pariah's Avatar
oh I just realized this was last updated a long time ago
2
01/06/2021 9:11 am
Level 1 : New Crafter
RAJ_24
RAJ_24's Avatar
Bro can we use them with graves datapack?
2
01/06/2021 1:04 pm
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
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
10/01/2020 11:32 pmhistory
Level 1 : New Miner
iArtzy
iArtzy's Avatar
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
1
10/02/2020 1:41 pm
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
Thanks for the kind words!
And isn't that part of the feeling of satisfaction and relief when you find your XP again? :P
2
08/25/2020 8:54 pm
Level 5 : Apprentice Architect
IllageIdiot
IllageIdiot's Avatar
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.
1
08/26/2020 9:44 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
Hmm, probably not. But it's a super lightweight data pack, so I'd be surprised if it's broken in 1.16.
1
04/26/2020 1:59 pm
Level 1 : New Explorer
DMan16
DMan16's Avatar
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)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome