Can someone explain this to me

sarusian
Member
 
Posts: 11
Joined: Sat Jan 03, 2015 22:40
Location: Oshawa, Ontario, Canada
GitHub: sarusian
IRC: sarusian
In-game: sarusian

Can someone explain this to me

by sarusian » Tue Jan 06, 2015 23:52

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
My Mods
___________________________________________________________________
Science adjusts its views based on what's observed. Faith is the denial of observation so that belief can be preserved.

- Tim Minchin
 

User avatar
Napiophelios
Member
 
Posts: 985
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Can someone explain this to me

by Napiophelios » Wed Jan 07, 2015 01:03

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.
 

User avatar
Krock
Developer
 
Posts: 4403
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: Can someone explain this to me

by Krock » Wed Jan 07, 2015 17:21

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
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Napiophelios
Member
 
Posts: 985
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Can someone explain this to me

by Napiophelios » Thu Jan 08, 2015 02:59

Krock wrote:The values in the array "times" is the time required to dig a node (in seconds).


Thanks Krock.
 

User avatar
Hybrid Dog
Member
 
Posts: 2719
Joined: Thu Nov 01, 2012 12:46

Re: Can someone explain this to me

by Hybrid Dog » Sat Oct 17, 2015 08:30

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
Last edited by Hybrid Dog on Fri Oct 20, 2017 18:27, edited 1 time in total.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

User avatar
Lone_Wolf
Member
 
Posts: 2214
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 7 guests