![Free xray for minecraft](https://cdn2.cdnme.se/5447227/9-3/18_64e61dfc9606ee7f722fb462.png)
This function is a starting function for foliage creator. This is where all the calls are dispatched and workers are created.
![ue4 blueprint download ue4 blueprint download](https://d27nqrvkk22y65.cloudfront.net/product_image/image/1092763/big_1ece805920.png)
Number of Trees: the amount of trees to spawn.Start Worker Blueprint: Variables to control the forest generation: After we know the general idea how to create the forest lets jump to blueprints. But instead choosing the location from whole spawn area we use the range of a grid cell the tree was spawned. To put more life into the woods and to make them more natural we can use a simple trick: when tree is created it’s location is randomly chosen. But on the other hand there is no longer a problem with colliding models. By doing this, our forest from being created fully random now is fixed and dull and definitely does not look like a natural one. In one grid cell we can only spawn one tree. To create that we divided our foliage area into a grid. To achieve this we can give a tree that we want to spawn it’s own area. Trees can also spawn on another trees and we definitely want to avoid that behavior in our generator.
![ue4 blueprint download ue4 blueprint download](https://i.ytimg.com/vi/aYQA5lksfM0/maxresdefault.jpg)
All trees can spawn in one spot or create clumps, that means won’t be evenly distributed across area we want to populate. But this solution creates lot of problems. First thing that comes to mind is just randomly pick location from spawn area and place tree there.
![ue4 blueprint download ue4 blueprint download](https://r.mobirisesite.com/10240/assets/images/2018-07-06-22-07-18-1264x739.png)
![ue4 blueprint download ue4 blueprint download](https://64.media.tumblr.com/4449d9dbaea35155cb1702fbd8681cb7/tumblr_p5oscxzomr1wp4jg6o1_1280.jpg)
Created using blueprints (no coding needed)īefore jumping into explanation how to create a forest generator using blueprints we need to figure out how to randomly generate forest.
![Free xray for minecraft](https://cdn2.cdnme.se/5447227/9-3/18_64e61dfc9606ee7f722fb462.png)