Page 1 of 1

Can someone explain this to me

Posted: Tue Jan 06, 2015 23:52
by sarusian
so im trying to make a tool but due to lack of documentation i cant figure out what this line mean

Code: Select all

 cracky={times={[1]=4.00, [2]=1.50, [3]=1.00}, uses=70, maxlevel=1}
could someone pease exlain this whole line

Re: Can someone explain this to me

Posted: Wed Jan 07, 2015 01:03
by Napiophelios
Well in so far as I understand it:

cracky is a group that is defined by tough but crackable like stone
cracky= 1-3 denotes the dig time / how easy or fast it is to dig

A higher rating for such a group implies faster digging time.

cracky=1 is actually the toughest to dig in this group
cracky=3 is the easiest/fastest to dig

The `level` group is used to limit the toughness of nodes a tool can dig
and to scale the digging times / damage to a greater extent.

cracky=1,level=1 is an even tougher nut to crack.

so that means when the tool you give as an example
is used on a node in the cracky group

4 x faster digtime when used on a cracky=1 node
1.5 x faster digtime when used on a cracky=2 node
1 x faster digtime when used on a cracky=3 node

it has a max level=1 which means its pretty strong when used againt nodes in the cracky group

max level denotes the tool's maximum effectiveness when used on a node in the cracky group.
a tool with a max level=2 has no effect on a cracky=1 node

and I guess you can use the tool 70 times against a cracky=1 node (the toughest)
For lower leveled nodes, the use count is multiplied by `3^leveldiff`.

...but I am a noob here so this might be a flawed understanding of the documentaion.

Re: Can someone explain this to me

Posted: Wed Jan 07, 2015 17:21
by Krock
The values in the array "times" is the time required to dig a node (in seconds).
The keys [1] - [3] represent the type of the current group.

Code: Select all

[1]=4.00
Nodes with the group

Code: Select all

cracky = 1
require 4.0s to dig

Re: Can someone explain this to me

Posted: Thu Jan 08, 2015 02:59
by Napiophelios
Krock wrote:The values in the array "times" is the time required to dig a node (in seconds).
Thanks Krock.

Re: Can someone explain this to me

Posted: Sat Oct 17, 2015 08:30
by Hybrid Dog
You can't set the digging time to less than 0.15 seconds
https://github.com/minetest/minetest/bl ... 3836-L3838

Edit: This is solved in minetest, see my commits

Re: Can someone explain this to me

Posted: Fri Oct 20, 2017 03:38
by Lone_Wolf
Very useful topic!