How do we make flowers reproduce is minetest 5.0?

User avatar
New member
Posts: 6
Joined: Tue May 21, 2019 19:49

How do we make flowers reproduce is minetest 5.0?

by damongang » Sun Jun 09, 2019 19:05

We used to be able to plant flowers in an L shape on dirt/grass and they would spread. How do we make that work in minetest 5.0?
I like that feature but my wife REALLY likes that feature.

User avatar
Posts: 1721
Joined: Fri May 18, 2012 20:27

Re: How do we make flowers reproduce is minetest 5.0?

by Topywo » Mon Jun 10, 2019 09:20

Without modding or changing the minetest_game mods, remove all grasses and ferns from the area where you want to spread the flowers.

User avatar
Posts: 3782
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: How do we make flowers reproduce is minetest 5.0?

by Wuzzy » Fri Jun 14, 2019 14:01

Are you talking about Minetest Game?

The flower spread rules have been changed. In 0.4.17 and before, it was:

First, a definition: “flora node”. A “flora node” is any node that is either a flower or any grass (i.e. Grass, Dry Grass, Jungle Grass, Marram Grass). See also:
There is not actually a rule for spreading flowers, but a rule for spreading both grass and flowers. It's the same rule for both of them

Each flora node can spawn a new flora node. First, it must be on a block on which saplings would grow (like dirt or dirt with grass). Then, there must be enough light (light level > 13).
Now, a new flora node is spawned if and only if there are at most 4 flora nodes (including itself) in a cube of 9×9×9 around it, with the flower that is being checked by Minetest in the center. The new flora node will be spawned randomly in that 9×9×9 cube.

The new rule since 5.0.0 is almost the same, but the new limit is a maximum of 3 flora nodes now.

This also explains why your “L” shape doesn't work anymore, those are now too many flowers packed together.

Oh: I'm not sure if the cube size in 0.4.17 was actually 9×9×9, but it sure is 9×9×9 in 5.0.0.

To spread, a flower must:
  • Be on Dirt with Grass or another sapling-friendly node
  • In light (light level >=13)
  • Around an area of 9×9×9, not have more than 3 flowers or grasses (including itself)
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
Posts: 3552
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: How do we make flowers reproduce is minetest 5.0?

by paramat » Sat Jun 15, 2019 01:32

Speaking as a MTGame core dev, the flower spreading system is really bad, i can think of far better ways to do it. However it probably can't be changed because so many games and mods depend on MTGame being the way it is.

Posts: 566
Joined: Mon Dec 29, 2014 08:07
Location: USA
GitHub: ShadMOrdre
In-game: shadmordre

Re: How do we make flowers reproduce is minetest 5.0?

by ShadMOrdre » Sat Jun 15, 2019 02:15

In my lib_ecology mod, I had recently considered using node_timers to "play" conways game of life. Each timer event, I would check for how many of that node type was near; if too few, death from isolation; if just enough, either spawn new plant or blossom; and if too many, death by overcrowding. This is very similar to what exists already, just using node timers instead of abms. This should work for plants, grass, flowers, mushrooms, saplings and trees, because they all essentially use the same logic. In lib_ecology, they mostly use the same code.
MY MODS: lib_ecology lib_materials lib_clouds lib_node_shapes ---- Inspired By: Open Source Virtual World Simulator Opensimulator.

Return to Feature Discussion

Who is online

Users browsing this forum: No registered users and 1 guest