Information about pickaxe enchantments
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 enchants.yml 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 -> 2Always 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.
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 this page.
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 1Always rounded down as an integer