1
0
mirror of https://github.com/lisacvuk/minetest-toolranks.git synced 2025-07-12 13:00:27 +02:00

Move all functions to toolranks table; in order to allow mod developers to add support for their mod. Updated readme.

This commit is contained in:
Stefan Vukanović
2017-07-13 15:12:49 +02:00
parent 68cf70d20d
commit 61fde54efc
2 changed files with 61 additions and 50 deletions

View File

@ -1,5 +1,14 @@
# minetest-toolranks
Minetest tool ranks mod
Tool gains levels for digging nodes. Higher level tools take longer to
Tool gains levels for digging nodes. Higher level tools take longer to
wear out.
## Are you a mod developer?
Does one of your mods add new tools?
If so, to support this mod, check if it is loaded with
```minetest.get_modpath("toolranks")```
and then replace all after_use definitions with toolranks.new_afteruse.
Optionaly, you can also replace tools description with
```toolranks.create_description("Tool Name", 0, 1)```
and then set original_description to your tools name.