11-13-2012, 07:19 AM
Well, That's gonna take more than just copying a piece of code over and over while changing a few bits here and there. A nice foliage finisher would need a better algorithm than just randomly spraying stuff around
Off the top of my head, here's one better algorithm:
1, Pick the foliage to generate in this round
2, Pick a pair of X/Z coords, this shall be the "center" of the foliage group
3, Generate a few pieces of the foliage from step 1 around center from step 2 ("few" and "diameter" configurable, biome-dependent, etc.)
4, Repeat from start a few times
This way, if the foliage finisher decides to put in e. g. yellow flowers, it will make a group of them near each other.
Off the top of my head, here's one better algorithm:
1, Pick the foliage to generate in this round
2, Pick a pair of X/Z coords, this shall be the "center" of the foliage group
3, Generate a few pieces of the foliage from step 1 around center from step 2 ("few" and "diameter" configurable, biome-dependent, etc.)
4, Repeat from start a few times
This way, if the foliage finisher decides to put in e. g. yellow flowers, it will make a group of them near each other.