Any other user-defined methods and properties
List of block material names that can be broken by this instrument. Defined by ToolAPI.registerTool
Numeric id of the item that replaces tool item when it's broken. By default it is 0 (the tool disappears)
Base damage of the instrument, is added to the material damage to calculate the tool's final damage. Default is 0
If true, the tool is vanilla Minecraft tool. Generally used within Core Engine code and should not be used within mods until you really know what you're doing
If true, breaking blocks with this tool makes it break 2x faster, otherwise attacking mobs breaks tool 2x faster
Properties of the tool material. Defined by ToolAPI.registerTool
Function used to recalculate block destroy time based on some custom logic
tool item
coordinates where the block is being broken
the block that is being broken
some time properties that can be used to calculate destroy time for the tool and block
base destroy time of the block
tool material devider
divider applied due to efficiency enchantment
default block destroy time, calculated as base / divider / modifier
tool's enchant data
Function that is used to change enchant data object before all the calculations. Can be used to add some enchantment properties, such as silk touch, efficiency, unbreaking or fortune
tool's enchant data
tool item
coordinates where the block is being broken. Passed only if the block is destroyed
destroyed block data. Passed only if the block is destroyed
Function that is called when players attacks some entity with the tool
tool item
unique numeric id of the entity that is attacked
true if default damage should not be applied to the instrument, false otherwise
Function that is called when the instrument is broken
tool item
true if default breaking behavior (replacing by brokenId item) should not be applied
Function that is called when the block is destroyed
tool item
coordinates where the block is destroyed
the block that is destroyed
true if default damage should not be applied to the instrument, false otherwise
Function that is called when the block that has a destroy function is destroyed
coordinates where the block is destroyed
an item in player's hand
block that was destroyed
BlockSource object of the world where the block was destroyed
entity uid of the player that destroyed the block
Generated using TypeDoc
Object containing additional parameters and functions used by Core Engine to work with the tool