Minetest tool ranks mod
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
sys4 8b466b199f Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev hace 2 semanas
locale Add translation support for french (#9) hace 5 meses
sounds -Add a sound when tool levels up hace 2 años
README.md Use tool capabilities and add more levels (#12) hace 3 semanas
depends.txt Remove `moreores` support to fix circular dependencies (#7) hace 6 meses
init.lua Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev hace 2 semanas
mod.conf Add translation support for french (#9) hace 5 meses
settingtypes.txt Use tool capabilities and add more levels (#12) hace 3 semanas

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