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);

		//Array list containing x,y,z multiples
		int[] coords = {0,0,0,1,0,0,2,0,0}
		for (int i = 0; i < coords.length/3; i=+3) {
			int x = coords[i];
			int y = coords[i+1];
			int z = coords[i+2];
			world.setBlock(x, y, z, Blocks.stonebrick);
		}
		
		return true;
	}
}

@@ -315,22 +315,37 @@
 int 
+block
 x, int 
+block
 y, int 
+block
 z) %7B
@@ -376,20 +376,40 @@
 ock(
-x, y, 
+blockx, blocky, block
 z) && 
+block
 y %3E 
@@ -418,16 +418,21 @@
  %7B%0A%09%09%09--
+block
 y;%0A%09%09%7D%0A%0A
@@ -456,22 +456,37 @@
 ocation(
-x, y, 
+blockx, blocky, block
 z);%0A%0A%09%09/
@@ -560,16 +560,17 @@
 0,2,0,0%7D
+;
 %0A%09%09for (

Update WorldGenStarterStructure.java