Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.12] Generation boundrys


Recommended Posts

I know that you have to set the X and Z in a specific boundry to prevent trying to generate into chunks that dont exist yet upon generation but what do people generally use? 

 

I was always under the impression of

	ChunkX/Z * 16 + this.rand.nextInt(16) + 8
	

being acceptable but it clearly isn't if i'm getting log telling me that its causing problems as well as slow generation because of it

 

Log output

	[19:48:45] [Server thread/WARN] [FML]: Journey Into the Light loaded a new chunk [-17, -8] in dimension 0 (overworld) while populating chunk [-18, -9], causing cascading worldgen lag.
[19:48:45] [Server thread/WARN] [FML]: Please report this to the mod's issue tracker. This log can be disabled in the Forge config.
	

 

	int x1 = chunkX * 16, z1 = chunkZ * 16;
	        if(rand.nextInt(9) == 0) {
            x = x1 + this.rand.nextInt(16) + 8;
            z = z1 + this.rand.nextInt(16) + 8;
            int yCoord = rand.nextInt(128) + 1;
                new WorldGenSmeltery().generate(worldObj, rand, new BlockPos(x, yCoord, z));
        }
	

 

Generation file

	@Override
    public boolean generate(World w, Random r, BlockPos pos) {
        int x = pos.getX(), y = pos.getY() - 1, z = pos.getZ();
        if(locationIsValidSpawn(w, x, y, z)) return true;
        
        w.setBlockState(new BlockPos(x, y + 5, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x, y + 5, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 1, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 4), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 5), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 7), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 8), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 2, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 4), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 5), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 7), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 8), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 3, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 4, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 6, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 1, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        //w.setBlockState(new BlockPos(x + 2, y + 1, z + 5), JourneyBlocks.eucaChest.getStateFromMeta(3));
        
        /* TileEntityJourneyChest te = (TileEntityJourneyChest)w.getTileEntity(new BlockPos(x + 2, y + 1, z + 5));
        if(te != null) {
            //WeightedRandomChestContent.generateChestContents(r, Lists.newArrayList(loot), te, 4);
        } */
        
        w.setBlockState(new BlockPos(x + 2, y + 1, z + 6), JourneyBlocks.eucaChest.getStateFromMeta(3));
        w.setBlockState(new BlockPos(x + 2, y + 1, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 1, z + 9), JourneyBlocks.eucaChest.getStateFromMeta(3));
        
        /* TileEntityJourneyChest te2 = (TileEntityJourneyChest)w.getTileEntity(new BlockPos(x + 2, y + 1, z + 9));
        if(te2 != null) {
            //WeightedRandomChestContent.generateChestContents(r, Lists.newArrayList(loot), te2, 12);
        } */
        
        w.setBlockState(new BlockPos(x + 2, y + 1, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 2, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 2, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 3, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 3, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 3, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 4, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 4, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 4, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 6, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 7, z + 12), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 1, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 1, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 1, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 2, z + 2), JourneyBlocks.eucaBricks.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 3, y + 2, z + 10), JourneyBlocks.eucaBricks.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 3, y + 3, z + 2), JourneyBlocks.eucaBricks.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 3, y + 3, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 3, z + 10), JourneyBlocks.eucaBricks.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 3, y + 4, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 4, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 4, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 6, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 7, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 8, z + 12), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 1, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 1, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 2, z + 2), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 4, y + 2, z + 10), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 4, y + 3, z + 2), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 4, y + 3, z + 10), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 4, y + 4, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 4, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 6, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 7, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 8, z + 12), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 1, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 1, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 2, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 2, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 3, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 3, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 4, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 6, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 7, z + 12), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 1, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 6), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 7), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 8), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 2, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 6), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 7), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 8), Blocks.STAINED_GLASS_PANE.getStateFromMeta(1));
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 3, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 4, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 6, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 7, y + 5, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
	        if(!w.isRemote) {
            EntityAlloyMender smith = new EntityAlloyMender(w);
            smith.setLocationAndAngles(x + 4, y + 2, z + 4, 0.0F, 0.0F);
            w.spawnEntity(smith);
        }
        return false;
    }
	

Former developer for DivineRPG, Pixelmon and now the maker of Essence of the Gods

Link to post
Share on other sites

First of all, converting from chunk to block coordinates happens via the following formulas:

block = chunk << 4;

chunk = block >> 4;

Do not use multiplication and division, they give wrong results with negative coordinates.

 

This problem was originally explained on Reddit, and that post still has the best explanation, in my opinion.

You cannot generate more than max. 2x2 chunks at a time, as shown by this image from the above mentioned Reddit post. If you need to do so, you need to ideally split your generation up so that it happens over multiple calls to your generator.

Link to post
Share on other sites
3 hours ago, diesieben07 said:

You cannot generate more than max. 2x2 chunks at a time, as shown by this image from the above mentioned Reddit post.

Which is why, if you're clever, you can generate structures up to 32x32 blocks in size. Had an argument with someone on Discord about this, heh.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.