Requires the library mod Collective.
This mod is part of The Vanilla Experience.
Bottle Your Xp is a minimalistic configurable mod which allows the creation of experience bottles (bottles o' enchanting) from your own gathered xp by sneak/crouch + right-clicking an empty bottle. This can optionally (set in the config) hurt the player because the procedure might not be entirely painless.
damageOnCreation (default = true): If enabled, damages the user whenever they create an experience bottle.
halfHeartDamageAmount (default = 1, min 1, max 20):The amount of damage the user takes times half a heart when creating an experience bottle.
rawXpConsumedOnCreation (default = 10, min 0, max 100): The amount of raw xp it takes to produce an experience bottle. Be careful when setting this too low, as it may enable xp duplication.
The effect in action: