Jump to content

How to check if material can be replaced.


funsize888

Recommended Posts

Hello, I have made a structure and have been able to get it to spawn, but I have it spawning in the plains biome and as you know there is a lot of grass and tall grass. So my structure will not spawn if there is grass or tall grass. Is there a way to check if it's a certain material, and if it is then say  my structure can replace it. 

Link to comment
Share on other sites

Should be a isReplacable() method on the block class. It isn't handled by the material. 

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

1 hour ago, Draco18s said:

Should be a isReplacable() method on the block class. It isn't handled by the material. 

I have tried that, it was in the material class it is Material.isReplaceable. But my structure still wouldn't replace it. Also should I use an if statement like if it is replaceable then spawn my structure? Or should I just set isReplaceable.

Link to comment
Share on other sites

You need to ask the block in the world if it is replaceable and if so, replace it.

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

1 hour ago, Draco18s said:

You need to ask the block in the world if it is replaceable and if so, replace it.

So I could do something like: 

 

Black block = world.getBlock();

if(block = Blocks.TALLGRASS){

block.isReplaceable();

 

I know this isn't exact but I don't have my computer in front of me right now

Link to comment
Share on other sites

11 minutes ago, funsize888 said:

So I could do something like: 

 

Black block = world.getBlock();

if(block = Blocks.TALLGRASS){

block.isReplaceable();

 

I know this isn't exact but I don't have my computer in front of me right now

No. isReplaceable() is not a setter, it's a getter. Meaning when you call it, it is returning true or false, meaning whether or not the block is replaceable. It does not set that. You should be checking the value of isReplaceable() to determine if the block is, in fact, replaceable, and if so, using other methods (such as World#setBlockState or something) to replace it.

Whatever Minecraft needs, it is most likely not yet another tool tier.

Link to comment
Share on other sites

7 hours ago, IceMetalPunk said:

No. isReplaceable() is not a setter, it's a getter. Meaning when you call it, it is returning true or false, meaning whether or not the block is replaceable. It does not set that. You should be checking the value of isReplaceable() to determine if the block is, in fact, replaceable, and if so, using other methods (such as World#setBlockState or something) to replace it.

Sorry, I'm a little confused still and I'm not quite sure what to put. Also do I have to do this with Bloack or can I do it with Material

Link to comment
Share on other sites

9 minutes ago, funsize888 said:

Sorry, I'm a little confused still and I'm not quite sure what to put. Also do I have to do this with Bloack or can I do it with Material

You wrote that you could do if(block == Blocks.TALLGRASS).
I am not sure whether that is possible in forge, but if it is you could just replace it if the Statement Returns true.

 

EDIT: I think you should post your structure code,

because in the Block class it says that tall grass is replaceable, which means that it would be replaced if the structure spawned

Edited by ArmamentHaki
Link to comment
Share on other sites

1 hour ago, ArmamentHaki said:

You wrote that you could do if(block == Blocks.TALLGRASS).
I am not sure whether that is possible in forge, but if it is you could just replace it if the Statement Returns true.

 

EDIT: I think you should post your structure code,

because in the Block class it says that tall grass is replaceable, which means that it would be replaced if the structure spawned

I don't have my computer with me right now, but thank you for your help and I'll try it when I can

Edited by funsize888
Link to comment
Share on other sites

You don't want to check if the block is TALLGRASS, that only helps you against tall grass, not snow or other things.

You want to check if the block isReplaceable

  • Like 1

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

On 7/1/2017 at 10:19 AM, Draco18s said:

You don't want to check if the block is TALLGRASS, that only helps you against tall grass, not snow or other things.

You want to check if the block isReplaceable

In that case I shouldn't have to write any code for it, if the blocks are already replaceable.

Link to comment
Share on other sites

Yes, you do. isReplacable() isn't checked during world.setBlockState(), it's checked by ItemBlock's onUse action.

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

On ‎7‎/‎3‎/‎2017 at 7:18 PM, Draco18s said:

Yes, you do. isReplacable() isn't checked during world.setBlockState(), it's checked by ItemBlock's onUse action.

ok this is what I did:

Block block = world.getBlockState(new BlockPos(i,j,k)).getBlock();
		
		
		
		if(block.isReplaceable(world, new BlockPos(i,j,k))){	
		if(world.getBlockState(new BlockPos(i,j,k)).getBlock() == Blocks.GRASS) {
		if(world.getBiomeForCoordsBody(new BlockPos(i,j,k)).getBiomeClass().equals(BiomePlains.class)){
		if ((random.nextInt(1000) + 1) <= 100) {
		
			boolean place = true;

			for (int y = 0; y < 13; y++)
				for (int z = 0; z < 10; z++)
					for (int x = 0; x < 10; x++)
						if (world.getBlockState(new BlockPos(i + x, j + y + 1, k + z)).getBlock() != Blocks.AIR)
							place = false;

			if (place) {

It still doesn't spawn in the plains, or at all for that matter when that code is there

Edited by funsize888
Link to comment
Share on other sites

You're checking if the Block is both replaceable and is equal to Blocks.GRASS, which will never be true because Blocks.GRASS isn't replaceable.

 

You can use the && (and) operator to combine multiple boolean expressions (like the conditions of the four if statements) into one.

 

Don't call World#getBiomeForCoordsBody directly, call World#getBiomeForCoords instead. This allows the WorldProvider to return the appropriate Biome (this may or may not call World#getBiomeForCoordsBody).

 

Don't compare to Blocks.AIR directly, use Block#isAir to support modded air-like blocks.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

6 hours ago, Choonster said:

You're checking if the Block is both replaceable and is equal to Blocks.GRASS, which will never be true because Blocks.GRASS isn't replaceable.

 

You can use the && (and) operator to combine multiple boolean expressions (like the conditions of the four if statements) into one.

 

Don't call World#getBiomeForCoordsBody directly, call World#getBiomeForCoords instead. This allows the WorldProvider to return the appropriate Biome (this may or may not call World#getBiomeForCoordsBody).

 

Don't compare to Blocks.AIR directly, use Block#isAir to support modded air-like blocks.

since the tall grass is one block above the grass shouldn't I do i,j+1,k

Link to comment
Share on other sites

If you only want to replace tall grass, you should only check for tall grass.

If you want to replace all replacable blocks, use isReplacable.

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

2 hours ago, Draco18s said:

If you only want to replace tall grass, you should only check for tall grass.

If you want to replace all replacable blocks, use isReplacable.

		if(world.getBlockState(new BlockPos(i,j+1,k)).getBlock().isReplaceable(world, new BlockPos(i,j+1,k))) {
		if(world.getBlockState(new BlockPos(i,j,k)).getBlock() == Blocks.GRASS) {

I have this and its still not working

Edited by funsize888
Link to comment
Share on other sites

9 hours ago, Choonster said:

You're checking if the Block is both replaceable and is equal to Blocks.GRASS, which will never be true because Blocks.GRASS isn't replaceable.

 

You can use the && (and) operator to combine multiple boolean expressions (like the conditions of the four if statements) into one.

 

37 minutes ago, funsize888 said:

		if(world.getBlockState(new BlockPos(i,j+1,k)).getBlock().isReplaceable(world, new BlockPos(i,j+1,k))) {
		if(world.getBlockState(new BlockPos(i,j,k)).getBlock() == Blocks.GRASS) {

I have this and its still not working

Are you trying to replace the block above the grass or the grass itself?

You are now saying " if the block above is replaceable and the block is grass, do the following:"

Edited by Alpvax
Missed part of the quote
Link to comment
Share on other sites

Are you calling this on the server side? (Use world.isRemote to check, it will be false on the server).

Where are your i, j, and k variables coming from? You should probably only create the BlockState BlockPos once. And you can use BlockState BlockPos.up (or something similar) to get the BlockPos above.

 

You should post your full structure code (or even better a link to a git repository).

Edited by Alpvax
Correcting BlockState to BlockPos
Link to comment
Share on other sites

package structure.gen;

import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityChest;
import net.minecraft.tileentity.TileEntityMobSpawner;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomePlains;
import net.minecraft.world.chunk.IChunkGenerator;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraftforge.fml.common.IWorldGenerator;
import noahsmod.main.MyMod;

public class Creeper_Temple implements IWorldGenerator {

	
	
	@Override
	public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,IChunkProvider chunkProvider) {
	

		
		{
			
			switch (world.provider.getDimension())
			{
			case -1:
				generateNether(world,random,chunkX*16,chunkZ*16);
				
			case 0:
				generateSurface(world,random,chunkX*16,chunkZ*16);
				
			case 1:
				generateEnd(world,random,chunkX*16,chunkZ*16);
			}
			
		}
		
		
		
	}
		

	private void generateEnd(World world, Random random, int i, int j) {
		
		
	}


	private void generateNether(World world, Random random, int i, int j) {
		
		
	}


	public void generateSurface(World world, Random random, int i2, int k2) {

		
		
		int i = i2 + random.nextInt(15);
		int k = k2 + random.nextInt(15);

		int chunkX = i >> 4;
		int chunkZ = k >> 4;
		int height = world.getChunkFromChunkCoords(chunkX, chunkZ).getHeight(new BlockPos(i & 15, 0, k & 15));

		int j = height - 1;
		
		

			
		
		
		

		
		
		
		if(world.getBlockState(new BlockPos(i,j+1,k)).getBlock().isReplaceable(world, new BlockPos(i,j+1,k))) {
		if(world.getBlockState(new BlockPos(i,j,k)).getBlock() == Blocks.GRASS) {
		if(world.getBiomeForCoordsBody(new BlockPos(i,j,k)).getBiomeClass().equals(BiomePlains.class)){
		if ((random.nextInt(1000) + 1) <= 100) {
		
			boolean place = true;

			for (int y = 0; y < 13; y++)
				for (int z = 0; z < 10; z++)
					for (int x = 0; x < 10; x++)
						if (world.getBlockState(new BlockPos(i + x, j + y + 1, k + z)).getBlock() != Blocks.AIR)
							place = false;

			if (place) {
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 2), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 2), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 2), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 2), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 2), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 2), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 3), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 3), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 3), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 3), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 3), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 3), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 4), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 4), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 4), Block.getBlockById(133).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 4), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 4), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 4), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 5), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 5), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 5), Block.getBlockById(133).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 5), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 5), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 5), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 6), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 6), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 6), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 6), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 6), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 6), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 6), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 6), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 7), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 7), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 7), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 7), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 7), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 7), Block.getBlockById(46).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 0, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 0, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 0, k + 8), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 0, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 0, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 0, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 0, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 0, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 0, k + 8), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 2, j + 1, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 3, j + 1, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 1, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 1, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 1, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 1, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 1, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 1, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 1, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 1, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 1, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 1, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 1, k + 2), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 2), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 1, k + 2), Block.getBlockById(54).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 1, k + 2), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 9, j + 1, k + 3), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 4), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 1, k + 4), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 1, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 1, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 1, k + 5), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 0, j + 1, k + 6), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 1, k + 7), Block.getBlockById(54).getStateFromMeta(5), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 1, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 1, k + 8), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 1, k + 8), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 3, j + 1, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 1, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 1, k + 8), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 6, j + 1, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 1, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 1, k + 8), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 1, k + 9), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 4, j + 1, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 1, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 1, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 9, j + 1, k + 9), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 2, j + 2, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 3, j + 2, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 2, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 2, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 0, j + 2, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 2, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 2, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 2, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 5, j + 2, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 6, j + 2, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 2, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 2, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 2, k + 2), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 2), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 2), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 2, k + 2), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 4), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 2, k + 4), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 2, k + 4), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 4), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 0, j + 2, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 5), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 2, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 2, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 5), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 0, j + 2, k + 6), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 7), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 2, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 2, k + 8), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 2, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 2, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 2, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 5, j + 2, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 6, j + 2, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 2, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 2, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 2, k + 8), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 2, k + 9), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 4, j + 2, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 2, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 3, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 3, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 3, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 9, j + 3, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 3, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 3, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 3, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 3, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 5, j + 3, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 6, j + 3, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 3, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 1), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 3, k + 1), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 3, k + 2), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 3, k + 2), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 4), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 3, k + 4), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 3, k + 4), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 4), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 0, j + 3, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 5), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 3, k + 5), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 3, k + 5), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 5), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 0, j + 3, k + 6), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 7), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 3, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 3, k + 8), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 3, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 3, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 3, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 5, j + 3, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 6, j + 3, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 3, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 3, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 3, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 4, j + 3, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 3, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 6, j + 3, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 3, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 3, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 4, k + 0), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 2, j + 4, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 4, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 4, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 4, k + 1), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 4, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 4, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 4, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 5, j + 4, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 6, j + 4, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 4, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 4, k + 1), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 4, k + 2), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 2), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 2), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 4, k + 2), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 4), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 4, k + 4), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 4, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 4), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 0, j + 4, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 5), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 4, k + 5), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 4, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 5), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 0, j + 4, k + 6), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 6), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 6), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 4, k + 6), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 7), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 7), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 4, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 4, k + 8), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 4, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 4, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 4, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 5, j + 4, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 6, j + 4, k + 8), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 4, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 8), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 4, k + 8), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 4, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 4, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 3, j + 4, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 4, j + 4, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 4, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 6, j + 4, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 4, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 4, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 5, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 4, j + 5, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 5, k + 1), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 5, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 3, j + 5, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 5, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 5, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 5, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 5, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 5, k + 1), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 5, k + 2), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 2), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 2), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 5, k + 4), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 5, k + 4), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 5, k + 4), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 5, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 5, k + 5), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 5, k + 5), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 0, j + 5, k + 6), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 9, j + 5, k + 6), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 7), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 7), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 9, j + 5, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 5, k + 8), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 5, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 3, j + 5, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 5, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 5, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 5, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 5, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 8), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 5, k + 8), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 5, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 3, j + 5, k + 9), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 4, j + 5, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 5, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 5, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 5, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 4, j + 6, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 6, k + 1), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 1), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 2, j + 6, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 3, j + 6, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 6, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 6, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 6, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 6, k + 1), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 1), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 6, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 6, k + 2), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 2), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 2), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 3), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 0, j + 6, k + 4), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 4), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 6, k + 4), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 6, k + 4), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 6, k + 4), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 6, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 5), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 6, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 6, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 6, k + 5), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 6, k + 6), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 6), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 9, j + 6, k + 6), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 7), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 7), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 9, j + 6, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 6, k + 8), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 8), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 2, j + 6, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 3, j + 6, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 4, j + 6, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 6, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 6, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 7, j + 6, k + 8), Block.getBlockById(35).getStateFromMeta(15), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 6, k + 8), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 1, j + 6, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 6, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 3, j + 6, k + 9), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 5, j + 6, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 6, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 6, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 4, j + 7, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 0), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 7, k + 1), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 1), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 2, j + 7, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 7, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 7, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 7, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 7, k + 1), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 7, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 1), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 0, j + 7, k + 2), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 2), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 3), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 0, j + 7, k + 4), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 4), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 7, k + 4), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 7, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 7, k + 4), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 7, k + 5), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 7, k + 5), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 7, k + 5), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 7, k + 5), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 0, j + 7, k + 6), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 6), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 6), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 9, j + 7, k + 6), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 7, k + 7), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 7, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 0, j + 7, k + 8), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 7, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 7, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 7, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 7, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 7, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 7, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 7, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 7, k + 9), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 7, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 7, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 7, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 4, j + 8, k + 0), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 1, j + 8, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 8, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 8, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 8, k + 1), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 5, j + 8, k + 1), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 6, j + 8, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 8, k + 1), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 8, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 8, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 8, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 0, j + 8, k + 3), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 8, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 8, k + 3), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 0, j + 8, k + 4), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 8, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 8, k + 4), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 8, k + 4), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 8, j + 8, k + 4), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 1, j + 8, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 8, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 5, j + 8, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 8, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 9, j + 8, k + 5), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 8, k + 6), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 8, k + 6), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 8, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 8, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 8, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 8, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 8, k + 8), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 8, k + 8), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 8, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 8, k + 8), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 8, k + 9), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 3, j + 8, k + 9), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 9, k + 1), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 6, j + 9, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 9, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 8, j + 9, k + 1), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 9, k + 2), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 9, k + 2), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 9, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 9, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 9, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 9, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 0, j + 9, k + 3), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 9, k + 3), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 9, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 9, k + 3), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 9, k + 4), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 9, k + 4), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 9, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 9, k + 4), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 9, k + 5), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 9, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 9, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 9, k + 5), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 9, j + 9, k + 5), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 6), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 9, k + 6), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 7), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 9, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 9, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 9, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 9, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 9, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 9, k + 7), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 2, j + 9, k + 8), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 3, j + 9, k + 8), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 10, k + 1), Block.getBlockById(106).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 1, j + 10, k + 2), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 10, k + 2), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 3, j + 10, k + 2), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 10, k + 2), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 10, k + 2), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 10, k + 2), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 10, k + 2), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 10, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 10, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 10, k + 3), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 5, j + 10, k + 3), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 10, k + 3), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 10, k + 3), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 10, k + 3), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 2, j + 10, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 10, k + 4), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 10, k + 4), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 5, j + 10, k + 4), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 10, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 10, k + 4), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 10, k + 4), Block.getBlockById(18).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 1, j + 10, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 2, j + 10, k + 5), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 10, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 4, j + 10, k + 5), Block.getBlockById(18).getStateFromMeta(12), 3);
				world.setBlockState(new BlockPos(i + 5, j + 10, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 10, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 10, k + 5), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 1, j + 10, k + 6), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 10, k + 6), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 10, k + 6), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 10, k + 6), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 10, k + 6), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 10, k + 6), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 10, k + 6), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 10, k + 6), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 3, j + 10, k + 7), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 10, k + 7), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 5, j + 10, k + 7), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 10, k + 7), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 10, k + 8), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 4, j + 10, k + 8), Block.getBlockById(106).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 3, j + 11, k + 2), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 11, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 11, k + 2), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 6, j + 11, k + 2), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 11, k + 3), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 11, k + 3), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 11, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 11, k + 4), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 1, j + 11, k + 5), Block.getBlockById(106).getStateFromMeta(8), 3);
				world.setBlockState(new BlockPos(i + 2, j + 11, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 11, k + 5), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 1, j + 11, k + 6), Block.getBlockById(65).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 2, j + 11, k + 6), Block.getBlockById(4).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 11, k + 6), Block.getBlockById(54).getStateFromMeta(4), 3);
				world.setBlockState(new BlockPos(i + 7, j + 11, k + 6), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 8, j + 11, k + 6), Block.getBlockById(106).getStateFromMeta(2), 3);
				world.setBlockState(new BlockPos(i + 3, j + 11, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 11, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 11, k + 7), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 6, j + 11, k + 7), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 4, j + 12, k + 2), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 6, j + 12, k + 2), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 12, k + 3), Block.getBlockById(98).getStateFromMeta(1), 3);
				world.setBlockState(new BlockPos(i + 7, j + 12, k + 4), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 2, j + 12, k + 5), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 7, j + 12, k + 6), Block.getBlockById(98).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 3, j + 12, k + 7), Block.getBlockById(48).getStateFromMeta(0), 3);
				world.setBlockState(new BlockPos(i + 5, j + 12, k + 7), Block.getBlockById(4).getStateFromMeta(0), 3);
				
				
				TileEntityChest chest = (TileEntityChest)world.getTileEntity(new BlockPos(i + 2, j + 1 , k +7 ));
				chest.setLootTable((MyMod.LOOT_CHEST), new Random().nextLong());
				
				TileEntityChest chest2 = (TileEntityChest)world.getTileEntity(new BlockPos(i + 6, j + 11 , k + 6 ));
				chest2.setLootTable((MyMod.LOOT_CHEST2), new Random().nextLong());
				
				TileEntityChest chest3 = (TileEntityChest)world.getTileEntity(new BlockPos(i + 7, j + 1 , k + 2 ));
				chest3.setLootTable((MyMod.LOOT_CHEST3), new Random().nextLong());
				
				
				world.setBlockState(new BlockPos(i + 7, j + 1, k + 7), Blocks.MOB_SPAWNER.getDefaultState(), 2);
				TileEntity tileentity = world.getTileEntity(new BlockPos(i + 7, j + 1, k + 7));
				
				if(tileentity instanceof TileEntityMobSpawner){
					
					((TileEntityMobSpawner) tileentity).getSpawnerBaseLogic().setEntityId(new ResourceLocation("creeper"));
				}
				
				
				
			}
				
				
				
			}
		}
	}

	
	
	}
	
}
	
}




Here

Link to comment
Share on other sites

Have you tried using the debugger? 

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

27 minutes ago, Alpvax said:

You should probably only create the BlockState once. And you can use BlockState.up (or something similar)

I think you ment BlockPos, not BlockState.

 

OP, how do you know that this does not work? Did you place a breakpoint after those 2 if statements and it is not being triggered? Because there are more thing that would stop your structure from spawning later down the line. Those 2 checks apart from creating a new BlockPos object every time(don't do that btw) look fine.

 


 

As @Choonster said, do not use getBiomeForCoordsBody.

 

24 minutes ago, funsize888 said:

world.getBiomeForCoordsBody(new BlockPos(i,j,k)).getBiomeClass().equals(BiomePlains.class)

Why are you comparing classes here? If your intention is making the structure only spawn in the plains biome you can either use BiomeDictionary or directly compare the biome to Biomes.PLAINS.

 

24 minutes ago, funsize888 said:

.getBlock() != Blocks.AIR

10 hours ago, Choonster said:

Don't compare to Blocks.AIR directly, use Block#isAir to support modded air-like blocks.

 

24 minutes ago, funsize888 said:

world.getBlockState(new BlockPos(i + x, j + y + 1, k + z)).getBlock() != Blocks.AIR

This will be true if the block above the inital ground height is not air thus forbiding your structure from spawning. Tallgrass, for example...

 

24 minutes ago, funsize888 said:

boolean place = true;

You do not need this. You can return from a loop directly when your air check fails. With your current code you are just wasting time in the loop if the structure won't generate.

 

24 minutes ago, funsize888 said:

Block.getBlockById(98).getStateFromMeta(0)

Never use IDs. They can and will change. Blocks class exists for a reason.

getStateFromMeta should not be called. Use BlockStates. A state with meta 0 will most likely be the default state. 

This way of spawning structures is very confusing and painful to update/fix later. Use templates if they are available in whatever version you are modding for.

 

24 minutes ago, funsize888 said:

new Random().nextLong()

Do not create a new Random object every time you need to do something. You have an instance of Random passed as an argument.

 

24 minutes ago, funsize888 said:

int i = i2 + random.nextInt(15);

nextInt returns a value from 0 to the number specified excluding this number. nextInt(15) will return a number from a range of [0-14].

 

24 minutes ago, funsize888 said:

world.getChunkFromChunkCoords(chunkX, chunkZ).getHeight(new BlockPos(i & 15, 0, k & 15))

=>

world.getHeight(i, k)

 

24 minutes ago, funsize888 said:

(random.nextInt(1000) + 1) <= 100)

random.nextInt(10) == 0 is much more understandable and does pretty much the same.

 

  • Like 2
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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Minecraft java and forge seem to have it out for me, any ideas? I have had issues with exit code 1 while loading forge -fabric was having the same issues, but I seemed to fix it in these repairs? (tried different versions upwards from 1.19 to 1.20.2 for forge, nothing worked and I'm confident older versions wouldn't either) -The launcher itself loads fine, it will load the game within the launcher, and then crash the moment it tries to load outside of the launcher. I have tried the default launcher, legacy launcher, and the curse forge launcher, none have worked! (all have had the same problem) I think this started when I took a break and upgraded to windows 11 and wonder if that changed anything? I have tried the following: uninstalled & reinstalled java, (I have having issues where I download jdk 17 but only 8 would show up (would not show up anywhere but the control panel, not even the official uninstaller, I *think* I got that fixed) tried jarfix uninstalled & reinstalled minecraft tried alternate launchers -forge & legacy, & repaired them too. tried without mods updated game drivers uninstalled and reinstalled forge -including completely wiping it from my system changed java excutable path followed everything in the error code 1 post completely reset my pc I tried to change the launch path but couldn't seem to get it to work -the default launcher wont let me even see properties as an option, i have yet to try with the other two (i did try on legacy but it was being weird) I want to include my debug log; but its over the max size? sorry my brains gone numb from trying to fix this for the past 2 days
    • I personally create registries using DataPackRegistryEvent.NewRegistry. It's pretty powerful as long as you know how to make codecs. In some class, make a registry key like so: public static final ResourceKey<Registry<MyDataType>> MY_REGISTRY = ResourceKey.createRegistryKey(new ResourceLocation(MyMod.MOD_ID, "registry_name")); This will make a registry that holds objects of type "MyDataType". JSON files stored in data/<datapack_namespace>/modid/registryname/ will be parsed and put into this registry. Note that the directory structure has a folder named after your mod inside your datapack directory, so the actual path would look like: data/my_mod/my_mod/registry_name (or if another mod uses your registry: data/their_mod/my_mod/registry_name. To register this registry, subscribe to the DataPackRegistryEvent.NewRegistry event on the MOD event bus and call event.dataPackRegistry() for every registry you have. An example of what I'm doing for my mod (this is in the constructor for the main mod file): IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); bus.addListener((DataPackRegistryEvent.NewRegistry event) -> { event.dataPackRegistry(ModRegistries.INSULATOR_DATA, InsulatorData.CODEC); }); CODEC is a public static field inside the class for the custom data type I am registering. It holds a Codec<InsulatorData> that tells Minecraft how to serialize/deserialize the data. Most of my data so far can be represented by records, so I use RecordCodecBuilder.create() to do this: public static final Codec<InsulatorData> CODEC = RecordCodecBuilder.create(instance -> instance.group( // Yadda yadda ).apply(instance, InsulatorData::new)); What exactly to put here depends on what you're trying to do, so that's up to you. But basically you're just defining a list of codecs that correspond to the parameters of the record (data type). Most primitive data types have records in the Codec class (ex. Codec.INT) that you can use, and other classes like ResourceLocation have their own codecs as a static field (ex. ResourceLocation.CODEC). Hopefully this is what you're looking for, and that this helps.
    • Good days  I finnaly manage to fix and get a working gui from BlockItem and from BlockEntity the next issues i have to fix is this the block Entity model for some reason is moved to the south west  this briefcase model must be centered but is moved to a side, i have nothing weird in the code but this is happening // ########## ########## ########## ########## @Override public RenderShape getRenderShape(BlockState blkstate) {     return RenderShape.MODEL; } the block model is out of place However The hitBox of the block is right in place   ########################################################################################################### This next issue  Mi gui also adds the 5 slots from the player equipment the thing is theres no filter to determine whats can be put in an armor slot and what not      i have this method that draws the slots for the armor, the part i dont get i slike wheres the code that responds when you set an item in a item slot to do checks and allow the item to be set or not  //########## ########## ########## //Draw Player Armor private void addPlayerArmorSlots(Inventory playerInventory) { // 36 this.addSlot(new Slot(playerInventory, 39, 8, 8)); this.addSlot(new Slot(playerInventory, 38, 8, 26)); this.addSlot(new Slot(playerInventory, 37, 8, 44)); this.addSlot(new Slot(playerInventory, 36, 8, 62)); this.addSlot(new Slot(playerInventory, 40, 26, 53)); }   theres must be a method that triggers when you set a itemstack inside an slot and allows to do a check if its a valid item for that slot                                             
    • No like how do I use my new PreperableReloadListener, I know how to set it up now and register it, I just need to know how to use it in other classes.
    • Completely out of the blue my forge loader is lagging, although at 120 fps. Like when I turn it lags, or hit mobs it lags, or run sometimes although staying at 120 fps. I found another person having a similar problem:  But there was no solution I dont think. I tried everything from: 1. Updating my computer 2. Updating/reinstalling forge 3. Testing if allocated memory was problem (if it was low or high or mid nothing changed) 4. Adding various performance mods 5. Deleting most of my profiles if storage was a problem.   Really not sure what to do next or if forge is just broken for ever for me now.  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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