package com.juanwan11_magicnation.structures;

import java.util.Random;

import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;

public class WorldGenStarterStructure extends WorldGenerator {

	
    public boolean generate(World world, Random random, int x, int y, int z)
    {
        while (world.isAirBlock(x, y, z) && y > 2)
        {
            --y;
        }
        world.setSpawnLocation(x, y, z);
        
        for (int i = 0; i < 10; i++) {
            for (int g = 0; g < 10; g++) {
                for (int a = 0; a <= 10; a++) {
                    
                	int blockx = x+i;
                    int blockz = z+g;
                	int blocky = y+a;
                    
                	if (a != 10 && a!=0) {
                        if ((i >= 0 && g == 0) || (i >= 0 && g == 10) ||(i == 0 && g >= 0) || (i == 10 && g >= 0))
                        	world.setBlock(blockx, blocky, blockz, Blocks.stonebrick);      
                    } else {
                    	world.setBlock(blockx, blocky, blockz, Blocks.stonebrick);
                  }
                }
              }
            }
        
        return true;
    }
}

@@ -255,21 +255,16 @@
 tor %7B%0A%0A%09
-%0A    
 public b
@@ -331,23 +331,14 @@
 t z)
-%0A    %7B%0A        
+ %7B%0A%0A%09%09
 whil
@@ -379,54 +379,26 @@
 %3E 2)
-%0A        %7B%0A            --y;%0A        %7D%0A        
+ %7B%0A%09%09%09--y;%0A%09%09%7D%0A%0A%09%09
 worl
@@ -426,33 +426,19 @@
  y, z);%0A
-        %0A        
+%0A%09%09
 for (int
@@ -460,36 +460,33 @@
  i++) %7B%0A        
-    
+%09
 for (int g = 0; 
@@ -508,24 +508,18 @@
         
-        
+%09%09
 for (int
@@ -546,84 +546,37 @@
 ) %7B%0A
-                    %0A                %09int blockx = x+i;%0A                    
+%0A%09%09%09%09%09int blockx = x+i;%0A%09%09%09%09%09
 int 
@@ -584,33 +584,21 @@
 lock
-z = z+g;%0A                
+y = y+a;%0A%09%09%09%09
 %09int
@@ -607,54 +607,22 @@
 lock
-y = y+a;%0A                    %0A                
+z = z+g;%0A%0A%09%09%09%09
 %09if 
@@ -638,39 +638,23 @@
 && a
+ 
 !=
+ 
 0) %7B%0A
-                        
+%09%09%09%09%09%09
 if (
@@ -697,16 +697,17 @@
 = 10) %7C%7C
+ 
 (i == 0 
@@ -745,32 +745,14 @@
 0))%0A
-                        
+%09%09%09%09%09%09
 %09wor
@@ -817,57 +817,27 @@
    %0A
-                    %7D else %7B%0A                    
+%09%09%09%09%09%7D else %7B%0A%09%09%09%09%09
 %09wor
@@ -896,93 +896,35 @@
 k);%0A
-                  %7D%0A                %7D%0A              %7D%0A            %7D%0A        %0A        
+%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09
 retu
@@ -932,16 +932,13 @@
 n true;%0A
-    
+%09
 %7D%0A%7D%0A

Update WorldGenStarterStructure.java