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 blockx, int blocky, int blockz) {

		while (world.isAirBlock(blockx, blocky, blockz) && blocky > 2) {
			--blocky;
		}

		world.setSpawnLocation(blockx, blocky, blockz);

		//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 = blockx+coords[i];
			int y = blocky+coords[i+1];
			int z = blockz+coords[i+2];
			world.setBlock(x, y, z, Blocks.stonebrick);
		}
		
		return true;
	}
}

@@ -552,15 +552,15 @@
 0,0,
-1
+0
 ,0,0,
-2
+0
 ,0,0
@@ -616,23 +616,32 @@
 %0A%09%09%09
-int x = 
+world.setBlock(
 blockx
-+
+ + 
 coor
@@ -649,28 +649,19 @@
 s%5Bi%5D
-;%0A%09%09%09int y =
+,
  blocky
-+
+ + 
 coor
@@ -671,28 +671,19 @@
 i+1%5D
-;%0A%09%09%09int z =
+,
  blockz
-+
+ + 
 coor
@@ -693,35 +693,8 @@
 i+2%5D
-;%0A%09%09%09world.setBlock(x, y, z
 , Bl

Update WorldGenStarterStructure.java