How much durability do tools have before they break?

Posted:
Fri Jul 29, 2016 21:38
by ph8jPf9M
Is there any way to quickly find out tools durability? Is tool durability hidding somewhere here?
https://github.com/minetest/minetest_game/blob/master/mods/default/tools.luasome durability information
http://wiki.minetest.net/Pickaxe
Re: How much durability do tools have before they break?

Posted:
Fri Jul 29, 2016 23:14
by lisacvuk
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
groupcaps={
cracky = {times={[3]=1.60}, uses=10, maxlevel=1},
},
Or more specificaly, 'uses=10'. You can find it inside LUA API docs.
Re: How much durability do tools have before they break?

Posted:
Sat Jul 30, 2016 07:36
by ph8jPf9M
Thats what it seems at first glance that Wooden Pickaxe has 10 uses but when i tested it in in game i could mine 31 stone blocks before my Wooden Pickaxe finally broke down. Is it weirdly multiplied by 3 and 1 use added at the end?
Re: How much durability do tools have before they break?

Posted:
Sat Jul 30, 2016 13:06
by lisacvuk
You are forgetting something, it lasts less on some blocks. So, it isn't how many blocks you can dig. More like... health of it. For example, digging a stone could take .33HP.