Help!!! I can't figure out what is wrong with my world gen script

I recommend you edit the post to add code-tags, makes it easier to read.