XP Storer

The XP Storer mechanic allows a player to convert their XP into bottles of enchanting.

Construction

The XP Storer mechanic is represented by a block. By default, the spawner block.

Ranged Mode

Ranged Mode allows the XP Storer to collect nearby Experience Orbs automatically. This mode requires a sign attached to the block, with [XP] on the second line. On the third line, the range may be supplied. This range is spherical, and limited by an option in the configuration.

If the XP Storer requires bottles, they can be placed in a chest on top of the block. The resulting XP Bottles will end up in the chest as well, if they fit.

Usage

On right click, the block will drop the players XP in the form of XP Bottles.

It’s possible to configure CraftBook to either require sneaking, not allow sneaking, and to allow XP bottles in the offhand.

Tweaking XP Output

Using the bottle-xp-requirement option, it’s possible to change how much XP is used up per bottle creation. By default, the amount will on average produce roughly equal output.

Overriding output

It’s also possible to disable the Minecraft XP algorithm when the XP bottle is broken, and instead output a fixed amount of XP. This is useful if you want stored bottles to always output the amount that was put in, or you want to define a non-random loss.

Configuration

Node

Comment

Default

require-bottle

Requires the player to be holding a glass bottle to use.

true

allow-offhand

Allows XP bottles in the off hand to work.

true

bottle-xp-requirement

Sets the amount of XP points required per each bottle.

16

bottle-xp-override

Set the amount of XP points that each bottle provides on usage (-1 to use MC behaviour).

-1

block

The block that is an XP Storer.

minecraft:spawner

allow-sneaking

Sets how the player must be sneaking in order to use the XP Storer.

false

radius-mode

Allows XP Storer mechanics with a sign attached to work in a radius.

false

max-radius

The max radius when using radius-mode.

5

Permissions

Permission Node

Effect

craftbook.xpstorer.create craftbook.xpstorer.use

Allows creation of the XP Storer sign. Allows use of the XP Storer.