pylon Tool
fun pylonTool(stack: ItemStack, key: NamespacedKey, mineable: RegistryKeySet<BlockType>, hasDurability: Boolean): ItemStackBuilder(source)
fun pylonTool(material: Material, key: NamespacedKey, mineable: RegistryKeySet<BlockType>, hasDurability: Boolean): ItemStackBuilder(source)
Creates a new ItemStack for a PylonItem that can be used as a tool for the mineable blocks. (See pickaxeMineable and related for basic tools) You must provide a value for mining-speed and mining-durability-damage in the Settings for the item.
If hasDurability is true, gives the item a max durability defined by durability in the Settings. Otherwise, removes any existing durability.
settings/example-tool.yml
mining-speed: 8.0 # double
mining-durability-damage: 1 # integer
durability: 500 # integerContent copied to clipboard