In my Bio Industries mod, I have the ability for one to plant a seedling that will grow into a tree.
Depending on the terrain type, the seedling has a chance to turn into a tree. This part I have working.
The part I need help with, is what type of tree should grow there - Art of the tree, since certain trees only grow on certain terrain types.
I don't know how to select the tree art/type based on the terrain type. I know it's depending on the terrain temperature and water, but still have no idea how to implement this.
Currently, I have crude code where I've hard coded the tree type based on terrain, but would like to make this dynamic and match the actual Vanilla (and other mods like Alien Biomes)
Can someone please help me convert the code I have below and attached to make my hard coded tree selection dynamic to auto select to correct tree please.
I've attached my full mod and also just the code in question.
Tree Code
Thanks.[/quote]