1
0
mirror of https://github.com/lisacvuk/minetest-toolranks.git synced 2024-12-04 23:20:17 +01:00
Go to file
2022-10-04 13:35:43 +02:00
.github/workflows add luacheck and github workflow (#13) 2020-06-20 14:35:24 +02:00
locale Add translation support for french (#9) 2020-02-04 23:31:06 +01:00
sounds -Add a sound when tool levels up 2017-07-27 15:21:03 +02:00
.luacheckrc add luacheck and github workflow (#13) 2020-06-20 14:35:24 +02:00
depends.txt Remove moreores support to fix circular dependencies (#7) 2020-01-01 21:56:32 +01:00
init.lua Add nil check afteruse 2020-11-22 14:32:59 +00:00
LICENCE Create LICENCE 2022-10-04 13:34:19 +02:00
mod.conf Add translation support for french (#9) 2020-02-04 23:31:06 +01:00
README.md Update README.md 2022-10-04 13:35:43 +02:00
settingtypes.txt Use tool capabilities and add more levels (#12) 2020-06-18 13:37:21 +02:00

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