• • 6/1/25 1:05 pm • 2 logs
- 4.1k views • 1 today
- save_alt 174 downloads
- Compatibility
- Minecraft 1.15
- to version
- Minecraft 1.21
- Changes include
- Functions
27
It's been a while, but I'm back with a new datapack. This datapack gives players the ability to store their XP into XP "capsules". These capsules can store a variety of point amounts, including 100, 50, 20, 10, 5, and 1. There are several features of XP capsules that I will describe below.
Features of XP Capsules
XP capsules can be used to store a player's XP point amount (not experience level) into item form. These items can then be transferred as any item could be, such as through hoppers and droppers.
Once XP has been stored into capsules, it can also be extracted. To do this, all that needs to be done is to use/throw the XP capsule. This will give whatever XP that was inside that capsule to the player who used it. However, XP capsules are also extracted when they are dispensed from a dispenser.
How to Store XP
In order to store XP, run the command below.
This will bring up a prompt in chat that shows how many XP points you have as well as how much you can store. From here, select how much XP you would like to store. You can also click "All XP", which will store all XP you have into as few capsules as possible.
You can also store a specific amount of XP. For example, if you want to store exactly 42 XP points, you would run the following command:
Of course, you can change how many XP points are extracted by changing -42 to whatever amount you wish to remove. No XP points will be removed if you set a value greater than 0. Instead, you will see the prompt come up to store XP, so be aware of that.
How to Download the Datapack
Visit the GitHub link provided. On that page, there should be a little "Download" button on the right side of the page.
If you want to download an older version, go to this GitHub page and select the version you want. There will be a zip datapack file, which you can open and click download from within the file.
Known Bugs
* Experience points don't track correctly after spending experience levels to enchant or use an anvil, resulting in loss of experience points (due to MC-118008).
If find a bug or you have any questions please let me know in the comments.
Features of XP Capsules
XP capsules can be used to store a player's XP point amount (not experience level) into item form. These items can then be transferred as any item could be, such as through hoppers and droppers.
Once XP has been stored into capsules, it can also be extracted. To do this, all that needs to be done is to use/throw the XP capsule. This will give whatever XP that was inside that capsule to the player who used it. However, XP capsules are also extracted when they are dispensed from a dispenser.
How to Store XP
In order to store XP, run the command below.
| /trigger StoreXP |
This will bring up a prompt in chat that shows how many XP points you have as well as how much you can store. From here, select how much XP you would like to store. You can also click "All XP", which will store all XP you have into as few capsules as possible.
You can also store a specific amount of XP. For example, if you want to store exactly 42 XP points, you would run the following command:
| /trigger StoreXP set -42 |
Of course, you can change how many XP points are extracted by changing -42 to whatever amount you wish to remove. No XP points will be removed if you set a value greater than 0. Instead, you will see the prompt come up to store XP, so be aware of that.
How to Download the Datapack
Visit the GitHub link provided. On that page, there should be a little "Download" button on the right side of the page.
If you want to download an older version, go to this GitHub page and select the version you want. There will be a zip datapack file, which you can open and click download from within the file.
Known Bugs
* Experience points don't track correctly after spending experience levels to enchant or use an anvil, resulting in loss of experience points (due to MC-118008).
If find a bug or you have any questions please let me know in the comments.
2 Update Logs
Update #2 : by ClassyElm 06/01/2025 1:05:48 pmJune 1, 2025 @ 5:05 pm UTC
Added v1.4 which fixes support for Minecraft version 1.21.5
LOAD MORE LOGS
More like this
4843200
119


Have something to say?