How much durability do tools have before they break?

ph8jPf9M
Member
 
Posts: 70
Joined: Sat Jul 16, 2016 10:29
GitHub: 22i

How much durability do tools have before they break?

by ph8jPf9M » Fri Jul 29, 2016 21:38

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.lua

some durability information http://wiki.minetest.net/Pickaxe
 

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: How much durability do tools have before they break?

by lisacvuk » Fri Jul 29, 2016 23:14

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.
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 

ph8jPf9M
Member
 
Posts: 70
Joined: Sat Jul 16, 2016 10:29
GitHub: 22i

Re: How much durability do tools have before they break?

by ph8jPf9M » Sat Jul 30, 2016 07:36

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?
 

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: How much durability do tools have before they break?

by lisacvuk » Sat Jul 30, 2016 13:06

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.
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron