XP in the Jar
{ Create fancy image for here }
Musha ring dum-a do dum-a da. There's XP in the jar-o.
Overview
Conveniently store experience in multiple ways! This plugin includes a stable and simple to use Bank that just makes sense. Not only that, but you can now store your Experience in bottles. Store your XP in a more traditional fashion by filling up chests with bottles filled to the brim with good old EXP. Either system can be disabled, so your not forced to use an XP Bank, and your not forced to use the Bottling system, but both work great together.
Version 1.3.1
- Added permissions,
- Added colors to signs
- Added a debug command
Version 1.3.0
Main objective with for this release is to get everything working on the current builds of Bukkit
Installation
download xpinthe.jar. Add xpinthe.jar to your server plugins directory. Restart server.
Using XP in the Jar
XP Storage Block and Withdrawing XP
First, you need a storage block. The storage block is a Diamond Block. Craft together a diamond block, and place it in the world. Once placing the diamond block, any funds held within it can be withdrawn by interacting with the diamond block.
XP Deposit Block and Depositing XP
To deposit your xp into the storage block, you need a deposit block. This is simply a Cauldron. Place a cauldron so that it is directly connected to the Storage Block ( a.k.a. the Diamond Block). Once this task is complete, you can deposit Exp into the XP Bank by interacting with cauldron, which i will from now on call the Deposit Block. Interacting with the Deposit Block. Bottles of Exp can be dumped into the deposit box as well, emptying the bottle and storing the goods away.
Display Stored XP (Optional)
If you want to display the amount of xp in the storage block, you can optionally place a sign directly adjacent to, or on to, the XP Storage Block.
Bottling XP
Bottle Exp by having a Glass Bottle in your hand while picking up XP orbs. The exp will go into the bottle. The number of Exp collected in a bottle is written in the borrle lore. Bottled Exp can be absorbed by the player by drinking the Exp bottle. The bottle will be emptied and awarded to the holding player. Likewise, the bottles can be dumped into a Bank Deposit block.
Screenshots
Optional Dependencies
Optionally you can also install the ProtocolLib plugin. Having this plugin on your server will enable extra effects. For example: Players arms will animate when bottling experience orbs.
Configuration
Option | Default | Description |
---|---|---|
enableSpout | true | Set this to false if you want to disable spout usage even if spout is present on the server. |
enableProtocolLib | true | Set this to false if you want to disable ProtocolLib usage even if ProtocolLib is present on the server. |
enableExpBank | true | Can set this to false to disable the XP banking system. |
enableXPBottles | true | Can set this to false to disable to XP Bottling System. |
bottleRequireCrouch | true | If set to true, XP can only be bottle while a player has a bottle in hand and is also crouching (sneaking) while picking up xp orbs. False will bottle xp orbs regardless of sneaking |
consumeBottleOnDeposit | false | If set to true, the glass bottle containing xp will be consumed when depositing the exp into a bank block. |
consumeBottleOnUse | false | If set to true, the glass bottle containing xp will be consumed when drinking the xp from the bottle. |
Permissions (available in 1.3.1)
Permission | Default | Description |
---|---|---|
xpjar.bank.deposit | true | Allows a player to deposit XP |
xpjar.bank.withdraw | true | Allows a player to withdraw XP |
xpjar.bank.destroy | true | Allows a player to destroy a bank |
xpjar.bank.depositeBottle | true | Allows a player to deposit XP into a bank from a bottle |
xpjar.bottle.collect | true | Allows a player to gather XP into a bottle |
xpjar.bottle.use | true | Allows a player to absorb the XP in a bottle |
xpjar.command.debug | op | Allows a player to toggle debug mode |
The Future
- Localization
- Possibility to make xp banks private
- Maximum limits to blocks/bottles.
- Custom recipes and blocks for spout/spoutcraft users
- You tell me.
All I need for me to use this plugin is maximum limits to blocks and bottles. Please add this feature :D
@InanZen
its using a glass bottle, and setting the item durability of the glass bottle to the amount of xp contained. in a code sense.
when i try to sell the XP bottle in Sign Shop, it says "glass bottle out of stock".
Is it using some other kind of item ID?
@simplimazing
I can make it so that banks can only interacted with by the player who placed the bank
@Malvagio87
I can add a command or something for you.
@CosmicVoyager
I can add this for you as well.
Don't forget to pledge. Every penny helps with development.
Greetings,
I would like to be able to convert experience into Bottles 'o Enchanting so that players can trade them.
Thanks
i wanted to use this to be bale to sell xp bottles in a shop ... is there a way to allow you to hold a stack of bottles and have them fill up to whatever the bottl'o'enchanitng exp amount is?
How can you make the exp banks private? I tested it out and some one can click and take my exp out of the bank
@synx7sr
Thanks for reporting this. This was something I forgot to remove while I was testing some things. I have fixed this in version 1.2.1 and is now available in the downloads.
@chrisrulesall - XP orbs are changing potions/water bottles into other random potions while being held. Is anyone else having this issue?
<<reply 659155="">>
Good points, you will likely see some of that in a near future release.
There isn't even a scratch of missing Exp, can transfer to and from all day long and it will always add up. Let me know if you find any issues with it, though.So far (for me at least) it has been spot-on.
Hope you enjoy.
I've noticed in other plugins there are rounding errors with XP. They are tiny (1 xp per transaction) but players are weird about that stuff. If you could make absolutely sure that players don't lose even one XP per transaction, then they would be happy.
I think configuration will be really important. For instance, storage blocks as bookshelves would be really cool.
One feature I think would be nice is a level 50 'cap'. i.e. you can deposit as much XP as you want (not levels), and withdrawing XP stops when the player is level 50.