[Mod] Flowers - VanessaE edition ;-) [20120731][flowers]

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

[Mod] Flowers - VanessaE edition ;-) [20120731][flowers]

by VanessaE » Post

This mod is obsolete, as its functionality has long since been added to minetest_game. If you need more flower-type plants than what minetest_game provides, please use Plantlife instead. That modpack covers what minetest_game didn't pick up from this mod, plus it adds other related mods.

This simple mod is a rewrite of Ironzorg's original Flowers mod (about 75% of the code has been replaced or rewritten). It uses more modern functions and far less code than the original, and so hopefully it'll cause less CPU load than before.

It also provides a couple of extra features: Flowers grow just a bit faster than before, and now they will only spawn when there's enough light (above roughly 1/4 that of full daylight). Flowers and cotton will spawn on both grass and bare dirt now, and waterlilies of course will spawn only on water.

It is, to the best of my knowledge, compatible with all other mods that used the previous version (i.e. as a source of colors or something), with the exception of code that uses functions found in the old mod (see below).

License: N/A
Download: N/A

Screenshots
(patterned after Ironzorg's original thread)
Spoiler
Image
Image
Image
Last edited by VanessaE on Wed Nov 06, 2013 00:45, edited 1 time in total.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
LolManKuba
Member
Posts: 939
Joined: Fri Feb 10, 2012 22:36
Location: Ontario, Canada
Contact:

by LolManKuba » Post

VaanessaE edition hmmm...
Welcome back new flowers mod!!!!

Spots
Member
Posts: 124
Joined: Tue Jul 24, 2012 12:12
Location: Outta my mind someplace.

by Spots » Post

been running it on my home computer so my son and i can play togeather and in 4-5 hours of play you get some really really tall trees that need trimmed lol ,other then that works great
Last edited by Spots on Tue Jul 31, 2012 19:07, edited 1 time in total.

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Heh yeah the trees being tall is something in the nature mod. Those should be shortened abnd *widened* a bit I think. Unless the mod is trying to turn apple trees into California Redwoods ;-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

mauvebic
Member
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Post

I thought about your nodebox pot idea... what about flower-boxes for windows? squarish ones wouldnt require alot of nodebox defs :-)

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Not a bad idea, but that's something that would require a new set of flower textures as well - ideally one would want multiple flowers per square meter, possibly even mixed varieties similar to the ones you had in madblocks, not to mention figuring out meaningful recipes :-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

mauvebic
Member
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Post

well flowers stand at the center of the node? you could make the flowerbox nodebox finish a bit beyond that point (between 0.1 and 0.5) - then they would align. Ideally you want to design containers that fit your flowers, not come up with different flowers for each container :-)

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

I don't understand what MAX_RATIO and spawnchance are for. Couldn't you just increase the interval of the abm?
Last edited by Menche on Tue Jul 31, 2012 23:50, edited 1 time in total.
An innocent kitten dies every time you top-post.

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

Awesome, i like the spawn avoid argument in the spawn_on_surfaces function. Will put it in my plants and harvest mod. PilzAdam is suggestion to spawn plant and maybe flowers on biome spawn. Maybe flowers should have similar spawning.

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Menche: those arguments are as Ironzorg originally intended them. If you change the interval of the ABM, yes it'll affect the rate at which the flowers grow, but changing the spawnchance also does the same, without affecting the CPU usage of the mod. Max ratio is kind of a fudge number.

I opted not to change how that all works because I'm still learning the details of ABMs, and it works just fine as-is. :-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

just as a line of warning my server has begun to crash since i started using your addition something about farobjects not being deleted
Edit: and there was nothing else changed in that time i checked
Last edited by sdzen on Wed Aug 01, 2012 03:16, edited 1 time in total.

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Strange, it seems to work fine for me? The flowers are just normal nodes, there's nothing about the code that should crash it. Are you sure you're not getting this from some other mod?
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

yes im quite sure

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

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

by ironzorg » Post

Looks good.

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Post

you could add lines like that:

Code: Select all

