minetest-mods/toolranks
Milan2018 29d57bc728 update 2021-05-16 18:16:47 +02:00
..
.github/workflows update 2021-05-16 18:16:47 +02:00
locale update 2021-05-16 18:16:47 +02:00
sounds first 2019-12-14 17:47:31 +01:00
.luacheckrc update 2021-05-16 18:16:47 +02:00
README.md update 2021-05-16 18:16:47 +02:00
depends.txt update 2021-05-16 18:16:47 +02:00
init.lua update 2021-05-16 18:16:47 +02:00
mod.conf update 2021-05-16 18:16:47 +02:00
settingtypes.txt update 2021-05-16 18:16:47 +02:00

README.md

minetest-toolranks [toolranks]

Minetest tool ranks mod

Tools gain levels for digging nodes. Higher level tools dig faster and take longer to wear out.

Are you a mod developer?

Does one of your mods add new tools? If so, to support this mod, add this code to your mod, after your tool's code:

if minetest.get_modpath("toolranks") then
    minetest.override_item("mymod:mytool", {
        original_description = "My Tool",
        description = toolranks.create_description("My Tool"),
        after_use = toolranks.new_afteruse
    })
    end
end

Or alternatively, you can use the helper function:

toolranks.add_tool("mymod:mytool")