Can someone explain this to me

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

Can someone explain this to me

by sarusian » Post

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: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Can someone explain this to me

by Napiophelios » Post

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: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Can someone explain this to me

by Krock » Post

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: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Can someone explain this to me

by Napiophelios » Post

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: 2834
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Can someone explain this to me

by Hybrid Dog » Post

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: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Can someone explain this to me

by Lone_Wolf » Post

Very useful topic!
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests