Page 1 of 1

[Mod] Growing [growing]

PostPosted: Sat Dec 03, 2011 07:28
by randomproof
Here is a generic version of the growing mod. I've made it so other mods can use it such as my bread mod which uses it for wheat to grow. Look at the examples for papyrus and cactus on how to us it. The function add_grow_type is called with the first param as the node type you want to grow. The second param is a table of tables. Each inner table has a field for name, odds and max_height. The name field is the surface node name that the growing node must be on top of to grow. The odds field controls how fast it will grow(between 1 and 1000; lower numbers are slower growing) Figure about ((odds/100)/2)% will grow every 5 minutes. The last field, max_height, controls how many nodes high it will grow.

Gitorious Link

PostPosted: Mon Dec 05, 2011 06:06
by MarkTraceur
It takes a *long* time for this stuff to grow....did you mean for that to happen?

Also, you should consider using "default:dirt" instead of "dirt" for the node names (same thing for all of the nodenames)

PostPosted: Mon Dec 05, 2011 06:38
by randomproof
MarkTraceur wrote:It takes a *long* time for this stuff to grow....did you mean for that to happen?

Also, you should consider using "default:dirt" instead of "dirt" for the node names (same thing for all of the nodenames)


Yes, I meant for it to take time to grow, stuff in real life takes time to grow, but it is tweakable to whatever your needs are. I just wanted it to grow slowly enough that I wouldn't really see it. Maybe just a few pieces every time I walked past a certain spot. I also planned this as a base for mods based on farming crops.

Also I did notice that all the regular stuff got "default:" added to it and I've update the code. I've been pulling from github every morning and he seems to be working hard on getting all this mod stuff up quick, which is great.

PostPosted: Wed Jan 04, 2012 21:37
by Hackeridze

PostPosted: Sat Jan 21, 2012 03:38
by Zarberman
how do you make it grow faster?

PostPosted: Sat Jan 21, 2012 20:16
by dannydark
Zarberman wrote:how do you make it grow faster?


Increase the odds number, Higher the odds the faster it will grow.

The odds number can be set anywhere between 1 and 1000.

PostPosted: Wed Mar 28, 2012 17:42
by wokste
randomproof wrote:Here is a generic version of the growing mod.

What is the license? GPL compatible?
I want to use it, but need to know the license.

PostPosted: Wed Mar 28, 2012 20:00
by randomproof
wokste wrote:
randomproof wrote:Here is a generic version of the growing mod.

What is the license? GPL compatible?
I want to use it, but need to know the license.

I release all rights to this code. Feel free to do whatever you want to with this code.

PostPosted: Thu Mar 28, 2013 16:54
by sfan5-bot
[EE] No License found
[EE] No Dependencies found


Please fix these Mistakes and report this post, a moderator will delete it
If you believe I have made a Mistake contact sfan5