Random Resource Spawning

I also moved onto a more complicated task of making the trees and rocks spawn in random shapes (or clumps) on the map. Much like they would in real life, like a forest of trees for example. My initial attempts at making this script caused the trees and rocks to always spawn in 5 by 5 squares, which was not the desired result. After some trial and error I managed to make the trees and rocks spawn in random shapes, and make these random shapes appear on the map at random locations.