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 blocky = y+a;
                	int blockz = z+g;
                    
                	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;
    }
}

@@ -256,20 +256,17 @@
 or %7B%0A%0A%09%0A
-    
+%09
 public b
@@ -330,30 +330,21 @@
  int z)%0A
-    %7B%0A        
+%09%7B%0A%09%09
 while (w
@@ -382,53 +382,26 @@
  2)%0A
-        %7B%0A            --y;%0A        %7D%0A        
+%09%09%7B%0A%09%09%09--y;%0A%09%09%7D%0A%09%09
 worl
@@ -438,32 +438,33 @@
        %0A        
+%09
 for (int i = 0; 
@@ -478,36 +478,34 @@
  i++) %7B%0A        
-   
- 
+%09%09
 for (int g = 0; 
@@ -527,24 +527,19 @@
         
-        
+%09%09%09
 for (int
@@ -566,45 +566,12 @@
 ) %7B%0A
-                    %0A                
+%0A%09%09%09
 %09int
@@ -585,32 +585,19 @@
  = x+i;%0A
-                
+%09%09%09
 %09int blo
@@ -607,32 +607,19 @@
  = y+a;%0A
-                
+%09%09%09
 %09int blo
@@ -633,45 +633,12 @@
 +g;%0A
-                    %0A                
+%0A%09%09%09
 %09if 
@@ -659,32 +659,19 @@
 != 0) %7B%0A
-                
+%09%09%09
 %09%09if ((i
@@ -760,32 +760,13 @@
 0))%0A
-                        
+%09%09%09%09%09
 %09wor
@@ -831,57 +831,27 @@
    %0A
-                    %7D else %7B%0A                    
+%09%09%09%09%09%7D else %7B%0A%09%09%09%09%09
 %09wor
@@ -926,58 +926,26 @@
     
-  %7D%0A                %7D%0A              %7D%0A            
+%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09
 %7D%0A  
@@ -951,24 +951,18 @@
        %0A
-        
+%09%09
 return t
@@ -966,16 +966,13 @@
 n true;%0A
-    
+%09
 %7D%0A%7D%0A

Update WorldGenStarterStructure.java