What exactly do the `uses` into the tooldef?

User avatar
LNJ
Member
 
Posts: 200
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

What exactly do the `uses` into the tooldef?

by LNJ » Thu Sep 22, 2016 15:42

I'm wrinting the documentation for a tool API (for my game AF8) and I don't know what the `uses` in the tooldef really do.
So I looked into the lua_api.txt, but didn't found anything that explains it, so I'm writing this topic. :D

e.g. if uses = 8 you can dig even more than 8 nodes...
Can somebody explain this? (then this also could be added to the lua_api.txt)
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

User avatar
qwertymine3
Member
 
Posts: 194
Joined: Wed Jun 03, 2015 14:33
GitHub: Qwertymine
In-game: qwertymine3

Re: What exactly do the `uses` into the tooldef?

by qwertymine3 » Thu Sep 22, 2016 19:10

It is in lua_api.txt

https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L1277

TLDR; It is the maximum no of nodes at the tools level that it can mine. If the nodes are at a lower level, it can mine more.
Avatar by :devnko-ennekappao:
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron