Jump to content

[1.10] Entity Problem ..


terraya

Recommended Posts

Hello@All,

 

i have got everything, but i still got this error report:

 

---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 31.10.16 18:03
Description: Initializing game

java.lang.RuntimeException: Duplicate stat id: "TranslatableComponent{key='stat.entityKill', args=[TranslatableComponent{key='entity.BlockUpdate.EntityModelTest.name', args=[], siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}" and "TranslatableComponent{key='stat.entityKill', args=[TranslatableComponent{key='entity.BlockUpdate.EntityModelTest.name', args=[], siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}" at id stat.killEntity.BlockUpdate.EntityModelTest
at net.minecraft.stats.StatBase.registerStat(StatBase.java:111)
at net.minecraft.stats.StatList.getStatKillEntity(StatList.java:317)
at net.minecraft.entity.EntityList$EntityEggInfo.<init>(EntityList.java:419)
at net.minecraftforge.fml.common.registry.EntityRegistry.registerEgg(EntityRegistry.java:220)
at ArturFarid.BlockUpdate.BlocksUpdate.Init(BlocksUpdate.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:599)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:790)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:324)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:561)
at net.minecraft.client.Minecraft.run(Minecraft.java:386)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)

 

how i register it:

		 EntityRegistry.registerModEntity(EntityModelTest.class, "EntityModelTest", 19, ArturFarid.BlockUpdate.BlocksUpdate.instance, 64, 20, true);
	 EntityRegistry.registerEgg(EntityModelTest.class, 0xFF00, 0xFF00);
	 EntityRegistry.addSpawn(EntityModelTest.class, 5, 1, 10, EnumCreatureType.MONSTER, Biome.getBiome(1));

	 EntityRegistry.registerModEntity(EntityDragonTest.class, "EntityDragonTest", 20, ArturFarid.BlockUpdate.BlocksUpdate.instance, 64, 20, true);
	 EntityRegistry.registerEgg(EntityDragonTest.class, 0xFF31, 0xFF31);
	 EntityRegistry.addSpawn(EntityDragonTest.class, 5, 1, 10, EnumCreatureType.MONSTER, Biome.getBiome(1));

	 RenderingRegistry.registerEntityRenderingHandler(EntityModelTest.class, new RenderModelTest()); 
	 RenderingRegistry.registerEntityRenderingHandler(EntityDragonTest.class, new RenderDragonTest()); 	
  
  

 

EntityDragonTest.class

import net.minecraft.entity.monster.EntityMob;
import net.minecraft.world.World;

public class EntityDragonTest extends EntityMob{

public EntityDragonTest(World worldIn) {
	super(worldIn);
}

}

 

