Jump to content

[1.12.2] Dimension Generation lag


The_SlayerMC

Recommended Posts

Hi the log keeps out putting this 

 

	[09:24:31] [Server thread/WARN] [FML]: Journey Into the Light loaded a new chunk [21, 16] in dimension 20 (Euca) while populating chunk [21, 15], causing cascading worldgen lag.
[09:24:31] [Server thread/WARN] [FML]: Please report this to the mod's issue tracker. This log can be disabled in the Forge config.
	

 

And also, why wont mobs spawn in my custom dimensions? It makes no sense, its the same code as its always been until the update

 

	        EntityRegistry.addSpawn(EntityEucaCharger.class, 20, 1, 1, EnumCreatureType.MONSTER, euca);
 
	

 

dimension generator

	public class ChunkProviderEuca implements IChunkGenerator {
	    private Random rand;
    private NoiseGeneratorOctaves noiseGen1, noiseGen2, noiseGen3, noiseGen5, noiseGen6;
    private World worldObj;
    private double[] noiseArray;
    private Biome[] biomesForGeneration;
    private double[] noise3, noise1, noise2, noise5, noise6;
    private ArrayList<WorldGenerator> trees;
	    public ChunkProviderEuca(World var1, long var2){
        this.worldObj = var1;
        this.rand = new Random(var2);
        this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16);
        this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16);
        this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8);
        new NoiseGeneratorOctaves(this.rand, 4);
        new NoiseGeneratorOctaves(this.rand, 4);
        this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10);
        this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16);
        new WorldGenEucaWater(Blocks.FLOWING_WATER, true);
        new WorldGenEucaWater(Blocks.FLOWING_WATER, false);
	        trees = new ArrayList<WorldGenerator>(3);
        trees.add(new WorldGenEucaTree());
        trees.add(new WorldGenEucaTree2());
        trees.add(new WorldGenEucaTree3());
        trees.add(new WorldGenEucaTree4());
        trees.add(new WorldGenEucaTree5());
    }
	    @Override
    public Chunk generateChunk(int par1, int par2) {
        this.rand.setSeed(par1 * 391279512714L + par2 * 132894987741L);
        ChunkPrimer primer = new ChunkPrimer();
        this.biomesForGeneration = this.worldObj.getBiomeProvider().getBiomesForGeneration(this.biomesForGeneration, par1 * 16, par2 * 16, 16, 16);
        this.generateTerrain(par1, par2, primer);
        this.replaceBlocksForBiome(primer);
        Chunk chunk = new Chunk(this.worldObj, primer, par1, par2);
        chunk.generateSkylightMap();
        return chunk;
    }
	    public void generateTerrain(int var1, int var2, ChunkPrimer primer) {
        byte b0 = 2;
        int k = b0 + 1;
        byte b1 = 33;
        int l = b0 + 1;
        this.noiseArray = this.initializeNoiseField(this.noiseArray, var1 * b0, 0, var2 * b0, k, b1, l);
	        for (int i1 = 0; i1 < b0; ++i1) {
            for (int j1 = 0; j1 < b0; ++j1) {
                for (int k1 = 0; k1 < 32; ++k1) {
                    double d0 = 0.25D;
                    double d1 = this.noiseArray[((i1 + 0) * l + j1 + 0) * b1 + k1 + 0];
                    double d2 = this.noiseArray[((i1 + 0) * l + j1 + 1) * b1 + k1 + 0];
                    double d3 = this.noiseArray[((i1 + 1) * l + j1 + 0) * b1 + k1 + 0];
                    double d4 = this.noiseArray[((i1 + 1) * l + j1 + 1) * b1 + k1 + 0];
                    double d5 = (this.noiseArray[((i1 + 0) * l + j1 + 0) * b1 + k1 + 1] - d1) * d0;
                    double d6 = (this.noiseArray[((i1 + 0) * l + j1 + 1) * b1 + k1 + 1] - d2) * d0;
                    double d7 = (this.noiseArray[((i1 + 1) * l + j1 + 0) * b1 + k1 + 1] - d3) * d0;
                    double d8 = (this.noiseArray[((i1 + 1) * l + j1 + 1) * b1 + k1 + 1] - d4) * d0;
                    for (int l1 = 0; l1 < 4; ++l1) {
                        double d9 = 0.125D;
                        double d10 = d1;
                        double d11 = d2;
                        double d12 = (d3 - d1) * d9;
                        double d13 = (d4 - d2) * d9;
                        for (int i2 = 0; i2 < 8; ++i2) {
                            double d14 = 0.125D;
                            double d15 = d10;
                            double d16 = (d11 - d10) * d14;
                            for (int j2 = 0; j2 < 8; ++j2) {
                                IBlockState iblockstate = null;
                                if(d15 > 0.0D) iblockstate = JourneyBlocks.eucaStone.getDefaultState();
                                int k2 = i2 + i1 * 8;
                                int l2 = l1 + k1 * 4;
                                int i3 = j2 + j1 * 8;
                                primer.setBlockState(k2, l2, i3, iblockstate);
                                d15 += d16;
                            }
                            d10 += d12;
                            d11 += d13;
                        }
                        d1 += d5;
                        d2 += d6;
                        d3 += d7;
                        d4 += d8;
                    }
                }
            }
        }
    }
	    public final void replaceBlocksForBiome(ChunkPrimer c) {
        for (int i = 0; i < 16; ++i) {
            for (int j = 0; j < 16; ++j) {
                byte b0 = 1;
                int k = -1;
                IBlockState iblockstate = JourneyBlocks.eucaGrass.getDefaultState();
                IBlockState iblockstate1 = JourneyBlocks.eucaStone.getDefaultState();
	                for (int l = 127; l >= 0; --l) {
                    IBlockState iblockstate2 = c.getBlockState(i, l, j);
                    if (iblockstate2.getBlock().getMaterial(iblockstate2) == Material.AIR) 
                        k = -1;
	                    else if (iblockstate2.getBlock() == JourneyBlocks.eucaStone) {
                        if (k == -1) {
                            if (b0 <= 0) {
                                iblockstate = Blocks.AIR.getDefaultState();
                                iblockstate1 = JourneyBlocks.eucaGrass.getDefaultState();
                            }
                            k = b0;
                            if(l >= 0) {
                                c.setBlockState(i, l, j, iblockstate);
                            } else {
                                c.setBlockState(i, l, j, iblockstate1);
                                if(c.getBlockState(i, l - 1, j) == JourneyBlocks.eucaStone.getDefaultState()) c.setBlockState(i, l - 1, j, iblockstate1);
                                //if(c.getBlockState(i, l - 2, j) == EssenceBlocks.eucaStone.getDefaultState() && rand.nextInt(2) == 0) c.setBlockState(i, l - 2, j, iblockstate1);
                            }
                        }
                        else if (k > 0) {
                            --k;
                            c.setBlockState(i, l, j, iblockstate1);
                            if(c.getBlockState(i, l - 1, j) == JourneyBlocks.eucaStone.getDefaultState()) c.setBlockState(i, l - 1, j, iblockstate1);
                            //if(c.getBlockState(i, l - 2, j) == EssenceBlocks.eucaStone.getDefaultState() && rand.nextInt(2) == 0) c.setBlockState(i, l - 2, j, iblockstate1);
                        }
                    }
                }
            }
        }
    }
	    private double[] initializeNoiseField(double[] var1, int var2, int var3, int var4, int var5, int var6, int var7) {
        if(var1 == null) var1 = new double[var5 * var6 * var7];
        double var8 = 684.412D;
        double var10 = 684.412D;
        this.noise5 = this.noiseGen5.generateNoiseOctaves(this.noise5, var2, var4, var5, var7, 1.121D, 1.121D, 0.5D);
        this.noise6 = this.noiseGen6.generateNoiseOctaves(this.noise6, var2, var4, var5, var7, 1.0D, 1.0D, 0.5D);
        var8 *= 2.0D;
        this.noise3 = this.noiseGen3.generateNoiseOctaves(this.noise3, var2, var3, var4, var5, var6, var7, var8 / 80.0D, var8 / 160.0D, var8 / 80.0D);
        this.noise1 = this.noiseGen1.generateNoiseOctaves(this.noise1, var2, var3, var4, var5, var6, var7, var8, var10, var8);
        this.noise2 = this.noiseGen2.generateNoiseOctaves(this.noise2, var2, var3, var4, var5, var6, var7, var8, var10, var8);
        int var12 = 0;
        int var13 = 0;
        for(int var15 = 0; var15 < var5; var15++) {
            for(int var17 = 0; var17 < var7; var17++) {
                double var19 = (this.noise5[var13] + 64.0D) / 64.0D;
                double var21 = this.noise6[var13] / 6000.0D;
                if(var21 < 0.0D) var21 = -var21 * 0.3D;
                var21 = var21 * 3.0D - 2.0D;
                if(var21 > 1.0D) var21 = 1.0D;
                var21 /= 8.0D;
                var21 = 0.0D;
                if(var19 < 0.0D) var19 = 0.0D;
                var19 += 0.5D;
                var21 = var21 * var6 / 8.0D;
                var13++;
                double var23 = var6 / 2.0D;
                for(int var25 = 0; var25 < var6; var25++) {
                    double var26 = 0.0D;
                    double var28 = (var25 - var23) * 8.0D / var19;
                    if(var28 < 0.0D) var28 *= -1.0D;
                    double var30 = this.noise1[var12] / 128.0D / 1.5D;
                    double var32 = this.noise2[var12] / 128.0D;
                    double var34 = (this.noise3[var12] / 10.0D + 1.0D);
                    if(var34 < 0.0D) var26 = var30;
                    else if(var34 > 1.0D) var26 = var32;
                    else var26 = var30 + (var32 - var30) * var34;
                    var26 -= 8.0D;
                    byte var36 = 32;
                    double var37;
                    if(var25 > var6 - var36) {
                        var37 = (var25 - (var6 - var36)) / (var36 - 1.0F);
                        var26 = var26 * (1.0D - var37) + -30.0D * var37;
                    }
                    var36 = 8;
                    if(var25 < var36) {
                        var37 = (var36 - var25) / (var36 - 1.0F);
                        var26 = var26 * (1.0D - var37) + -30.0D * var37;
                    }
                    var1[var12] = var26;
                    ++var12;
                }
            }
        }
        return var1;
    }
	    @Override
    public void populate(int i, int j) {
        int x1 = i * 16;
        int z1 = j * 16;
        int x, z, times;
        x = x1 + this.rand.nextInt(16) + 8;
        z = z1 + this.rand.nextInt(16) + 8;
	        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;
            if(isBlockTop(x, yCoord - 1, z, JourneyBlocks.eucaGrass)) {
                new WorldGenSmeltery().generate(worldObj, rand, new BlockPos(x, yCoord, z));
            }
        }
	        if(rand.nextInt(10)==0) {
            x = x1 + this.rand.nextInt(16) + 8;
            z = z1 + this.rand.nextInt(16) + 8;
            int yCoord = rand.nextInt(128) + 1;
            if(isBlockTop(x, yCoord - 1, z, JourneyBlocks.eucaGrass)) new WorldGenBotSpawner().generate(worldObj, rand, new BlockPos(x, yCoord, z));
        }
	        for(times = 0; times < 210; times++) {
            x = x1 + this.rand.nextInt(16) + 8;
            z = z1 + this.rand.nextInt(16) + 8;
            int yCoord = rand.nextInt(128) + 1;
            if(isBlockTop(x, yCoord - 1, z, JourneyBlocks.eucaGrass)) {
                trees.get(rand.nextInt(trees.size())).generate(worldObj, rand, new BlockPos(x, yCoord, z));
            }
        }
    }
	    public boolean isBlockTop(int x, int y, int z, Block grass) {
        return worldObj.getBlockState(new BlockPos(x, y, z)) == grass.getDefaultState() && worldObj.getBlockState(new BlockPos(x, y + 1, z)) == Blocks.AIR.getDefaultState()
                && worldObj.getBlockState(new BlockPos(x, y + 2, z)) == Blocks.AIR.getDefaultState() && worldObj.getBlockState(new BlockPos(x, y + 3, z)) == Blocks.AIR.getDefaultState()
                && worldObj.getBlockState(new BlockPos(x, y + 4, z)) == Blocks.AIR.getDefaultState() && worldObj.getBlockState(new BlockPos(x, y + 5, z)) == Blocks.AIR.getDefaultState();
    }
	    @Override
    public List <SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
        Biome biome = this.worldObj.getBiome(pos);
        return biome.getSpawnableList(creatureType);
    }
	    @Override
    public boolean generateStructures(Chunk chunkIn, int x, int z) {
        return false;
    }
	    @Override
    public BlockPos getNearestStructurePos(World worldIn, String structureName, BlockPos position, boolean findUnexplored) {
        return null;
    }
	    @Override
    public void recreateStructures(Chunk chunkIn, int x, int z) { }
	    @Override
    public boolean isInsideStructure(World worldIn, String structureName, BlockPos pos) {
        return false;
    }
}
	

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

