Page 1 of 2

[Mod] Flowers [flowers]

PostPosted: Sun Dec 04, 2011 11:14
by ironzorg
Image

Image

Image

My mod allows flowers to grow naturally on a map. There are 6 kinds of flowers at the moment:
  • roses
  • yellow dandelions
  • white dandelions
  • tulips
  • violas
  • waterlilies

The five first kinds of flowers grow on soil (dirt with grass nodes), the waterlilies grow on water (water sources).
Some flowers are more rare than the others, I'll let you read the source code to understand how the code generates them (long story short: it uses spacing and randomness).

I also added flower pots, which you can craft with three bricks (that's for the pot) and a flower of your choice (aside from the waterlily).

I used a modified version of randomproof's growing script in order to make this mod, you can play around with the values used to declare the ABM callbacks but I think the default ones are just fine.

Do-whatever-you-want-with-my-code license ;)

Credits: textures (and hosting) by erlehmann, thanks to him !

Download the mod

PostPosted: Sun Dec 04, 2011 13:03
by Atype
Very nice, if you add some craft recipes with flowers, it will be awesome.

PostPosted: Sun Dec 04, 2011 13:05
by ironzorg
Atype wrote:Very nice, if you add some craft recipes with flowers, it will be awesome.


I will, I just need to fix the textures I'm using.

PostPosted: Mon Dec 05, 2011 14:48
by bookwar

PostPosted: Mon Dec 05, 2011 15:02
by bwog
The textures look good. Maybe you can craft them into potions or something?

PostPosted: Mon Dec 05, 2011 15:27
by ironzorg
bwog wrote:The textures look good. Maybe you can craft them into potions or something?


That's what I intended to do in my latex mod (that allows you to create colored blocks), but I figured it would be too expensive if you wanted to have many colored blocks (given that a potion is made of a bottle + water + a flower).

PostPosted: Mon Dec 05, 2011 22:16
by kirtash1197
Good job! The flowers could be uses for crafting. Perhaps seeds or potions.

PostPosted: Tue Dec 06, 2011 10:27
by ironzorg
I will add flower pots, I lack decorative blocks ;)

PostPosted: Fri Dec 09, 2011 20:57
by ironzorg
Link to the mod's archive added, wiki mods page edited as well.

PostPosted: Tue Dec 13, 2011 09:44
by lmtea
Hey, look on my mod! http://c55.me/minetest/forum/viewtopic.php?id=568. I will add also coloured blocks there and it depends on yours. Now are able to make paint! And also I heva included and will include any other things

PostPosted: Mon Dec 19, 2011 09:21
by Hackeridze
will I add the flowers sprouts(like pumpkins/wheat/water melons) and the flowers will grow in 2-4 stages? And maybe flower's seeds?

PostPosted: Thu Dec 22, 2011 21:50
by sapier
I've added an interface function to make use of flowers mod growing algorithms from other mods


Steps:

1) make your mod dependent of flowers

2) add a texture to YOUR mod named <yourmodname>_<yourflowername>.png

3) flowers_add_sprite_flower(<yourmodname>,<yourflowername>,<your growdelay>,
{
{name = "dirt_with_grass", chance = 4, spacing = 15}})

4) watch your flower grow

http://www.mediafire.com/?2bnuac16c2zyr2g

PostPosted: Sun Jan 01, 2012 18:37
by neko259
Flower pots should be blocks, not items.

PostPosted: Wed Jan 04, 2012 15:27
by neko259
sapier wrote:I've added an interface function to make use of flowers mod growing algorithms from other mods


Steps:

1) make your mod dependent of flowers

2) add a texture to YOUR mod named <yourmodname>_<yourflowername>.png

3) flowers_add_sprite_flower(<yourmodname>,<yourflowername>,<your growdelay>,
{
{name = "dirt_with_grass", chance = 4, spacing = 15}})

4) watch your flower grow

http://www.mediafire.com/?2bnuac16c2zyr2g

Please post that download link in your farming mod page. It's not so easy to find it here :)

PostPosted: Wed Jan 04, 2012 15:35
by sapier
I was hoping to get it into official flowers when I posted it.
You're right as this doesn't seem to happen farming mod thread will be a better place for the link.

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

PostPosted: Thu Jan 05, 2012 11:29
by Staffs
Hey i didn't find any waterflowers weird...
+ The flowers grow VERY fast if i would have this mod for long my all world would be full of these flowers...

PostPosted: Tue Jan 31, 2012 14:26
by neko259
Added descriptions for tooltips. Made flowers in the pots nodes, not items. Added Hackeridze's cotton (just changed a recipe a bit). http://ompldr.org/vY2p2cA/flowers.tar.bz2
@ironzorg: please tell me if you're going to put this version in the upstream, or I'll add it to my nature mod pack.

PostPosted: Tue Jan 31, 2012 19:22
by Nemo08
neko259 wrote:Added descriptions for tooltips. Made flowers in the pots nodes, not items. Added Hackeridze's cotton (just changed a recipe a bit). http://ompldr.org/vY2p2cA/flowers.tar.bz2
@ironzorg: please tell me if you're going to put this version in the upstream, or I'll add it to my nature mod pack.

we are doing double duty :) im fixed flowers it rtmmp too :))

PostPosted: Tue Jan 31, 2012 20:52
by neko259
I'm going to fork it and add some more features to make it correspond to my nature mod.

PostPosted: Tue Jan 31, 2012 21:06
by sapier
@neko259 if you are forking can you please add a interface function to add flowers from other mods? If you look at my changes for farming mod you'll see there isn't much to do to add this.

PostPosted: Tue Jan 31, 2012 21:10
by neko259
sapier wrote:@neko259 if you are forking can you please add a interface function to add flowers from other mods? If you look at my changes for farming mod you'll see there isn't much to do to add this.

What changes? I already used flowers mod from your farming thread as a source to make this one. But I can look there to optimize it, if there is anything to optimize.

PostPosted: Tue Jan 31, 2012 21:31
by sapier
oh sorry I didn't look at your code if you already added the changes for farming mod everything I wanted is already in. thx

PostPosted: Mon Feb 13, 2012 16:39
by MirceaKitsune
Wonderful mod! Need to test it, but I'm all up for making it part of Minetest.

One curiosity: Do flower pots do anything different than normal flowers? A different behavior would also make more sense... such as: Normal flowers can only be placed on dirt, but flower pots can be placed on any block.

PostPosted: Mon Feb 20, 2012 22:21
by evildrummer
Make a Zip file

PostPosted: Mon Feb 20, 2012 23:01
by IPushButton2653
@evildrummer, if it doesn't work, just download some unzipping software like WinRAR or FYZip

PostPosted: Tue Mar 20, 2012 21:06
by sdzen
heres one thats up for the new release i think i downloaded it from rmmtp pack originally but it has been changed for the groups stuff

http://www.4shared.com/zip/CObTukis/file.html
well mostly xd

PostPosted: Wed Jun 27, 2012 02:14
by Mineing Master
This mode is a very nice mod

PostPosted: Sat Jul 14, 2012 08:25
by prof-turbo
+1 :)

PostPosted: Sat Jul 14, 2012 15:47
by SegFault22
AHA! so THAT's where the extremely-popular-but-kinda-forgotten-as-not-part-of-default mod went...
Good work, they should be added to the ''default'' mod, as so many mods require them...