1
0
mirror of https://github.com/lisacvuk/minetest-toolranks.git synced 2024-11-14 05:50:22 +01:00
minetest-toolranks/README.md
2022-10-04 13:35:43 +02:00

779 B

minetest-toolranks [toolranks]

Minetest tool ranks mod

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

Licence

Code: LGPLv2.1+
Tool level sound: CC BY 3.0

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