Link to comment
Share on other sites

21 minutes ago, The_SlayerMC said:

Hi the log keeps out putting this 

Do you have any custom structure gen or tree gen in your dimension. This is logged when a chunk is being generated and then it loads a new chunk. Typically when it overflows into a different chunk.

 

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

yes i do but thats just normal generation too like this:

 

	public boolean locationIsValidSpawn(World w, int x, int y, int z) {
        for(int i = 0; i < 11; i++) {
            for(int l = 0; l < 11; l++) {
                if(w.getBlockState(new BlockPos(x + i, y, z + l)) != JourneyBlocks.eucaGrass) {
                    return false;
                }
            }
        }
        return true;
    }
    
    @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 + 0, y + 5, z + 1), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 10), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 0, y + 5, z + 11), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 3), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 1, y + 0, 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 + 0, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 2, y + 0, 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 + 0), 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 + 0, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 3, y + 0, 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 + 0), 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 + 0, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 4, y + 0, 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 + 0), 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 + 0, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, z + 4), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, z + 5), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, z + 6), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, z + 7), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, z + 8), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, z + 9), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 5, y + 0, 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 + 0), 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 + 0, z + 2), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, z + 3), JourneyBlocks.goldEucaPlank.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, z + 4), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, z + 5), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, z + 6), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, z + 7), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, z + 8), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, z + 9), JourneyBlocks.eucaBricks.getDefaultState());
        w.setBlockState(new BlockPos(x + 6, y + 0, 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;
    }
	

 

but most generations ive coded my self

	@Override
    public boolean generate(World w, Random r, BlockPos pos) {
        int x = pos.getX() - 3, y = pos.getY() -1, z = pos.getZ() - 1;
        int height = r.nextInt(10) + 10;
        WorldGenAPI.addRectangle(1, 1, 1, w, x + 3, y + height + 2, z + 1, JourneyBlocks.goldbotSpawner);
        WorldGenAPI.addRectangle(1, 1, 1, w, x + 3, y + height + 3, z + 1, JourneyBlocks.silverbotSpawner);
        WorldGenAPI.addRectangle(1, 1, height + 1, w, x + 3, y + 1, z + 1, JourneyBlocks.eucaBricks);
        WorldGenAPI.addRectangle(3, 1, height, w, x + 2, y + 1, z + 1, JourneyBlocks.eucaBricks);
        WorldGenAPI.addRectangle(1, 3, height, w, x + 3, y + 1, z, JourneyBlocks.eucaBricks);
        WorldGenAPI.addRectangle(7, 3, 1, w, x, y + height, z, JourneyBlocks.eucaTile);    
        WorldGenAPI.addRectangle(3, 7, 1, w, x + 2, y + height, z - 2, JourneyBlocks.eucaTile);        
        WorldGenAPI.addRectangle(5, 5, 1, w, x + 1, y + height, z - 1, JourneyBlocks.eucaTile);
        return false;
    }
	

 

https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/slayer/api/worldgen/WorldGenAPI.java

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

Link to comment
Share on other sites

15 minutes ago, The_SlayerMC said:

but most generations ive coded my self

You have to handle it not overflowing into another chunk that hasn't yet been loaded/generated.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

These two:

4 hours ago, The_SlayerMC said:

z = z1 + this.rand.nextInt(16) + 8;

4 hours ago, The_SlayerMC said:

w.setBlockState(new BlockPos(x + 5, y + 7, z + 12), JourneyBlocks.eucaBricks.getDefaultState());

 

You can end up with a Z value for this block's position (with a z1 equal to 0) as high as 35 and you shouldn't go above 31.

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 comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.