Set the required tool

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Set the required tool

by burli » Mon May 02, 2016 20:10

I want to set the minimal required tool for nodes. For example to dig silver you need a steel picaxe, to dig mese you need a silver picaxe and so on. Also some hard stones like marble should need a better tool. I'm still struggling with groups.

cracky is has to be used with picaxe, but how can I define which picaxe it should be?
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Set the required tool

by burli » Tue May 03, 2016 12:45

Ok, try to explain myself what I found.

The picaxe have this values

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
cracky = {times={[3]=1.60}, uses=10, maxlevel=1} #wooden picaxe
cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=20, maxlevel=2} #steel picaxe


Some nodes have this values
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
groups = {cracky = 3, stone = 1} #stone
groups = {cracky = 2, stone = 1} #stonebrick


cracky is the digging time per level. That means digging stone with a wooden picaxe takes 1.60 (seconds?), with a steel picaxe it takes 0.80. stonebrick is not diggable with a wooden picaxe

But the second parameter confuses me. stone = 1. Some cracky nodes have a stone parameter, some have a level parameter like obsidian and sandstonebrick has just cracky.

And how does it work with maxlevel?
 

User avatar
Naj
Member
 
Posts: 170
Joined: Sat Sep 19, 2015 21:14
GitHub: pyrollo
In-game: naj

Re: Set the required tool

by Naj » Tue May 03, 2016 13:02

These are not parameters but groups. Groups are used for many purposes. "cracky" group is for nodes breakable with pickaxe (and the number is the associated level). "stone" group is only for gathering stone nodes (usable to craft stone tools). Value 1 is always given to such groups that don't deal with levels.
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Set the required tool

by burli » Tue May 03, 2016 13:12

Maybe I can explain maxlevel myself.

stone_with_diamond has only one group: cracky = 1
diamondblock has the groups cracky = 1, level = 3

Steel picaxe has cracky times[1] = 4 and maxlevel=2, that means, a steel picaxe can digg stone_with_diamond in 4 seconds, but can't digg a diamondblock.

To digg a diamondblock I need a mese pickaxe with maxlevel=3

Is that correct so far?
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Set the required tool

by burli » Tue May 03, 2016 13:15

Naj wrote: "stone" group is only for gathering stone nodes (usable to craft stone tools)

That means, each node in the stone group can be used for example to craft a stone sword or another stone tool
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 17 guests

cron