FriendlyGamer 0b3e9518b1 Message | 4 jaren geleden | |
---|---|---|
.. | ||
.github | 4 jaren geleden | |
locale | 4 jaren geleden | |
sounds | 4 jaren geleden | |
.luacheckrc | 4 jaren geleden | |
README.md | 4 jaren geleden | |
depends.txt | 4 jaren geleden | |
init.lua | 4 jaren geleden | |
mod.conf | 4 jaren geleden | |
settingtypes.txt | 4 jaren geleden |
Minetest tool ranks mod
Tools gain levels for digging nodes. Higher level tools dig faster and take longer to wear out.
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")