minetest.register_tool
From Minetest Developer Wiki
Syntax
minetest.register_tool(name, tool_definition)
- name The name of the tool, for example: tutorial:decowood_pick.
- tool_definition A table of values defining the tool.
Description
Registers a tool, examples are picks, axes, swords, and shovels.
Example
minetest.register_tool("tutorial:decowood_pick", { description = "Decowood Pickaxe", inventory_image = "tutorial_decowood_pick.png", tool_capabilities = { max_drop_level=3, groupcaps= { cracky={times={[1]=4.00, [2]=1.50, [3]=1.00}, uses=70, maxlevel=1} } } })
![]() |
This article is incomplete. Please help expand this article to include more useful information. |