The Model:

 

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.boss.EntityDragon;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class ModelDragon extends ModelBase
{
    /** The head Model renderer of the dragon */
    private final ModelRenderer head;
    /** The spine Model renderer of the dragon */
    private final ModelRenderer spine;
    /** The jaw Model renderer of the dragon */
    private final ModelRenderer jaw;
    /** The body Model renderer of the dragon */
    private final ModelRenderer body;
    /** The rear leg Model renderer of the dragon */
    private final ModelRenderer rearLeg;
    /** The front leg Model renderer of the dragon */
    private final ModelRenderer frontLeg;
    /** The rear leg tip Model renderer of the dragon */
    private final ModelRenderer rearLegTip;
    /** The front leg tip Model renderer of the dragon */
    private final ModelRenderer frontLegTip;
    /** The rear foot Model renderer of the dragon */
    private final ModelRenderer rearFoot;
    /** The front foot Model renderer of the dragon */
    private final ModelRenderer frontFoot;
    /** The wing Model renderer of the dragon */
    private final ModelRenderer wing;
    /** The wing tip Model renderer of the dragon */
    private final ModelRenderer wingTip;
    private float partialTicks;

    public ModelDragon(float p_i46360_1_)
    {
        this.textureWidth = 256;
        this.textureHeight = 256;
        this.setTextureOffset("body.body", 0, 0);
        this.setTextureOffset("wing.skin", -56, 88);
        this.setTextureOffset("wingtip.skin", -56, 144);
        this.setTextureOffset("rearleg.main", 0, 0);
        this.setTextureOffset("rearfoot.main", 112, 0);
        this.setTextureOffset("rearlegtip.main", 196, 0);
        this.setTextureOffset("head.upperhead", 112, 30);
        this.setTextureOffset("wing.bone", 112, 88);
        this.setTextureOffset("head.upperlip", 176, 44);
        this.setTextureOffset("jaw.jaw", 176, 65);
        this.setTextureOffset("frontleg.main", 112, 104);
        this.setTextureOffset("wingtip.bone", 112, 136);
        this.setTextureOffset("frontfoot.main", 144, 104);
        this.setTextureOffset("neck.box", 192, 104);
        this.setTextureOffset("frontlegtip.main", 226, 138);
        this.setTextureOffset("body.scale", 220, 53);
        this.setTextureOffset("head.scale", 0, 0);
        this.setTextureOffset("neck.scale", 48, 0);
        this.setTextureOffset("head.nostril", 112, 0);
        float f = -16.0F;
        this.head = new ModelRenderer(this, "head");
        this.head.addBox("upperlip", -6.0F, -1.0F, -24.0F, 12, 5, 16);
        this.head.addBox("upperhead", -8.0F, -8.0F, -10.0F, 16, 16, 16);
        this.head.mirror = true;
        this.head.addBox("scale", -5.0F, -12.0F, -4.0F, 2, 4, 6);
        this.head.addBox("nostril", -5.0F, -3.0F, -22.0F, 2, 2, 4);
        this.head.mirror = false;
        this.head.addBox("scale", 3.0F, -12.0F, -4.0F, 2, 4, 6);
        this.head.addBox("nostril", 3.0F, -3.0F, -22.0F, 2, 2, 4);
        this.jaw = new ModelRenderer(this, "jaw");
        this.jaw.setRotationPoint(0.0F, 4.0F, -8.0F);
        this.jaw.addBox("jaw", -6.0F, 0.0F, -16.0F, 12, 4, 16);
        this.head.addChild(this.jaw);
        this.spine = new ModelRenderer(this, "neck");
        this.spine.addBox("box", -5.0F, -5.0F, -5.0F, 10, 10, 10);
        this.spine.addBox("scale", -1.0F, -9.0F, -3.0F, 2, 4, 6);
        this.body = new ModelRenderer(this, "body");
        this.body.setRotationPoint(0.0F, 4.0F, 8.0F);
        this.body.addBox("body", -12.0F, 0.0F, -16.0F, 24, 24, 64);
        this.body.addBox("scale", -1.0F, -6.0F, -10.0F, 2, 6, 12);
        this.body.addBox("scale", -1.0F, -6.0F, 10.0F, 2, 6, 12);
        this.body.addBox("scale", -1.0F, -6.0F, 30.0F, 2, 6, 12);
        this.wing = new ModelRenderer(this, "wing");
        this.wing.setRotationPoint(-12.0F, 5.0F, 2.0F);
        this.wing.addBox("bone", -56.0F, -4.0F, -4.0F, 56, 8, ;
        this.wing.addBox("skin", -56.0F, 0.0F, 2.0F, 56, 0, 56);
        this.wingTip = new ModelRenderer(this, "wingtip");
        this.wingTip.setRotationPoint(-56.0F, 0.0F, 0.0F);
        this.wingTip.addBox("bone", -56.0F, -2.0F, -2.0F, 56, 4, 4);
        this.wingTip.addBox("skin", -56.0F, 0.0F, 2.0F, 56, 0, 56);
        this.wing.addChild(this.wingTip);
        this.frontLeg = new ModelRenderer(this, "frontleg");
        this.frontLeg.setRotationPoint(-12.0F, 20.0F, 2.0F);
        this.frontLeg.addBox("main", -4.0F, -4.0F, -4.0F, 8, 24, ;
        this.frontLegTip = new ModelRenderer(this, "frontlegtip");
        this.frontLegTip.setRotationPoint(0.0F, 20.0F, -1.0F);
        this.frontLegTip.addBox("main", -3.0F, -1.0F, -3.0F, 6, 24, 6);
        this.frontLeg.addChild(this.frontLegTip);
        this.frontFoot = new ModelRenderer(this, "frontfoot");
        this.frontFoot.setRotationPoint(0.0F, 23.0F, 0.0F);
        this.frontFoot.addBox("main", -4.0F, 0.0F, -12.0F, 8, 4, 16);
        this.frontLegTip.addChild(this.frontFoot);
        this.rearLeg = new ModelRenderer(this, "rearleg");
        this.rearLeg.setRotationPoint(-16.0F, 16.0F, 42.0F);
        this.rearLeg.addBox("main", -8.0F, -4.0F, -8.0F, 16, 32, 16);
        this.rearLegTip = new ModelRenderer(this, "rearlegtip");
        this.rearLegTip.setRotationPoint(0.0F, 32.0F, -4.0F);
        this.rearLegTip.addBox("main", -6.0F, -2.0F, 0.0F, 12, 32, 12);
        this.rearLeg.addChild(this.rearLegTip);
        this.rearFoot = new ModelRenderer(this, "rearfoot");
        this.rearFoot.setRotationPoint(0.0F, 31.0F, 4.0F);
        this.rearFoot.addBox("main", -9.0F, 0.0F, -20.0F, 18, 6, 24);
        this.rearLegTip.addChild(this.rearFoot);
    }

    /**
     * Used for easily adding entity-dependent animations. The second and third float params here are the same second
     * and third as in the setRotationAngles method.
     */
    public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float p_78086_2_, float p_78086_3_, float partialTickTime)
    {
        this.partialTicks = partialTickTime;
    }

    /**
     * Sets the models various rotation angles then renders the model.
     */
    public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
    {
        GlStateManager.pushMatrix();
        EntityDragon entitydragon = (EntityDragon)entityIn;
        float f = entitydragon.prevAnimTime + (entitydragon.animTime - entitydragon.prevAnimTime) * this.partialTicks;
        this.jaw.rotateAngleX = (float)(Math.sin((double)(f * ((float)Math.PI * 2F))) + 1.0D) * 0.2F;
        float f1 = (float)(Math.sin((double)(f * ((float)Math.PI * 2F) - 1.0F)) + 1.0D);
        f1 = (f1 * f1 + f1 * 2.0F) * 0.05F;
        GlStateManager.translate(0.0F, f1 - 2.0F, -3.0F);
        GlStateManager.rotate(f1 * 2.0F, 1.0F, 0.0F, 0.0F);
        float f2 = -30.0F;
        float f4 = 0.0F;
        float f5 = 1.5F;
        double[] adouble = entitydragon.getMovementOffsets(6, this.partialTicks);
        float f6 = this.updateRotations(entitydragon.getMovementOffsets(5, this.partialTicks)[0] - entitydragon.getMovementOffsets(10, this.partialTicks)[0]);
        float f7 = this.updateRotations(entitydragon.getMovementOffsets(5, this.partialTicks)[0] + (double)(f6 / 2.0F));
        float f8 = f * ((float)Math.PI * 2F);
        f2 = 20.0F;
        float f3 = -12.0F;

        for (int i = 0; i < 5; ++i)
        {
            double[] adouble1 = entitydragon.getMovementOffsets(5 - i, this.partialTicks);
            float f9 = (float)Math.cos((double)((float)i * 0.45F + f8)) * 0.15F;
            this.spine.rotateAngleY = this.updateRotations(adouble1[0] - adouble[0]) * 0.017453292F * 1.5F;
            this.spine.rotateAngleX = f9 + entitydragon.getHeadPartYOffset(i, adouble, adouble1) * 0.017453292F * 1.5F * 5.0F;
            this.spine.rotateAngleZ = -this.updateRotations(adouble1[0] - (double)f7) * 0.017453292F * 1.5F;
            this.spine.rotationPointY = f2;
            this.spine.rotationPointZ = f3;
            this.spine.rotationPointX = f4;
            f2 = (float)((double)f2 + Math.sin((double)this.spine.rotateAngleX) * 10.0D);
            f3 = (float)((double)f3 - Math.cos((double)this.spine.rotateAngleY) * Math.cos((double)this.spine.rotateAngleX) * 10.0D);
            f4 = (float)((double)f4 - Math.sin((double)this.spine.rotateAngleY) * Math.cos((double)this.spine.rotateAngleX) * 10.0D);
            this.spine.render(scale);
        }

        this.head.rotationPointY = f2;
        this.head.rotationPointZ = f3;
        this.head.rotationPointX = f4;
        double[] adouble2 = entitydragon.getMovementOffsets(0, this.partialTicks);
        this.head.rotateAngleY = this.updateRotations(adouble2[0] - adouble[0]) * 0.017453292F;
        this.head.rotateAngleX = this.updateRotations((double)entitydragon.getHeadPartYOffset(6, adouble, adouble2)) * 0.017453292F * 1.5F * 5.0F;
        this.head.rotateAngleZ = -this.updateRotations(adouble2[0] - (double)f7) * 0.017453292F;
        this.head.render(scale);
        GlStateManager.pushMatrix();
        GlStateManager.translate(0.0F, 1.0F, 0.0F);
        GlStateManager.rotate(-f6 * 1.5F, 0.0F, 0.0F, 1.0F);
        GlStateManager.translate(0.0F, -1.0F, 0.0F);
        this.body.rotateAngleZ = 0.0F;
        this.body.render(scale);

        for (int j = 0; j < 2; ++j)
        {
            GlStateManager.enableCull();
            float f11 = f * ((float)Math.PI * 2F);
            this.wing.rotateAngleX = 0.125F - (float)Math.cos((double)f11) * 0.2F;
            this.wing.rotateAngleY = 0.25F;
            this.wing.rotateAngleZ = (float)(Math.sin((double)f11) + 0.125D) * 0.8F;
            this.wingTip.rotateAngleZ = -((float)(Math.sin((double)(f11 + 2.0F)) + 0.5D)) * 0.75F;
            this.rearLeg.rotateAngleX = 1.0F + f1 * 0.1F;
            this.rearLegTip.rotateAngleX = 0.5F + f1 * 0.1F;
            this.rearFoot.rotateAngleX = 0.75F + f1 * 0.1F;
            this.frontLeg.rotateAngleX = 1.3F + f1 * 0.1F;
            this.frontLegTip.rotateAngleX = -0.5F - f1 * 0.1F;
            this.frontFoot.rotateAngleX = 0.75F + f1 * 0.1F;
            this.wing.render(scale);
            this.frontLeg.render(scale);
            this.rearLeg.render(scale);
            GlStateManager.scale(-1.0F, 1.0F, 1.0F);

            if (j == 0)
            {
                GlStateManager.cullFace(GlStateManager.CullFace.FRONT);
            }
        }

        GlStateManager.popMatrix();
        GlStateManager.cullFace(GlStateManager.CullFace.BACK);
        GlStateManager.disableCull();
        float f10 = -((float)Math.sin((double)(f * ((float)Math.PI * 2F)))) * 0.0F;
        f8 = f * ((float)Math.PI * 2F);
        f2 = 10.0F;
        f3 = 60.0F;
        f4 = 0.0F;
        adouble = entitydragon.getMovementOffsets(11, this.partialTicks);

        for (int k = 0; k < 12; ++k)
        {
            adouble2 = entitydragon.getMovementOffsets(12 + k, this.partialTicks);
            f10 = (float)((double)f10 + Math.sin((double)((float)k * 0.45F + f8)) * 0.05000000074505806D);
            this.spine.rotateAngleY = (this.updateRotations(adouble2[0] - adouble[0]) * 1.5F + 180.0F) * 0.017453292F;
            this.spine.rotateAngleX = f10 + (float)(adouble2[1] - adouble[1]) * 0.017453292F * 1.5F * 5.0F;
            this.spine.rotateAngleZ = this.updateRotations(adouble2[0] - (double)f7) * 0.017453292F * 1.5F;
            this.spine.rotationPointY = f2;
            this.spine.rotationPointZ = f3;
            this.spine.rotationPointX = f4;
            f2 = (float)((double)f2 + Math.sin((double)this.spine.rotateAngleX) * 10.0D);
            f3 = (float)((double)f3 - Math.cos((double)this.spine.rotateAngleY) * Math.cos((double)this.spine.rotateAngleX) * 10.0D);
            f4 = (float)((double)f4 - Math.sin((double)this.spine.rotateAngleY) * Math.cos((double)this.spine.rotateAngleX) * 10.0D);
            this.spine.render(scale);
        }

        GlStateManager.popMatrix();
    }

    /**
     * Updates the rotations in the parameters for rotations greater than 180 degrees or less than -180 degrees. It adds
     * or subtracts 360 degrees, so that the appearance is the same, although the numbers are then simplified to range -
     * 180 to 180
     */
    private float updateRotations(double p_78214_1_)
    {
        while (p_78214_1_ >= 180.0D)
        {
            p_78214_1_ -= 360.0D;
        }

        while (p_78214_1_ < -180.0D)
        {
            p_78214_1_ += 360.0D;
        }

        return (float)p_78214_1_;
    }
}

 

 

and the render:

 

import ArturFarid.BlockUpdate.model.ModelDragon;
import ArturFarid.BlockUpdate.model.ModelTest;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;

public class RenderDragonTest extends RenderLiving{

	public RenderDragonTest() {
		super(Minecraft.getMinecraft().getRenderManager(), new ModelDragon(NAME_TAG_RANGE), 0);

	}

	@Override
	protected ResourceLocation getEntityTexture(Entity entity) {
		return new ResourceLocation("blockupdate", "textures/entity/ModelDragonTest.png");
	}

}

 

Link to comment
Share on other sites

@Mod(modid = "BlockUpdate", name="BlockUpdate Mod", version="3.0", acceptedMinecraftVersions="[1.10.2]")
public class BlocksUpdate
{

  @SidedProxy(clientSide="ArturFarid.BlockUpdate.proxy.ClientProxy", serverSide="ArturFarid.BlockUpdate.proxy.CommonProxy")
  public static CommonProxy proxy;
  
public static Item_Tab item_tab = new Item_Tab();
public static Sword_Tab sword_tab = new Sword_Tab();
public static Food_Tab food_tab = new Food_Tab();
public static Devil_Fruit_Tab devil_fruit_tab = new Devil_Fruit_Tab();

@Instance  
public static BlocksUpdate instance;
private static int NewEntityStartId = 0;

  @EventHandler
  public void preInit(FMLPreInitializationEvent event)
  {
ArturFarid.BlockUpdate.init.BlocksUpdate.init();
ArturFarid.BlockUpdate.init.BlocksUpdate.register();
    ItemsUpdate.init();
    ItemsUpdate.register();
  }
  
  @EventHandler
  public void Init(FMLInitializationEvent event)
  {
  
  proxy.registeRenders();	
  
	 EntityRegistry.registerModEntity(EntityModelTest.class, "EntityModelTest", 19, ArturFarid.BlockUpdate.BlocksUpdate.instance, 64, 20, true);
	 EntityRegistry.registerEgg(EntityModelTest.class, 0xFF00, 0xFF00);
	 EntityRegistry.addSpawn(EntityModelTest.class, 5, 1, 10, EnumCreatureType.MONSTER, Biome.getBiome(1));

	 EntityRegistry.registerModEntity(EntityDragonTest.class, "EntityDragonTest", 20, ArturFarid.BlockUpdate.BlocksUpdate.instance, 64, 20, true);
	 EntityRegistry.registerEgg(EntityDragonTest.class, 0xFF31, 0xFF31);
	 EntityRegistry.addSpawn(EntityDragonTest.class, 5, 1, 10, EnumCreatureType.MONSTER, Biome.getBiome(1));

	 RenderingRegistry.registerEntityRenderingHandler(EntityModelTest.class, new RenderModelTest()); 
	 RenderingRegistry.registerEntityRenderingHandler(EntityDragonTest.class, new RenderDragonTest()); 	
  
  
  
  /* REMOVING CRAFTING TABLE */
  Collection<Item> removeSet = new HashSet();
  Collections.addAll(removeSet, new Item[] {

  Item.REGISTRY.getObjectById(58)	   
  
  	}
  );
  Iterator<IRecipe> iterator1 = CraftingManager.getInstance().getRecipeList().iterator();

  while (iterator1.hasNext())
  {
  IRecipe recipe = iterator1.next();
  if (recipe == null)
  continue;
  ItemStack output = recipe.getRecipeOutput();
  if (output != null && output.getItem() != null && removeSet.contains(output.getItem()))
  iterator1.remove();
  }
  }


  @EventHandler
  public void postInit(FMLPostInitializationEvent event) {}
}

Link to comment
Share on other sites

both are the same just here in:

 

its my class where i register my blocks :

 

public class BlocksUpdate
{
//@Instance
//public static BlocksUpdate instance;

  public static Block wooden_trump; // test created BLOCK(object)
  public static Block TestBlock;
  
  public static Block hayblockside1_1;
  public static Block hayblockside1_2;
  public static Block sidelog1_1side;
  public static Block sidelog1_2side;
  public static Block sidelog2_1side;
  public static Block sidelog2_2side;
  public static Block sidelog3_1side;
  public static Block sidelog3_2side;
  public static Block sidelog4_1side;
  public static Block sidelog4_2side;
  public static Block sidelog5_1side;
  public static Block sidelog5_2side;
  public static Block planks1;
  public static Block planks2;
  public static Block planks3;
  public static Block planks4;
  public static Block planks5;
  public static Block planks6;
  public static Block planks7;
  public static Block planks8;
  public static Block planks9;
  public static Block planks10;
  public static Block planks11;
  public static Block planks12;
  public static Block planks13;
  public static Block planks14;
  public static Block planks15;
  public static Block planks16;
  public static Block planks17;
  public static Block planks18;
  public static Block planks19;
  public static Block planks20;
  public static Block planks21;
  public static Block planks22;
  public static Block planks23;
  public static Block planks24;
  public static Block planks25;
  public static Block planks26;
  public static Block planks27;
  public static Block planks28;
  public static Block planks29;
  public static Block planks30;
  public static Block planks31;
  public static Block planks32;
  public static Block planks33;
  public static Block planks34;
  public static Block planks35;
  public static Block planks36;
  public static Block planks37;
  public static Block planks38;
  public static Block planks39;
  public static Block planks40;
  public static Block planks41;
  public static Block planks42;
  public static Block planks43;
  public static Block planks44;
  public static Block planks45;
  public static Block planks46;
  public static Block planks47;
  public static Block planks48;
  public static Block planks49;
  public static Block planks50;
  public static Block planks51;
  public static Block planks52;
  public static Block sand1;
  public static Block sand2;
  public static Block sand3;
  public static Block sandstone1;
  public static Block sandstone2;
  public static Block sandstone3;
  public static Block sandstone4;
  public static Block sandstone5;
  public static Block sandstone6;
  public static Block sandstone7;
  public static Block sandstone8;
  public static Block sandstone9;
  public static Block sandstone10;
  public static Block sandstone11;
  public static Block sandstone12;
  public static Block sandstone13;
  public static Block sandstone14;
  public static Block sandstone15;
  public static Block stonebrick1;
  public static Block stonebrick2;
  public static Block stonebrick3;
  public static Block stonebrick4;
  public static Block stonebrick5;
  public static Block stonebrick6;
  public static Block stonebrick7;
  public static Block stonebrick8;
  public static Block stonebrick9;
  public static Block stonebrick10;
  public static Block stonebrick11;
  public static Block stonebrick12;
  public static Block stonebrick13;
  public static Block cobblestone1;
  public static Block cobblestone2;
  public static Block cobblestone3;
  public static Block cobblestone4;
  public static Block cobblestone5;
  public static Block cobblestone6;
  public static Block cobblestone7;
  public static Block cobblestone8;
  public static Block cobblestone9;
  public static Block cobblestone10;
  public static Block dirt1;
  public static Block dirt2;
  public static Block dirt3;
  public static Block dirt4;
  public static Block dirt5;
  public static Block dirt6;
  public static Block dirt7;
  public static Block dirt8;
  public static Block dirt9;
  public static Block grassblock1;
  public static Block grassblock2;
  public static Block grassblock3;
  public static Block log1;
  public static Block log2;
  public static Block log3;
  public static Block log4;
  public static Block log5;
  public static Block log6;
  public static Block log7;
  public static Block log8;
  public static Block log9;
  public static Block log10;
  public static Block log11;
  public static Block log12;
  public static Block log13;
  public static BlockUpdateStairsClass plankstairs1;
  //public static BlockUpdateStairsClass plankstairs2;
  //public static BlockUpdateStairsClass plankstairs3;
  //public static BlockUpdateStairsClass plankstairs4;
  //public static BlockUpdateStairsClass plankstairs5;
  //public static BlockUpdateStairsClass plankstairs6;
  //public static BlockUpdateStairsClass plankstairs7;
  //public static BlockUpdateStairsClass plankstairs8;
  //public static BlockUpdateStairsClass cobblestairs1;
  //public static BlockUpdateStairsClass dirtstairs1;
  //public static BlockUpdateStairsClass stonebrickstairs1;
  //public static BlockUpdateStairsClass stonebrickstairs2;
  //public static BlockUpdateStairsClass stonebrickstairs3;
  //public static BlockUpdateStairsClass stonebrickstairs4;
  //public static BlockUpdateStairsClass stonebrickstairs5;
  //public static BlockUpdateStairsClass grassstairs1;
  //public static BlockUpdateStairsClass grassstairs2;
  //public static BlockUpdateStairsClass grassstairs3;
  //public static BlockUpdateStairsClass epicstairs1;
  //public static BlockUpdateStairsClass epicstairs2;
  public static Block epic1;
  public static Block epic2;
  public static Block epic3;
  public static Block epic4;
  public static Block epic5;
  public static Block quartz1;
  public static Block quartz2;
  public static Block clay1;
  public static Block clay2;
  public static Block wool1;
  public static Block wool2;
  public static Block wool3;
  public static Block wool4;
  public static Block wool5;
  public static Block wool6;
  public static Block wool7;
  public static Block wool8;
  public static Block wool9;
  public static Block wool10;
  public static Block wool11;
  public static Block wool12;
  public static Block wool13;
  public static Block wool14;
  public static Block wool15;
  public static Block wool16;
  public static Block stone1;
  public static Block stone2;
  public static Block stone3;
  public static Block stone4;
  public static Block stone5;
  public static Block diamond1;
  public static Block brick1;
  public static Block brick2;
  public static Block brick3;
  public static Block brick4;
  //public static Block leaves1;
  //public static Block leaves2;
  //public static Block leaves3;
  //public static Block leaves4;
  //public static Block leaves5;
  //public static Block leaves6;
  //public static Block leaves7;
  //public static Block leaves8;
  //public static Block leaves9;
  public static Block glass1;
  public static Block glass2;
  public static Block glass3;
  public static Block glass4;
  public static Block transparent64x64;  //END BLOCK TRANSPARENT
  public static Block transparentlight64x64;  //TRANSPARENT LIGHT
  public static Block IceBlock1;
  public static Block gravel1;
  public static Block gravel2;
  public static Block gravel3;
  public static Block gravel4;
  public static Block gravel5;
  public static Block gravel6;
  public static Block gravel7;
  public static Block glowstone1;
  public static Block glowstone2;
  public static Block carvedstone1;
  public static Block carvedstone2;
  public static Block carvedstone3;
  public static Block carvedstone4;
  public static Block carvedstone5;
  public static Block carvedstone6;
  public static Block carvedstone7;
  public static Block carvedstone8;
  public static Block carvedstone9;
  public static Block carvedstone10;
  public static Block carvedstone11;
  public static Block hayblock1;
  public static Block hayblock2;
  public static Block hayblock3;
  public static Block hayblock4;
  public static Block fence1;
  
  
  //DEVIL FRUIT SKILL BLOCKS
  
  public static Block KumaPunchBlockWhite;
  public static Block KumaPunchBlockBrown;
  public static Block KumaPunchBlockInsideBOMB;

  public static void init()
  {
  
  TestBlock = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("TestBlock");
  wooden_trump = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("wooden_trump").setBlockUnbreakable();
  
    hayblockside1_1 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("hayblockside1_1").setBlockUnbreakable();
    hayblockside1_2 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("hayblockside1_2").setBlockUnbreakable();
    
    sidelog1_1side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog1_1side").setBlockUnbreakable();
    sidelog1_2side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog1_2side").setBlockUnbreakable();
    sidelog2_1side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog2_1side").setBlockUnbreakable();
    sidelog2_2side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog2_2side").setBlockUnbreakable();
    sidelog3_1side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog3_1side").setBlockUnbreakable();
    sidelog3_2side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog3_2side").setBlockUnbreakable();
    sidelog4_1side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog4_1side").setBlockUnbreakable();
    sidelog4_2side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog4_2side").setBlockUnbreakable();
    sidelog5_1side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog5_1side").setBlockUnbreakable();
    sidelog5_2side = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("sidelog5_2side").setBlockUnbreakable();
    
    planks1 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks1").setBlockUnbreakable();
    planks2 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks2").setBlockUnbreakable();
    planks3 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks3").setBlockUnbreakable();
    planks4 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks4").setBlockUnbreakable();
    planks5 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks5").setBlockUnbreakable();
    planks6 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks6").setBlockUnbreakable();
    planks7 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks7").setBlockUnbreakable();
    planks8 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks8").setBlockUnbreakable();
    planks9 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks9").setBlockUnbreakable();
    planks10 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks10").setBlockUnbreakable();
    planks11 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks11").setBlockUnbreakable();
    planks12 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks12").setBlockUnbreakable();
    planks13 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks13").setBlockUnbreakable();
    planks14 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks14").setBlockUnbreakable();
    planks15 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks15").setBlockUnbreakable();
    planks16 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks16").setBlockUnbreakable();
    planks17 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks17").setBlockUnbreakable();
    planks18 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks18").setBlockUnbreakable();
    planks19 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks19").setBlockUnbreakable();
    planks20 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks20").setBlockUnbreakable();
    planks21 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks21").setBlockUnbreakable();
    planks22 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks22").setBlockUnbreakable();
    planks23 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks23").setBlockUnbreakable();
    planks24 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks24").setBlockUnbreakable();
    planks25 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks25").setBlockUnbreakable();
    planks26 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks26").setBlockUnbreakable();
    planks27 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks27").setBlockUnbreakable();
    planks28 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks28").setBlockUnbreakable();
    planks29 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks29").setBlockUnbreakable();
    planks30 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks30").setBlockUnbreakable();
    planks31 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks31").setBlockUnbreakable();
    planks32 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks32").setBlockUnbreakable();
    planks33 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks33").setBlockUnbreakable();
    planks34 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks34").setBlockUnbreakable();
    planks35 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks35").setBlockUnbreakable();
    planks36 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks36").setBlockUnbreakable();
    planks37 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks37").setBlockUnbreakable();
    planks38 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks38").setBlockUnbreakable();
    planks39 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks39").setBlockUnbreakable();
    planks40 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks40").setBlockUnbreakable();
    planks41 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks41").setBlockUnbreakable();
    planks42 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks42").setBlockUnbreakable();
    planks43 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks43").setBlockUnbreakable();
    planks44 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks44").setBlockUnbreakable();
    planks45 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks45").setBlockUnbreakable();
    planks46 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks46").setBlockUnbreakable();
    planks47 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks47").setBlockUnbreakable();
    planks48 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks48").setBlockUnbreakable();
    planks49 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks49").setBlockUnbreakable();
    planks50 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks50").setBlockUnbreakable();
    planks51 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks51").setBlockUnbreakable();
    planks52 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("planks52").setBlockUnbreakable();
    
    sand1 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sand1").setBlockUnbreakable();
    sand2 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sand2").setBlockUnbreakable();
    sand3 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sand3").setBlockUnbreakable();
    
    sandstone1 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone1").setBlockUnbreakable();
    sandstone2 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone2").setBlockUnbreakable();
    sandstone3 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone3").setBlockUnbreakable();
    sandstone4 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone4").setBlockUnbreakable();
    sandstone5 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone5").setBlockUnbreakable();
    sandstone6 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone6").setBlockUnbreakable();
    sandstone7 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone7").setBlockUnbreakable();
    sandstone8 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone8").setBlockUnbreakable();
    sandstone9 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone9").setBlockUnbreakable();
    sandstone10 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone10").setBlockUnbreakable();
    sandstone11 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone11").setBlockUnbreakable();
    sandstone12 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone12").setBlockUnbreakable();
    sandstone13 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone13").setBlockUnbreakable();
    sandstone14 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone14").setBlockUnbreakable();
    sandstone15 = new BlockUpdateClass(Material.SAND).setUnlocalizedName("sandstone15").setBlockUnbreakable();
    
    stonebrick1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick1").setBlockUnbreakable();
    stonebrick2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick2").setBlockUnbreakable();
    stonebrick3 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick3").setBlockUnbreakable();
    stonebrick4 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick4").setBlockUnbreakable();
    stonebrick5 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick5").setBlockUnbreakable();
    stonebrick6 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick6").setBlockUnbreakable();
    stonebrick7 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick7").setBlockUnbreakable();
    stonebrick8 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick8").setBlockUnbreakable();
    stonebrick9 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick9").setBlockUnbreakable();
    stonebrick10 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick10").setBlockUnbreakable();
    stonebrick11 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick11").setBlockUnbreakable();
    stonebrick12 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick12").setBlockUnbreakable();
    stonebrick13 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stonebrick13").setBlockUnbreakable();
    cobblestone1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone1").setBlockUnbreakable();
    cobblestone2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone2").setBlockUnbreakable();
    cobblestone3 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone3").setBlockUnbreakable();
    cobblestone4 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone4").setBlockUnbreakable();
    cobblestone5 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone5").setBlockUnbreakable();
    cobblestone6 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone6").setBlockUnbreakable();
    cobblestone7 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone7").setBlockUnbreakable();
    cobblestone8 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone8").setBlockUnbreakable();
    cobblestone9 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone9").setBlockUnbreakable();
    cobblestone10 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("cobblestone10").setBlockUnbreakable();
    
    dirt1 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt1").setBlockUnbreakable();
    dirt2 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt2").setBlockUnbreakable();
    dirt3 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt3").setBlockUnbreakable();
    dirt4 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt4").setBlockUnbreakable();
    dirt5 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt5").setBlockUnbreakable();
    dirt6 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt6").setBlockUnbreakable();
    dirt7 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt7").setBlockUnbreakable();
    dirt8 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt8").setBlockUnbreakable();
    dirt9 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("dirt9").setBlockUnbreakable();
    
    grassblock1 = new BlockUpdateClass(Material.GRASS).setUnlocalizedName("grassblock1").setBlockUnbreakable();
    grassblock2 = new BlockUpdateClass(Material.GRASS).setUnlocalizedName("grassblock2").setBlockUnbreakable();
    grassblock3 = new BlockUpdateClass(Material.GRASS).setUnlocalizedName("grassblock3").setBlockUnbreakable();
    
    brick1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("brick1").setBlockUnbreakable();
    brick2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("brick2").setBlockUnbreakable();
    brick3 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("brick3").setBlockUnbreakable();
    brick4 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("brick4").setBlockUnbreakable();
    
    diamond1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("diamond1").setBlockUnbreakable();
    
    epic1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("epic1").setBlockUnbreakable();
    epic2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("epic2").setBlockUnbreakable();
    epic3 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("epic3").setBlockUnbreakable();
    epic4 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("epic4").setBlockUnbreakable();
    epic5 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("epic5").setBlockUnbreakable();
    
    quartz1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("quartz1").setBlockUnbreakable();
    quartz2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("quartz2").setBlockUnbreakable();
    
    clay1 = new BlockUpdateClass(Material.CLAY).setUnlocalizedName("clay1").setBlockUnbreakable();
    clay2 = new BlockUpdateClass(Material.CLAY).setUnlocalizedName("clay2").setBlockUnbreakable();
    
    stone1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stone1").setBlockUnbreakable();
    stone2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stone2").setBlockUnbreakable();
    stone3 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stone3").setBlockUnbreakable();
    stone4 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stone4").setBlockUnbreakable();
    stone5 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("stone5").setBlockUnbreakable();
    
    wool1 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool1").setBlockUnbreakable();
    wool2 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool2").setBlockUnbreakable();
    wool3 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool3").setBlockUnbreakable();
    wool4 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool4").setBlockUnbreakable();
    wool5 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool5").setBlockUnbreakable();
    wool6 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool6").setBlockUnbreakable();
    wool7 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool7").setBlockUnbreakable();
    wool8 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool8").setBlockUnbreakable();
    wool9 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool9").setBlockUnbreakable();
    wool10 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool10").setBlockUnbreakable();
    wool11 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool11").setBlockUnbreakable();
    wool12 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool12").setBlockUnbreakable();
    wool13 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool13").setBlockUnbreakable();
    wool14 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool14").setBlockUnbreakable();
    wool15 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool15").setBlockUnbreakable();
    wool16 = new BlockUpdateClass(Material.CLOTH).setUnlocalizedName("wool16").setBlockUnbreakable();
    
    log1 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log1").setBlockUnbreakable();
    log2 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log2").setBlockUnbreakable();
    log3 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log3").setBlockUnbreakable();
    log4 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log4").setBlockUnbreakable();
    log5 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log5").setBlockUnbreakable();
    log6 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log6").setBlockUnbreakable();
    log7 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log7").setBlockUnbreakable();
    log8 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log8").setBlockUnbreakable();
    log9 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log9").setBlockUnbreakable();
    log10 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log10").setBlockUnbreakable();
    log11 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log11").setBlockUnbreakable();
    log12 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log12").setBlockUnbreakable();
    log13 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("log13").setBlockUnbreakable();
    
    hayblock1 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("hayblock1").setBlockUnbreakable();
    hayblock2 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("hayblock2").setBlockUnbreakable();
    hayblock3 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("hayblock3").setBlockUnbreakable();
    hayblock4 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("hayblock4").setBlockUnbreakable();
    
    gravel1 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("gravel1").setBlockUnbreakable();
    gravel2 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("gravel2").setBlockUnbreakable();
    gravel3 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("gravel3").setBlockUnbreakable();
    gravel4 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("gravel4").setBlockUnbreakable();
    gravel5 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("gravel5").setBlockUnbreakable();
    gravel6 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("gravel6").setBlockUnbreakable();
    gravel7 = new BlockUpdateClass(Material.GROUND).setUnlocalizedName("gravel7").setBlockUnbreakable();
    
    carvedstone1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone1").setBlockUnbreakable();
    carvedstone2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone2").setBlockUnbreakable();
    carvedstone3 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone3").setBlockUnbreakable();
    carvedstone4 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone4").setBlockUnbreakable();
    carvedstone5 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone5").setBlockUnbreakable();
    carvedstone6 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone6").setBlockUnbreakable();
    carvedstone7 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone7").setBlockUnbreakable();
    carvedstone8 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone8").setBlockUnbreakable();
    carvedstone9 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone9").setBlockUnbreakable();
    carvedstone10 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone10").setBlockUnbreakable();
    carvedstone11 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("carvedstone11").setBlockUnbreakable();
    
    plankstairs1 = new BlockUpdateStairsClass(planks1.getDefaultState(), 0);

    
    //plankstairs2 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "plankstairs2", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //plankstairs3 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "plankstairs3", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //plankstairs4 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "plankstairs4", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //plankstairs5 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "plankstairs5", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //plankstairs6 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "plankstairs6", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //plankstairs7 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "plankstairs7", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //plankstairs8 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "plankstairs8", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //dirtstairs1 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "dirtstairs1", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //cobblestairs1 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "cobblestairs1", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //stonebrickstairs1 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "stonebrickstairs1", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //stonebrickstairs2 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "stonebrickstairs2", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //stonebrickstairs3 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "stonebrickstairs3", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //stonebrickstairs4 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "stonebrickstairs4", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //stonebrickstairs5 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "stonebrickstairs5", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //grassstairs1 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "grassstairs1", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //grassstairs2 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "grassstairs2", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //grassstairs3 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "grassstairs3", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //epicstairs1 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "epicstairs1", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    //epicstairs2 = (BlockUpdateStairsClass)new BlockUpdateStairsClass(Material.field_151576_e, "epicstairs2", 3.0F, 5.0F, null, BlockUpdateStairsClass.HarvestToolEnum.PICKAXE, BlockUpdateStairsClass.HarvestLevelEnum.STONE).func_149722_s();
    
    //leaves1 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves1");
    //leaves2 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves2");
    //leaves3 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves3");
    //leaves4 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves4");
    //leaves5 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves5");
    //leaves6 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves6");
    //leaves7 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves7");
    //leaves8 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves8");
    //leaves9 = (BlockUpdateLeavesClass)new BlockUpdateLeavesClass(Material.field_151577_b).func_149663_c("leaves9");
    
    glass1 = new BlockUpdateGlassClass(null, Material.GLASS, 0, 0).setUnlocalizedName("glass1").setBlockUnbreakable();
    glass2 = new BlockUpdateGlassClass(null, Material.GLASS, 0, 0).setUnlocalizedName("glass2").setBlockUnbreakable();
    glass3 = new BlockUpdateGlassClass(null, Material.GLASS, 0, 0).setUnlocalizedName("glass3").setBlockUnbreakable();
    glass4 = new BlockUpdateGlassClass(null, Material.GLASS, 0, 0).setUnlocalizedName("glass4").setBlockUnbreakable();
    transparent64x64 = new BlockUpdateGlassClass("transparent64x64", Material.WOOD, 0, 0).setUnlocalizedName("transparent64x64").setBlockUnbreakable();
    transparentlight64x64 = new BlockUpdateGlassClass(null, Material.GLASS, 0, 0).setUnlocalizedName("transparentlight64x64").setBlockUnbreakable().setLightLevel(1F);
    IceBlock1 = new BlockUpdateGlassClass(null,Material.ICE, 0, 0).setUnlocalizedName("IceBlock1").setBlockUnbreakable();
    
    glowstone1 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("glowstone1").setLightLevel(1F).setBlockUnbreakable();
    glowstone2 = new BlockUpdateClass(Material.ROCK).setUnlocalizedName("glowstone2").setLightLevel(1F).setBlockUnbreakable();
    
    fence1 = new BlockUpdateClass(Material.WOOD).setUnlocalizedName("fence1").setBlockUnbreakable();
  }
  
  public static void register()
  {
  GameRegistry.registerBlock(TestBlock, TestBlock.getUnlocalizedName().substring(5));
  
  GameRegistry.registerBlock(wooden_trump, wooden_trump.getUnlocalizedName().substring(5));
  
    GameRegistry.registerBlock(hayblockside1_1, hayblockside1_1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(hayblockside1_2, hayblockside1_2.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(sidelog1_1side, sidelog1_1side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog1_2side, sidelog1_2side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog2_1side, sidelog2_1side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog2_2side, sidelog2_2side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog3_1side, sidelog3_1side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog3_2side, sidelog3_2side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog4_1side, sidelog4_1side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog4_2side, sidelog4_2side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog5_1side, sidelog5_1side.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sidelog5_2side, sidelog5_2side.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(planks1, planks1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks2, planks2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks3, planks3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks4, planks4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks5, planks5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks6, planks6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks7, planks7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks8, planks8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks9, planks9.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks10, planks10.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks11, planks11.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks12, planks12.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks13, planks13.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks14, planks14.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks15, planks15.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks16, planks16.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks17, planks17.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks18, planks18.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks19, planks19.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks20, planks20.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks21, planks21.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks22, planks22.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks23, planks23.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks24, planks24.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks25, planks25.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks26, planks26.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks27, planks27.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks28, planks28.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks29, planks29.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks30, planks30.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks31, planks31.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks32, planks32.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks33, planks33.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks34, planks34.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks35, planks35.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks36, planks36.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks37, planks37.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks38, planks38.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks39, planks39.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks40, planks40.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks41, planks41.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks42, planks42.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks43, planks43.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks44, planks44.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks45, planks45.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks46, planks46.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks47, planks47.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks48, planks48.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks49, planks49.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks50, planks50.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks51, planks51.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(planks52, planks52.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(sand1, sand1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sand2, sand2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sand3, sand3.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(sandstone1, sandstone1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone2, sandstone2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone3, sandstone3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone4, sandstone4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone5, sandstone5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone6, sandstone6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone7, sandstone7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone8, sandstone8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone9, sandstone9.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone10, sandstone10.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone11, sandstone11.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone12, sandstone12.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone13, sandstone13.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone14, sandstone14.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(sandstone15, sandstone15.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(stonebrick1, stonebrick1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick2, stonebrick2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick3, stonebrick3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick4, stonebrick4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick5, stonebrick5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick6, stonebrick6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick7, stonebrick7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick8, stonebrick8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick9, stonebrick9.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick10, stonebrick10.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick11, stonebrick11.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick12, stonebrick12.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stonebrick13, stonebrick13.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone1, cobblestone1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone2, cobblestone2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone3, cobblestone3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone4, cobblestone4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone5, cobblestone5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone6, cobblestone6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone7, cobblestone7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone8, cobblestone8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone9, cobblestone9.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(cobblestone10, cobblestone10.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(dirt1, dirt1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt2, dirt2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt3, dirt3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt4, dirt4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt5, dirt5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt6, dirt6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt7, dirt7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt8, dirt8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(dirt9, dirt9.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(grassblock1, grassblock1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(grassblock2, grassblock2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(grassblock3, grassblock3.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(brick1, brick1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(brick2, brick2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(brick3, brick3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(brick4, brick4.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(diamond1, diamond1.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(stone1, stone1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stone2, stone2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stone3, stone3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(stone4, stone4.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(epic1, epic1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(epic2, epic2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(epic3, epic3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(epic4, epic4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(epic5, epic5.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(quartz1, quartz1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(quartz2, quartz2.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(clay1, clay1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(clay2, clay2.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(wool1, wool1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool2, wool2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool3, wool3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool4, wool4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool5, wool5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool6, wool6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool7, wool7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool8, wool8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool9, wool9.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool10, wool10.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool11, wool11.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool12, wool12.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool13, wool13.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool14, wool14.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool15, wool15.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(wool16, wool16.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(log1, log1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log2, log2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log3, log3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log4, log4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log5, log5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log6, log6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log7, log7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log8, log8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log9, log9.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log10, log10.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log11, log11.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log12, log12.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(log13, log13.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(hayblock1, hayblock1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(hayblock2, hayblock2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(hayblock3, hayblock3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(hayblock4, hayblock4.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(carvedstone1, carvedstone1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone2, carvedstone2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone3, carvedstone3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone4, carvedstone4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone5, carvedstone5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone6, carvedstone6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone7, carvedstone7.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone8, carvedstone8.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone9, carvedstone9.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone10, carvedstone10.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(carvedstone11, carvedstone11.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(gravel1, gravel1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(gravel2, gravel2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(gravel3, gravel3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(gravel4, gravel4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(gravel5, gravel5.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(gravel6, gravel6.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(gravel7, gravel7.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(plankstairs1, plankstairs1.getUnlocalizedName().substring(5));
    
    //GameRegistry.registerBlock(leaves1, leaves1.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves2, leaves2.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves3, leaves3.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves4, leaves4.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves5, leaves5.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves6, leaves6.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves7, leaves7.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves8, leaves8.func_149739_a().substring(5));
    //GameRegistry.registerBlock(leaves9, leaves9.func_149739_a().substring(5));
    
    GameRegistry.registerBlock(glowstone1, glowstone1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(glowstone2, glowstone2.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(glass1, glass1.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(glass2, glass2.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(glass3, glass3.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(glass4, glass4.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(transparent64x64, transparent64x64.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(transparentlight64x64, transparentlight64x64.getUnlocalizedName().substring(5));
    GameRegistry.registerBlock(IceBlock1, IceBlock1.getUnlocalizedName().substring(5));
    
    GameRegistry.registerBlock(fence1, fence1.getUnlocalizedName().substring(5));
  }
  
  public static void registerRenders()
  {
  registerRender(TestBlock);
  
  registerRender(wooden_trump);
  
    registerRender(hayblockside1_1);
    registerRender(hayblockside1_2);
    
    registerRender(sidelog1_1side);
    registerRender(sidelog1_2side);
    registerRender(sidelog2_1side);
    registerRender(sidelog2_2side);
    registerRender(sidelog3_1side);
    registerRender(sidelog3_2side);
    registerRender(sidelog4_1side);
    registerRender(sidelog4_2side);
    registerRender(sidelog5_1side);
    registerRender(sidelog5_2side);
    
    registerRender(planks1);
    registerRender(planks2);
    registerRender(planks3);
    registerRender(planks4);
    registerRender(planks5);
    registerRender(planks6);
    registerRender(planks7);
    registerRender(planks8);
    registerRender(planks9);
    registerRender(planks10);
    registerRender(planks11);
    registerRender(planks12);
    registerRender(planks13);
    registerRender(planks14);
    registerRender(planks15);
    registerRender(planks16);
    registerRender(planks17);
    registerRender(planks18);
    registerRender(planks19);
    registerRender(planks20);
    registerRender(planks21);
    registerRender(planks22);
    registerRender(planks23);
    registerRender(planks24);
    registerRender(planks25);
    registerRender(planks26);
    registerRender(planks27);
    registerRender(planks28);
    registerRender(planks29);
    registerRender(planks30);
    registerRender(planks31);
    registerRender(planks32);
    registerRender(planks33);
    registerRender(planks34);
    registerRender(planks35);
    registerRender(planks36);
    registerRender(planks37);
    registerRender(planks38);
    registerRender(planks39);
    registerRender(planks40);
    registerRender(planks41);
    registerRender(planks42);
    registerRender(planks43);
    registerRender(planks44);
    registerRender(planks45);
    registerRender(planks46);
    registerRender(planks47);
    registerRender(planks48);
    registerRender(planks49);
    registerRender(planks50);
    registerRender(planks51);
    registerRender(planks52);
    
    registerRender(sand1);
    registerRender(sand2);
    registerRender(sand3);
    
    registerRender(sandstone1);
    registerRender(sandstone2);
    registerRender(sandstone3);
    registerRender(sandstone4);
    registerRender(sandstone5);
    registerRender(sandstone6);
    registerRender(sandstone7);
    registerRender(sandstone8);
    registerRender(sandstone9);
    registerRender(sandstone10);
    registerRender(sandstone11);
    registerRender(sandstone12);
    registerRender(sandstone13);
    registerRender(sandstone14);
    registerRender(sandstone15);
    
    registerRender(stonebrick1);
    registerRender(stonebrick2);
    registerRender(stonebrick3);
    registerRender(stonebrick4);
    registerRender(stonebrick5);
    registerRender(stonebrick6);
    registerRender(stonebrick7);
    registerRender(stonebrick8);
    registerRender(stonebrick9);
    registerRender(stonebrick10);
    registerRender(stonebrick11);
    registerRender(stonebrick12);
    registerRender(stonebrick13);
    registerRender(cobblestone1);
    registerRender(cobblestone2);
    registerRender(cobblestone3);
    registerRender(cobblestone4);
    registerRender(cobblestone5);
    registerRender(cobblestone6);
    registerRender(cobblestone7);
    registerRender(cobblestone8);
    registerRender(cobblestone9);
    registerRender(cobblestone10);
    
    registerRender(dirt1);
    registerRender(dirt2);
    registerRender(dirt3);
    registerRender(dirt4);
    registerRender(dirt5);
    registerRender(dirt6);
    registerRender(dirt7);
    registerRender(dirt8);
    registerRender(dirt9);
    
    registerRender(grassblock1);
    registerRender(grassblock2);
    registerRender(grassblock3);
    
    registerRender(log1);
    registerRender(log2);
    registerRender(log3);
    registerRender(log4);
    registerRender(log5);
    registerRender(log6);
    registerRender(log7);
    registerRender(log8);
    registerRender(log9);
    registerRender(log10);
    registerRender(log11);
    registerRender(log12);
    registerRender(log13);
    
    registerRender(hayblock1);
    registerRender(hayblock2);
    registerRender(hayblock3);
    registerRender(hayblock4);
    
    registerRender(carvedstone1);
    registerRender(carvedstone2);
    registerRender(carvedstone3);
    registerRender(carvedstone4);
    registerRender(carvedstone5);
    registerRender(carvedstone6);
    registerRender(carvedstone7);
    registerRender(carvedstone8);
    registerRender(carvedstone9);
    registerRender(carvedstone10);
    registerRender(carvedstone11);
    
    registerRender(gravel1);
    registerRender(gravel2);
    registerRender(gravel3);
    registerRender(gravel4);
    registerRender(gravel5);
    registerRender(gravel6);
    registerRender(gravel7);
    
    registerRender(plankstairs1);
    //registerRender(plankstairs2);
    //registerRender(plankstairs3);
    //registerRender(plankstairs4);
    //registerRender(plankstairs5);
    //registerRender(plankstairs6);
    //registerRender(plankstairs7);
    //registerRender(plankstairs8);
    //registerRender(dirtstairs1);
    //registerRender(cobblestairs1);
    //registerRender(stonebrickstairs1);
    //registerRender(stonebrickstairs2);
    //registerRender(stonebrickstairs3);
    //registerRender(stonebrickstairs4);
    //registerRender(stonebrickstairs5);
    //registerRender(grassstairs1);
    //registerRender(grassstairs2);
    //registerRender(grassstairs3);
    //registerRender(epicstairs1);
    //registerRender(epicstairs2);
    
    registerRender(brick1);
    registerRender(brick2);
    registerRender(brick3);
    registerRender(brick4);
    
    registerRender(diamond1);
    
    registerRender(epic1);
    registerRender(epic2);
    registerRender(epic3);
    registerRender(epic4);
    registerRender(epic5);
    
    registerRender(stone1);
    registerRender(stone2);
    registerRender(stone3);
    registerRender(stone4);
    
    registerRender(quartz1);
    registerRender(quartz2);
    
    registerRender(clay1);
    registerRender(clay2);
    
    registerRender(wool1);
    registerRender(wool2);
    registerRender(wool3);
    registerRender(wool4);
    registerRender(wool5);
    registerRender(wool6);
    registerRender(wool7);
    registerRender(wool8);
    registerRender(wool9);
    registerRender(wool10);
    registerRender(wool11);
    registerRender(wool12);
    registerRender(wool13);
    registerRender(wool14);
    registerRender(wool15);
    registerRender(wool16);
    
    //registerRender(leaves1);
    //registerRender(leaves2);
    //registerRender(leaves3);
    //registerRender(leaves4);
    //registerRender(leaves5);
    //registerRender(leaves6);
    //registerRender(leaves7);
    //registerRender(leaves8);
    //registerRender(leaves9);
    
    registerRender(glass1);
    registerRender(glass2);
    registerRender(glass3);
    registerRender(glass4);
    registerRender(transparent64x64);
    registerRender(transparentlight64x64);
    registerRender(IceBlock1);
    
    registerRender(glowstone1);
    registerRender(glowstone2);
    
    registerRender(fence1);
  }
  
  public static void registerRender(Block block)
  {
  System.out.println("Try block: " + block);
    Item item = Item.getItemFromBlock(block);
    
    Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation ("BlockUpdate:" + item.getUnlocalizedName().substring(5), "inventory"));
  }
}

Link to comment
Share on other sites

Please post updated code.

 

 

well after testing and testing,

 

its working after putting the render etc into my main class.

 

		 EntityRegistry.registerModEntity(EntityModelTest.class, "EntityModelTest", 19, BlocksUpdate.instance, 64, 20, true);
	 EntityRegistry.registerEgg(EntityModelTest.class, 0xFF00, 0xFF00);
	 EntityRegistry.addSpawn(EntityModelTest.class, 5, 1, 10, EnumCreatureType.MONSTER, Biome.getBiome(1));

	 EntityRegistry.registerModEntity(EntityDragonTest.class, "EntityDragonTest", 20, BlocksUpdate.instance, 64, 20, true);
	 EntityRegistry.registerEgg(EntityDragonTest.class, 0xFF00, 0xFF00);
	 EntityRegistry.addSpawn(EntityDragonTest.class, 5, 1, 10, EnumCreatureType.MONSTER, Biome.getBiome(1));

	 RenderingRegistry.registerEntityRenderingHandler(EntityModelTest.class, new RenderModelTest()); 	
	 RenderingRegistry.registerEntityRenderingHandler(EntityDragonTest.class, new RenderDragonTest()); 		 

   

 

 

anyways, when my custom dragon spawn, everything gets red, i dont even see the dragon just a black tail...  and i see entitys flying (sheeps etc ..) xD

 

might it be , becouse i took the "vanilla dragon entity" ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

Announcements



×
×
  • Create New...

Important Information

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