Defines the function that will be called, when item with following enchantment is used for attack. The function must return bonus damage dealt to the victim.
Reference to itself to be used in sequential calls.
Sets the following enchantment frequency, possibly used in treasures.
Reference to itself to be used in sequential calls.
Sets whether the following enchantment will be able to be received on the enchanting table or not.
Reference to itself to be used in sequential calls.
Sets whether the following enchantment will be able to be found in dungeon chests or not.
Reference to itself to be used in sequential calls.
Sets whether the following enchantment will be able to be caught during fishing as a treasure, or not.
Reference to itself to be used in sequential calls.
Sets the mask of items, that the following enchantment can be applied to, paired parameter for item is enchant slot.
Reference to itself to be used in sequential calls.
Sets linear dependency of enchant cost by level,
the formula is level * b + c
.
Reference to itself to be used in sequential calls.
Sets minimum and maximum level, that the following enchantment will be able to have in legal conditions.
Reference to itself to be used in sequential calls.
Defines the function that will be called after the item with following enchantment is used for attack.
Reference to itself to be used in sequential calls.
Defines the function that will be called, when the entity wearing item with following enchantment, is hit.
Reference to itself to be used in sequential calls.
Defines the function that will be called, when the entity wearing item with following enchantment, is hit. The function must return bonus protection value.
Reference to itself to be used in sequential calls.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Object returned by CustomEnchant.newEnchant method. Used to configure different custom enchantment behaviors.