[Mod] Flowers [flowers]

ironzorg
Member
Posts: 46
Joined: Tue Aug 23, 2011 06:34

[Mod] Flowers [flowers]

by ironzorg » Post

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
Last edited by ironzorg on Fri Dec 09, 2011 20:58, edited 1 time in total.

Atype
New member
Posts: 8
Joined: Sun Oct 16, 2011 12:42

by Atype » Post

Very nice, if you add some craft recipes with flowers, it will be awesome.

ironzorg
Member
Posts: 46
Joined: Tue Aug 23, 2011 06:34

by ironzorg » Post

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.

bookwar
Member
Posts: 30
Joined: Sat Oct 08, 2011 20:37

by bookwar » Post

Fedora rpm-package for Minetest

bwog
Member
Posts: 283
Joined: Wed Nov 30, 2011 14:09
Location: United States
Contact:

by bwog » Post

The textures look good. Maybe you can craft them into potions or something?

ironzorg
Member
Posts: 46
Joined: Tue Aug 23, 2011 06:34

by ironzorg » Post

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).

kirtash1197
Member
Posts: 21
Joined: Sat Nov 19, 2011 13:40

by kirtash1197 » Post

Good job! The flowers could be uses for crafting. Perhaps seeds or potions.

ironzorg
Member
Posts: 46
Joined: Tue Aug 23, 2011 06:34

by ironzorg » Post

I will add flower pots, I lack decorative blocks ;)

ironzorg
Member
Posts: 46
Joined: Tue Aug 23, 2011 06:34

by ironzorg » Post

Link to the mod's archive added, wiki mods page edited as well.

User avatar
lmtea
Member
Posts: 35
Joined: Tue Oct 18, 2011 13:40

by lmtea » Post

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

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

by Hackeridze » Post

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?
My game: RTMG
GENTOO USER

sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Post

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
DON'T mention coding style!
(c) sapier all rights reserved

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

by neko259 » Post

Flower pots should be blocks, not items.
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

by neko259 » Post

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 :)
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Post

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.
DON'T mention coding style!
(c) sapier all rights reserved

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

by Hackeridze » Post

My game: RTMG
GENTOO USER

User avatar
Staffs
Member
Posts: 329
Joined: Thu Aug 04, 2011 13:16

by Staffs » Post

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...
I love mods :D

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

by neko259 » Post

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.
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

Nemo08
Member
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Post

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 :))

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

by neko259 » Post

I'm going to fork it and add some more features to make it correspond to my nature mod.
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Post

@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.
DON'T mention coding style!
(c) sapier all rights reserved

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

by neko259 » Post

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.
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Post

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
DON'T mention coding style!
(c) sapier all rights reserved

User avatar
MirceaKitsune
Member
Posts: 924
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune
Location: Romania, Bucharest

by MirceaKitsune » Post

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.

evildrummer
Member
Posts: 15
Joined: Sat Feb 11, 2012 13:32

by evildrummer » Post

Make a Zip file

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests