Twice? I don't multiply both X and Z then? I don't multiply in this line?
generateSurface(world, random, chunkX*16, chunkZ*16);?
I'm so lost, just going to restart from scratch, at least that'll be better than talking in riddles and replacing my code with code I've never heard of before, to find individual blocks, which I have no idea why I'm even doing to spawn a structure.
This obviously makes some sense to you but it makes absolutely none to me.