mods that hopefully work for a TechAge-based pack
This commit is contained in:
1 parent
4e6b08d194
commit
c27db2a537
6234 files changed
+375578
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# 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:
|
||||
|
||||
```lua
|
||||
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:
|
||||
|
||||
```lua
|
||||
toolranks.add_tool("mymod:mytool")
|
||||
```
|
||||
Reference in new issue
Block a user