Adds ranking to tools making the more used and repaired last longer (this is a fork)

tenplus1 cf85317c7e update to increase speed levels 6 months ago
locale cf85317c7e update to increase speed levels 6 months ago
sounds cf85317c7e update to increase speed levels 6 months ago
README.md cf85317c7e update to increase speed levels 6 months ago
depends.txt 220016c643 initial fork upload 2 years ago
init.lua cf85317c7e update to increase speed levels 6 months ago
license.txt 83f3d12239 fix license 2 years ago
mod.conf cf85317c7e update to increase speed levels 6 months ago
settingtypes.txt cf85317c7e update to increase speed levels 6 months ago

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")