[Mod] Growing [growing]

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

[Mod] Growing [growing]

by randomproof » Sat Dec 03, 2011 07:28

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
Last edited by randomproof on Mon Dec 05, 2011 17:17, edited 1 time in total.
 

MarkTraceur
Member
 
Posts: 103
Joined: Sat Dec 03, 2011 05:41

by MarkTraceur » Mon Dec 05, 2011 06:06

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)
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Mon Dec 05, 2011 06:38

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.
Last edited by randomproof on Mon Dec 05, 2011 06:56, edited 1 time in total.
 

User avatar
Hackeridze
Member
 
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Wed Jan 04, 2012 21:37

My game: RTMG
GENTOO USER
 

Zarberman
Member
 
Posts: 24
Joined: Mon Dec 19, 2011 16:38

by Zarberman » Sat Jan 21, 2012 03:38

how do you make it grow faster?
my website (still in testing) www.gameri.webs.com
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Sat Jan 21, 2012 20:16

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.
 

wokste
Member
 
Posts: 78
Joined: Sat Feb 11, 2012 09:06

by wokste » Wed Mar 28, 2012 17:42

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.
We must be careful not to clone Notches mistakes.
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Wed Mar 28, 2012 20:00

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.
 

User avatar
sfan5-bot
Member
 
Posts: 35
Joined: Thu Mar 28, 2013 11:19

by sfan5-bot » Thu Mar 28, 2013 16:54

[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
 


Return to Old Mods

Who is online

Users browsing this forum: No registered users and 10 guests

cron