minetest.register_craft({
    type = "cooking",
    output = "dye:black 2",
    recipe = "default:coal_lump",
})
minetest.register_craft({
    type = "cooking",
    output = "dye:green 2",
    recipe = "default:cactus",
})
minetest.register_craft({
    type = "cooking",
    output = "dye:red 2",
    recipe = "flowers:flower_rose",
})
minetest.register_craft({
    type = "cooking",
    output = "dye:blue 2",
    recipe = "flowers:flower_viola",
})
minetest.register_craft({
    type = "cooking",
    output = "dye:white 2",
    recipe = "flowers:flower_dandelion_white",
})
minetest.register_craft({
    type = "cooking",
    output = "dye:yellow 2",
    recipe = "flowers:flower_dandelion_yellow",
})
minetest.register_craft({
    type = "cooking",
    output = "dye:orange 2",
    recipe = "flowers:flower_tulip",
})
minetest.register_craft({
    type = "cooking",
    output = "dye:brown 2",
    recipe = "default:dry_shrub",
})
so we could have then all the dyes from default game here - i mean latest build here 0.4.2rc1, not 0.4.1
i already included that in my mod but it rather should be in yours

no need to add anythin else, all mixing recipes and gfx are built-in

just maybe to add a way to produce wool. add flax plant, let it grow. when harvested drop strings (random 1-4) and seeds (1-2).
then allow it to plant manually on dirt near water. strings could be used then to craft wool like 4xstrings -> 1 wool.
(idea comes from mod for Minecraft - RedPower2 as alternative to shear sheeps)

This way u could make easy way from dye sources to wool and let other mod use dyes.
Last edited by RealBadAngel on Wed Aug 01, 2012 08:10, edited 1 time in total.

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

A similar version of the dyes you suggested are already in my Unified Dyes mod.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Post

VanessaE wrote:A similar version of the dyes you suggested are already in my Unified Dyes mod.
no offence but unifieddyes as of 0.4.2 are obsolete
the problem is they produce different dyes than that are already in the game
Last edited by RealBadAngel on Wed Aug 01, 2012 15:14, edited 1 time in total.

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Unified Dyes isn't obsolete because it produces far more colors than the one in the game. The game's built-in dyes were added after I wrote mine, and were done in such a way that the two complement each other. Besides, there are no crafting recipes for the built-in ones.
Last edited by VanessaE on Wed Aug 01, 2012 16:54, edited 1 time in total.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Post

VanessaE wrote:Unified Dyes isn't obsolete because it produces far more colors than the one in the game. The game's built-in dyes were added after I wrote mine, and were done in such a way that the two complement each other. Besides, there are no crafting recipes for the built-in ones.
Complement each other? So how to craft them? Smelt unifieddyes ones down to default ones or somethin?
Yeah there are no recipes and yes you are blockin natural ones with unifieddyes.
either some1 will just throw away unifieddyes and make use just of flowers with additional recipes mod for dyes,
or rewrite whole flower mod to fit defaults.
thats my opinion.
Last edited by RealBadAngel on Thu Aug 02, 2012 17:25, edited 1 time in total.

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Update: Tuned out the random-numbers-inside-ABM stuff. Uses the ABM's chance setting instead. Should be approximately the same as before, but hopefully using a tad less CPU. See the Nature Pack thread for related updates.

If anyone's got a better blue geranium texture, please let me know.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
vicscandl
New member
Posts: 7
Joined: Fri Jul 27, 2012 00:16
Location: southern california

by vicscandl » Post

V, as always, love your mods... any chance i could get you to work in an algae plant for my yet to be released mod? I'm already using your vessels mod as a dependent and would love to work with you on expanding the types of glassware available for use... either PM or hit me up when i make it back to IRC... stupid w*** has me all timecrunched!!!

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Algae eh? Hm. Where it should spawn? Under what conditions?

As for vessels, I won't be adding any additional glassware, as that mod is targeted at inclusion into the game's defaults, however I could put such things into a "glassware" or "more vessels" sort of mod.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
vicscandl
New member
Posts: 7
Joined: Fri Jul 27, 2012 00:16
Location: southern california

by vicscandl » Post

i'd say perhaps dirt near water?

no worries on the extra glassware, i'll just include it in the tools section of my mod.. :)

once again, thanks for the mods that my son cracks out on....

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

I was thinking the same - maybe at the shoreline, within 2 nodes of the water, and only on either bare dirt, stone, or cobble.

The next question then is: What kind of algae should it be modeled after? Some types only grow on wet, exposed surfaces, some only grow underwater, etc.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
vicscandl
New member
Posts: 7
Joined: Fri Jul 27, 2012 00:16
Location: southern california

by vicscandl » Post

100% on board with your spawn choice, good call.

well, specifically, the kind i'm "using" for my work is called Chlamydomonas reinhardtii

http://en.wikipedia.org/wiki/Chlamydomonas_reinhardtii

i'm willing to be as generic as possible... :) ease of use kinda choice...
Last edited by vicscandl on Mon Aug 06, 2012 07:30, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests