Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12] Generation boundrys
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
The_SlayerMC

[1.12] Generation boundrys

By The_SlayerMC, September 16, 2018 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

The_SlayerMC    7

The_SlayerMC

The_SlayerMC    7

  • Creeper Killer
  • The_SlayerMC
  • Members
  • 7
  • 201 posts
Posted September 16, 2018

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

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6671

diesieben07

diesieben07    6671

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6671
  • 45584 posts
Posted September 16, 2018

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.

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2090

Draco18s

Draco18s    2090

  • Reality Controller
  • Draco18s
  • Members
  • 2090
  • 13991 posts
Posted September 16, 2018
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.

  • Quote

Share this post


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.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • yegor
      [1.12.2] Transparent armor not rendering properly.

      By yegor · Posted 1 hour ago

      In my mod I have transparent armor which I created with an "ArmorSlime" class, which extends ItemArmor. The item texture for my armor is slightly transparent and it renders correctly, even in item frames.   The armor model uses a slightly transparent texture, which works on the player model, but when I place the armor on an armor stand, it is rendered fully opaque.   Is this a mod issue, or an issue with minecraft itself? Is there a solution?  
    • yegor
      moving topic to just modding support

      By yegor · Posted 1 hour ago

      Moved
    • J0WAY
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By J0WAY · Posted 1 hour ago

      Okay, But my main problem is why won't my sword spawn on my mob because i did just change it to the vanilla code and it still doesn't work.  
    • thedarkcolour
      [1.14] Patching method with coremod in TreeFeature causes IncompatibleClassChangeError

      By thedarkcolour · Posted 3 hours ago

      https://github.com/thedarkcolour/Future-MC/tree/1.14
    • Draco18s
      [1.14] layout of a modpack

      By Draco18s · Posted 4 hours ago

      I'm pretty sure I've left some comments on his videos about the mistakes he's perpetuating, but its not like anyone reads those.
  • Topics

    • yegor
      0
      [1.12.2] Transparent armor not rendering properly.

      By yegor
      Started 1 hour ago

    • yegor
      0
      moving topic to just modding support

      By yegor
      Started 1 hour ago

    • J0WAY
      2
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By J0WAY
      Started 6 hours ago

    • thedarkcolour
      15
      [1.14] Patching method with coremod in TreeFeature causes IncompatibleClassChangeError

      By thedarkcolour
      Started 21 hours ago

    • JetCobblestone
      4
      [1.14] layout of a modpack

      By JetCobblestone
      Started 9 hours ago

  • Who's Online (See full list)

    • Jvramegared
    • DaemonUmbra
    • Altimus
    • Kermos_the_Wise
    • xieao
    • thedarkcolour
    • thinkverse
    • darielernesto11
    • J0WAY
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12] Generation boundrys
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community