[Mod] Flowers [flowers]

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

[Mod] Flowers [flowers]

by ironzorg » Sun Dec 04, 2011 11:14

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 » Sun Dec 04, 2011 13:03

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 » Sun Dec 04, 2011 13:05

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: 29
Joined: Sat Oct 08, 2011 20:37
 

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

by bwog » Mon Dec 05, 2011 15:02

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 » Mon Dec 05, 2011 15:27

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 » Mon Dec 05, 2011 22:16

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 » Tue Dec 06, 2011 10:27

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

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

by ironzorg » Fri Dec 09, 2011 20:57

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 » Tue Dec 13, 2011 09:44

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 » Mon Dec 19, 2011 09:21

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 » Thu Dec 22, 2011 21:50

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: 801
Joined: Sun Jun 19, 2011 06:51

by neko259 » Sun Jan 01, 2012 18:37

Flower pots should be blocks, not items.
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj
 

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

by neko259 » Wed Jan 04, 2012 15:27

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 » Wed Jan 04, 2012 15:35

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
 

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

by Staffs » Thu Jan 05, 2012 11:29

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: 801
Joined: Sun Jun 19, 2011 06:51

by neko259 » Tue Jan 31, 2012 14:26

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 » Tue Jan 31, 2012 19:22

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: 801
Joined: Sun Jun 19, 2011 06:51

by neko259 » Tue Jan 31, 2012 20:52

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 » Tue Jan 31, 2012 21:06

@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: 801
Joined: Sun Jun 19, 2011 06:51

by neko259 » Tue Jan 31, 2012 21:10

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 » Tue Jan 31, 2012 21:31

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: 854
Joined: Sat May 21, 2011 22:31
Location: Romania, Bucharest
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune

by MirceaKitsune » Mon Feb 13, 2012 16:39

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
 

Next

Return to Old Mods



Who is online

Users browsing this forum: No registered users and 3 guests