Minecraft Data Packs / Simple

Full XP Drop On Death!

  • check_circle Functions
  • 8,265 views, 24 today
  • 1,362 downloads, 2 today
  • 30
  • 23
  • 17
Bertiecrafter avatar Bertiecrafter
Level 61 : High Grandmaster Cyborg
336

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! : 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.

2
01/06/2021 9:11 am
Level 1 : New Crafter
RAJ_24
RAJ_24 avatar
Bro can we use them with graves datapack?
2
01/06/2021 1:04 pm
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter 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 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 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter 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 19 : Journeyman Artist
WolveReigner781
WolveReigner781 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 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter 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 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)
1
04/26/2020 2:25 pmhistory
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
1.15.2 "Paper"? Is that a plugin server? It might somehow influence the vanilla commands. Try running a vanilla client or removing any plugins that spawn things. Since the XP Orbs do show up and you get a chat message on /reload, the datapack should be working fine.
2
04/25/2020 6:19 pm
Level 1 : New Miner
FeliPXKillerBR
FeliPXKillerBR avatar
Hey man, thank you! This datapack is amazing and useful (even if it's simple).
2
04/02/2020 7:43 pm
Level 1 : New Miner
Mateoh21
Mateoh21 avatar
Hello, I have a problem with the data package: when I die or my friend dies, it is as if it was not activated, but I put / reload and everything also appears in the green list, I have 30 levels and I die I have a level, I do not know what is happening but it has so much potential.
If you could help me, I would really appreciate it.
2
04/03/2020 3:34 am
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Thanks for telling me. Somebody over at Mojang is to blame for this hahaha (check changelog).

It should be all fixed now.
2
03/16/2020 8:20 pm
Level 1 : New Miner
User2944252G
User2944252G avatar
Can you make this work with keep inventory on? So you lose all XP but no inventory items.
2
03/17/2020 1:59 amhistory
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
This datapack now takes keep inventory into account!

Original comment
I did not think about keep inventory, thanks for commenting. In the next update I'll be sure to check the gamerule before dropping xp. Maybe I'll add an option to lose xp with keepInventory on.

For now, until the next update, dieing in a world with keep inventory causes xp duplication
2
03/19/2020 2:12 pm
Level 1 : New Miner
User2944252G
User2944252G avatar
I've been looking for a way to have xp drop but inventory stay on death for months on my realm and I'm not good enough with command blocks to do it so I'll be following this closely lol. Thanks for your work (:
2
04/03/2020 3:34 am
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Feature is added, but not enabled by default! Check the descripton on how to customize the behaviour of the datapack.
3
03/16/2020 4:28 amhistory
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Thank you Noatry, Luracasmus, Swayminin, pettyGamingHD, User2944849G, Unconventional10, Diamond Distributor, RySonic, _FallenWarrior_, SuperJackPL, Matti2405, PMC, RoRayzip, Tigerfury26, FeliPXKillerBR, Tschipo, CorporalKeith, EsFredderick, arielexx, wawadanon, KennethCoxUK, Wolvereigner781, Foxx2020, monstruo1o, kyleong, RAJ_24, amiplin and chofo70 for the diamonds!
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome