Exp in a Bottle is a simple plugin that adds a crafting recipe allowing players to put their experience in a bottle. The plugin uses the "Bottle 'O Enchanting" item to achieve this.
Crafting bottles
To bottle exp players must use a crafting table or the crafting area in the inventory. The crafting recipe is customizable but will always require an empty bottle and will never have a fixed shape. By default, the recipe requires an empty bottle and one lapis lazuli. Also by default, crafting an exp bottle will decrease the player's experience level. The level however is decreased slightly more than what is stored meaning that some exp will be lost in the process. Naturally bottles cannot be crafted when the player has insufficient exp.
Players (with any permission) can use the command /expinabottle recipe to view the required recipe.
Configuration
The default configuration file looks like this:
Code (YAML):
Required exp to craft exp bottle: 8
Extra materials required to craft exp bottle: - lapis lazuli
To have no extra materials required, put "null" instead of a list of extra materials.
Demonstration
Note: a crafting table is not required to craft the bottle.
Known bugs
Bottles cannot be crafted in bulk (by holding down shift and clicking). This is currently the only known bug which is actually more of a technical inconvenience with the Spigot API. It will not be fixed anytime soon.
This plugin should be compatible with versions 1.13 and up.