Plant Growth Algorithm

Started by Thorin, May 31, 2012, 05:40:22 PM

Previous topic - Next topic

Thorin

Found this at the same place as the statistical analysis enchantments: http://pernsteiner.org/minecraft/cropgrowth/algo.html

The interesting point is right near the beginning: for each chunk, 20 random blocks are picked, and those 20 blocks are checked for plants, and those plants are checked for whether they should grow or not.  So the more plant blocks there are in the chunk, the more likely a plant block will be selected vs a non-plant block.

To me, that means that having two layers of farmland with plants on them means there's a greater chance one or more of your plants grow.  I might end up making a multi-layer wheat farm just to try that out and see what happens.
Prayin' for a 20!

gcc thorin.c -pedantic -o Thorin
compile successful