Minetest tool ranks mod
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
sys4 8b466b199f Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev pirms 2 nedēļām
locale Add translation support for french (#9) pirms 5 mēnešiem
sounds -Add a sound when tool levels up pirms 2 gadiem
README.md Use tool capabilities and add more levels (#12) pirms 3 nedēļām
depends.txt Remove `moreores` support to fix circular dependencies (#7) pirms 6 mēnešiem
init.lua Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev pirms 2 nedēļām
mod.conf Add translation support for french (#9) pirms 5 mēnešiem
settingtypes.txt Use tool capabilities and add more levels (#12) pirms 3 nedēļām

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", 0, 1),
        after_use = toolranks.new_afteruse
    })
    end
end

Or alternatively, you can use the helper function:

toolranks.add_tool("mymod:mytool")