Is there any way to make the script call a function when a certain brick is spawned?
So, if an "air" brick was spawned, it would delete as if it was mined. This would create air pockets, and if the probability of an "air" brick was high, it might create caves.
I want it to happen when spawned, not mined so you don't have to mine air.