I'm struggling with building mechanics

im working on a minecraft game in flowlab and making a random level gen but the way that i had the blocks being placed previously doesnt work anymore

im trying to make the block “cobble” spawn on top of grass until about 20 blocks high then 1 bedrock layer



Cailem has a great example of this that he used for his Minecraft game