PearlXP
Feb 2019 - Now with 1.13+ support! (tested on Spigot v1.13.2)
This enables enderpearls to store experience, to safeguard XP from deaths and to allow trading XP like physical items.
Features
- Left clicking with an enderpearl in hand deposits up to 16 (configurable) levels worth of experience into the pearl, making it look like an Eye of Ender
- Left clicking with an imbued Eye restores the experience and returns a plain pearl
- Experience lost/gained still takes level scaling into account (from wiki's values)
- For example, with the cap set at 10, up to 160 xp can be stored
- If at level 16, storing 160xp (the xp to get from level 0->10) will take you to 11.4
- If at level 10, storing 160xp will take you to 0
- If at level 20, restoring 160xp will take you to 22.4
- Right clicking imbued Eyes tells you how much XP is in them and won't throw them, as that'd waste the XP
- Imbued pearls (Eyes of Ender with a custom name + lore) can be dropped on the ground and left in chests, including through server restarts
- /pearlxp <level> imbues the held pearl with a specific number of levels
UltiByte made a video of v1.3.4! (missing the new custom imbued pearl name/description)
Configuration
- maxLevel - The max experience that can be stored in a single pearl (so maxlevel 16 would be the experience from level 0->16, or 352xp)
- emptyMaterial - The item material to use for the "empty pearl".
- imbuedMaterial - The item material to use for the imbued pearl, can be the same as the empty pearl
- expReturnRate - A multiplier for how much experience to return to the player on restore. 0.85 would impose a 15% "penalty" or "tax"
- alwaysBlockRightClick - Default off, entirely disables enderpearl/eye teleportation (not just on enchanted stuff)
- Customizable Messages
Permissions
- pearlxp.imbue - Default true
- pearlxp.restore - Default true
The source code is in the jar.
PearlXP/PearlXP has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
You indicate that this works with 1.5.1, but we found an incompatibility with ChestShop 3.5. When we attempted to sell imbued pearls in rapid succession, Chestshop threw an error. Can you possibly look into this?
CB: #2771 1.5.2-R0.1 Vault: 1.2.25 ChestShop: 3.5 PearlXP: 1.4.1
Here's the stack trace:
On the next update any chance you can change the name of the item when you store xp, and add the xp stored as the lore? Thanks
@BONNe1704 @senotajs As far as I can tell, PearlXP still works fine in 1.5.1, did you find a bug?
@senotajs
ye, it would be usefull.
Update to 1.4.6 please
Could you add a config option to disable the right click on blocks etc. I would like to have it so only the commands work. As a useful way to use enderpearls involves being close to blocks (within right click range)
thank you for this lovely mod :)
@rbos
Ahh yeah, Bukkit manually accepts all file uploads for some reason (I doubt they're manually virus scanning them or anything but who knows) so theres a 2-5 hour delay before files are "approved" and listed up top.
my bad, used the top link instead of yours
@rbos
225xp? Is your server running 1.3.1 or 1.2.5? As of 1.3.1 225xp should be impossible to obtain, and I'm not seeing the problem using PearlXP 1.4.1 + Minecraft 1.3.1
Pearlxp V1.4.x is for Minecraft 1.3.1 and PearlXP V1.3.x is for Minecraft 1.2.5.
If its not a version mismatch, at what levels do you find restoring experience not normal?
Imbuing a pearl with 225 XP makes me gain levels still.
@Nebual
Thanks very much :D I really appreciate it.
@UltiByte
Hey awesome thanks! Excellent video, I'll include that on the main page!
Hello!
I thought your plugin was really awesome, so I made a video about it! http://www.youtube.com/watch?v=_loRoOy7KH8
Feel free to use it how you like :P
@rbos
Aye sorry, 1.3.1 changed the formulas. I think Pearlxp v1.4 should fix that!
The numbers are off, players are using this to elevate themselves up huge level amounts.
What are the permission nodes for this plugin, did I miss that somewhere?
@thatwhitekiid
What version of bukkit are you running, one of 1.2.5's RB's? Might I see a list of other plugins you have? Is there any circumstance where gaining exp does work? Haven't heard of this one before.
Help! I got this plugin on my server, when I stored some xp and I tried to give it back I couldn't and now I can't get xp at all. Please help!