Thanks for the reply coolboy4531,
I've been messing around with my code and you were right, one of my (many) problems was that the code tried to remove blocks from adjacent chunks, forcing those chunks to generate and then repeating that process infinity.
but it still crashes when I try to generate a world...
my latest mod class:
https://gist.github.com/anonymous/446ad3072b132fd63bed
and the generator class:
https://gist.github.com/anonymous/903da7919ed1dde12d79
crash report:
https://gist.github.com/anonymous/a9612af3b09b2ee64477
I've tried several thing to figure out what's going wrong including:
--making a block that calls the destroyChunk method when it is right clicked, and it works perfectly
--it doesn't matter if I do setBlock (x, y, z, Blocks.air); or setBlockToAir (x, y, z); both crash
--I have it print out what block it destroys, and for a while there was a pattern, the first (~5) times it crashed when it started destroying a new x coordinate. but then it crashed on the last x a couple times... and just now it crashed half way through... so idk what's going on there.
I'm out of ideas on what could be going wrong with this, it's likely that I'm missing something because I'm new to modding...
thanks for taking the time to read this everyone.