ToolParams
Hierarchy
- ToolParams
- ToolParams
Implemented by
Index
Properties
optionalblockTypes
Array of block types which the tool can break.
optionalenchantType
Enchantment type of the tool.
optionalhandEquipped
Specifies how the player should hold the item.
optionalonItemUse
Function that is called when player touches a block with the tool.
Type declaration
Parameters
coords: ItemUseCoordinates
object of touch coordinates with side information and relative coordinates set.
item: ItemStack
item in the player's hand
block: Tile
block that was touched
player: number
player entity id
Returns void
Object containing tool parameters and functions.