Enchantments
Information about pickaxe enchantments
Last updated
Was this helpful?
Information about pickaxe enchantments
Last updated
Was this helpful?
Enchantments can be added through the Pickaxe GUI. Enchantments must all have a defined cost, slot of where they are displayed in the GUI, max level, and display information. Enchantments can also have other settings within the depending on what they inherit. All enchantments have a minimum level of 1 and must have a unique name.
Custom enchantments that extend the VanillaEnchantment class add a vanilla enchantment to the item based upon what level the custom enchantment is. This is based upon a setting called levelsPerVanillaLevel
. The level of the vanilla enchantment is calculated as follows:
Example:
levelsPerVanillaLevel: 30
Custom enchant level = 65
65/30 = 2.17 -> 2
Always rounded down as an integer
Efficiency increases the speed at which the tool can mine. The mining speed is fully based upon that of the vanilla enchantment and does not use unique attributes, packets, etc.
Default Max Level
Default levels/vanilla level
100
20
Fortune increases the number of drops that a player can get from certain ores and materials. The vanilla fortune calculation is actually canceled and PrisonPick does its own calculation that is the exact same. This is because Spigot API was not consistent across versions, so I had to create my own loot table. All calculations are the exact same as those on .
Ore
Coal Ore
Nether Quartz
Diamond Ore
Emerald Ore
Nether Gold Ore
Lapis Lazuli
Redstone
Default Max Level
Default levels/vanilla level
100
20
Potion enchantments give a particular potion effect when the custom item is held. All potion effects given by an enchantment have an unlimited duration. The level of the potion also depends on the level of the custom enchantment. This is calculated by a setting called levelsPerPotionLevel
. The level of the potion is calculated as follows:
Example:
levelsPerPotionLevel: 2
Speed enchant level = 3
3/2 = 1.5 -> Speed 1
Always rounded down as an integer
Default Max Level
Default levels/potion level
5
1
Default Max Level
Default levels/potion level
5
1
Default Max Level
Default levels/potion level
4
1
Setting the max level of this enchantment to higher than 1 will do nothing unless you also change the default levels/potion level. Doing this would mean the player needs to upgrade the enchantment enough times to actually get the potion effect; however, this is not recommended. It is recommended that you instead, increase the price of this enchantment and keep the default max level as 1.
Default Max Level
Default levels/potion level
1
1
The custom enchantment of Haste gives the potion effect . This will increase how fast the player digs.
The custom enchantment of Speed gives the potion effect . This will increase how fast the player runs.
The custom enchantment of Jump Boost gives the potion effect . This will change how fast the player can jump.
The custom enchantment of Night Vision will give the potion effect . This will change how easily the player can see in the dark.