Jump to content

[1.7.2] Problems with subtypes


Recommended Posts

So here I am again. Stuck with a problem. OK, so I want to place a block, then the tile entity and then set a subtype (an Integer) to the tile entity which I did. The problems are:

1) Every time I destroy a block, the subtype gets removed from all surrounding blocks

2) Every time I place a different block (example: grass block), the subtype gets removed from all surrounding blocks

3) Every time I place the same blocks that has to set another subtype, it changes all surrounding blocks' subtypes (example: I placed 8 blocks with a subtype of 1, I want to place a block with subtype 8, all blocks convert to the subtype 8, instead of the only one)

 

Again the code is nowhere near finished or something like that. If I made a mistake with something basic, please tell me. Any help is appreciated :)

Here's the code:

 

Traffic Stuff Mod.java

package net.theTrollguy.trafficStuffMod;

import net.minecraft.block.Block;
import net.minecraft.tileentity.TileEntity;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = "trafficstuffmod", name = "Traffic Stuff Mod", version = "indev")
public class TrafficStuffMod
{
@SidedProxy(clientSide="net.theTrollguy.trafficStuffMod.TrafficStuffClientProxy", serverSide="net.theTrollguy.trafficStuffMod.TrafficStuffCommonProxy")
public static TrafficStuffClientProxy proxy;

public static BlocksOfAsphalt_Yellow_0 blocksOfAsphalt_Yellow_0;
public static final TileEntity BOA_Yellow_0 = new TileEntityBOA_Yellow_0();

@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
	blocksOfAsphalt_Yellow_0 = new BlocksOfAsphalt_Yellow_0();
	GameRegistry.registerBlock(blocksOfAsphalt_Yellow_0, ItemBlocksOfAsphalt_Yellow_0.class, "blocksOfAsphalt_Yellow_0");
	GameRegistry.registerTileEntity(TileEntityBOA_Yellow_0.class, "tileEntityBLocksOfAsphalt_Yellow_0");
	proxy.registerRenderers();
}

@EventHandler
public void init(FMLInitializationEvent event)
{

}

@EventHandler
public void postInit(FMLPostInitializationEvent event)
{

}
}

 

TrafficStuffClientProxy.java

package net.theTrollguy.trafficStuffMod;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;

public class TrafficStuffClientProxy extends TrafficStuffCommonProxy
{
public static int renderPass;
public static int BOA_Yellow_0_ID;

    @Override
    public void registerRenderers()
    {
    	RendererBOA_Yellow_0 renderBOA_Yellow_0 = new RendererBOA_Yellow_0();
    	BOA_Yellow_0_ID = RenderingRegistry.getNextAvailableRenderId();
    	RenderingRegistry.registerBlockHandler(BOA_Yellow_0_ID, new RendererBOA_Yellow_0());
    }
}

 

BlocksOfAsphalt_Yellow_0.java

package net.theTrollguy.trafficStuffMod;

import java.util.List;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

public class BlocksOfAsphalt_Yellow_0 extends Block
{
@SideOnly(Side.CLIENT) IIcon asphalt;
@SideOnly(Side.CLIENT) IIcon AY_1_s;
@SideOnly(Side.CLIENT) IIcon AY_1_d;
@SideOnly(Side.CLIENT) IIcon AY_2_s;
@SideOnly(Side.CLIENT) IIcon AY_2_d;
@SideOnly(Side.CLIENT) IIcon AY_3_s;
@SideOnly(Side.CLIENT) IIcon AY_3_d;
@SideOnly(Side.CLIENT) IIcon AY_4_s;
@SideOnly(Side.CLIENT) IIcon AY_4_d;
@SideOnly(Side.CLIENT) IIcon AY_5_s;
@SideOnly(Side.CLIENT) IIcon AY_5_d;
@SideOnly(Side.CLIENT) IIcon AY_6_s;
@SideOnly(Side.CLIENT) IIcon AY_6_d;
@SideOnly(Side.CLIENT) IIcon AY_7_s;
@SideOnly(Side.CLIENT) IIcon AY_7_d;
@SideOnly(Side.CLIENT) IIcon AY_8_s;
@SideOnly(Side.CLIENT) IIcon AY_8_d;
@SideOnly(Side.CLIENT) IIcon AY_9_s;
@SideOnly(Side.CLIENT) IIcon AY_9_d;
@SideOnly(Side.CLIENT) IIcon AY_10_s;
@SideOnly(Side.CLIENT) IIcon AY_10_d;
@SideOnly(Side.CLIENT) IIcon AY_11_s;
@SideOnly(Side.CLIENT) IIcon AY_11_d;
@SideOnly(Side.CLIENT) IIcon AY_12_s;
@SideOnly(Side.CLIENT) IIcon AY_12_d;
@SideOnly(Side.CLIENT) IIcon AY_13_s;
@SideOnly(Side.CLIENT) IIcon AY_13_d;
@SideOnly(Side.CLIENT) IIcon AY_14_s;
@SideOnly(Side.CLIENT) IIcon AY_14_d;
@SideOnly(Side.CLIENT) IIcon AY_15_s;
@SideOnly(Side.CLIENT) IIcon AY_15_d;

public BlocksOfAsphalt_Yellow_0()
{
	super(Material.rock);
	this.setCreativeTab(CreativeTabs.tabBlock);
	this.setStepSound(Block.soundTypeStone);
	float F = 0.000000000000000001F;
	this.setBlockBounds(0.0F + F, 0.0F + F, 0.0F + F, 1.0F - F, 1.0F - F, 1.0F - F);
	this.useNeighborBrightness = true;
}

public TileEntity createNewTileEntity(World world)
{
	return new TileEntityBOA_Yellow_0();
}

@Override
public boolean hasTileEntity(int metadata)
{
	return true;
}

@Override
public void onBlockPlacedBy(World world, int X, int Y, int Z, EntityLivingBase enbtityLivingBase, ItemStack itemStack)
    {
        world.setTileEntity(X, Y, Z, TrafficStuffMod.BOA_Yellow_0);
    }

@Override
public void breakBlock(World world, int X, int Y, int Z, Block block, int metadata)
{
	world.removeTileEntity(X, Y, Z);
    super.breakBlock(world, X, Y, Z, block, metadata); 
}

@Override
    public boolean renderAsNormalBlock()
{
	return false;
}

@Override
    public boolean isOpaqueCube()
{
	return true;
}

@Override
    public int getRenderType()
{
	return RendererBOA_Yellow_0.renderID;
}

@SideOnly(Side.CLIENT)
    public IIcon getBlockTexture(IBlockAccess IBlockAccess, int X, int Y, int Z, int side)
    {
	return this.asphalt;
    }

@Override
public IIcon getIcon(int side, int meta)
{
	return this.asphalt;
}

@SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister IIconRegister)
    {
	asphalt = IIconRegister.registerIcon("trafficStuffMod:asphalt");
        AY_1_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_1_straight");
        AY_1_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_1_diagonal");
        AY_2_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_2_straight");
        AY_2_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_2_diagonal");
        AY_3_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_3_straight");
        AY_3_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_3_diagonal");
        AY_4_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_4_straight");
        AY_4_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_4_diagonal");
        AY_5_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_5_straight");
        AY_5_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_5_diagonal");
        AY_6_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_6_straight");
        AY_6_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_6_diagonal");
        AY_7_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_7_straight");
        AY_7_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_7_diagonal");
        AY_8_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_8_straight");
        AY_8_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_8_diagonal");
        AY_9_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_9_straight");
        AY_9_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_9_diagonal");
        AY_10_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_10_straight");
        AY_10_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_10_diagonal");
        AY_11_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_11_straight");
        AY_11_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_11_diagonal");
        AY_12_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_12_straight");
        AY_12_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_12_diagonal");
        AY_13_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_13_straight");
        AY_13_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_13_diagonal");
        AY_14_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_14_straight");
        AY_14_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_14_diagonal");
        AY_15_s = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_15_straight");
        AY_15_d = IIconRegister.registerIcon("trafficStuffMod:asphaltYellow_15_diagonal");
    }

protected boolean canSilkHarvest()
{
	return false;
}

    @SideOnly(Side.CLIENT) @Override
    public void getSubBlocks(Item item, CreativeTabs creativeTabs, List list)
    {
	list.add(new ItemStack(item, 1, 1));
	list.add(new ItemStack(item, 1, 9));
	list.add(new ItemStack(item, 1, 17));
	list.add(new ItemStack(item, 1, 25));
	list.add(new ItemStack(item, 1, 33));
	list.add(new ItemStack(item, 1, 41));
	list.add(new ItemStack(item, 1, 49));
	list.add(new ItemStack(item, 1, 57));
	list.add(new ItemStack(item, 1, 65));
	list.add(new ItemStack(item, 1, 73));
	list.add(new ItemStack(item, 1, 81));
	list.add(new ItemStack(item, 1, 89));
	list.add(new ItemStack(item, 1, 97));
	list.add(new ItemStack(item, 1, 105));
	list.add(new ItemStack(item, 1, 113));
    }

@SideOnly(Side.CLIENT)
public Item getItem(World world, int X, int Y, int Z)
{
	return Item.getItemFromBlock(TrafficStuffMod.blocksOfAsphalt_Yellow_0);
}
}

 

ItemBlocksOfAsphalt_Yellow_0.java

package net.theTrollguy.trafficStuffMod;

import java.util.List;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

public class ItemBlocksOfAsphalt_Yellow_0 extends ItemBlock
{
public ItemBlocksOfAsphalt_Yellow_0(Block block)
{
	super(block);
	this.setHasSubtypes(true);
}

@Override
public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean something)
    {
    	int subtype = itemStack.getItemDamage();
    	if (subtype == 1)   { list.add("§e§lArrow to Straight ");          										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 9)   { list.add("§e§lArrow to Left"); 	           list.add("§e§land a Part to Straight"); list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 17)  { list.add("§e§lArrow to Left"); 	  	       										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 25)  { list.add("§e§lArrow to Right"); 	           list.add("§e§land a Part to Straight"); list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 33)  { list.add("§e§lArrow to Right");              										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 41)  { list.add("§e§lArrow to Left, Right");        list.add("§e§land a Part to Straight"); list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 49)  { list.add("§e§lArrow to Left and Right");     										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 57)  { list.add("§e§lArrow to Straight");                                                   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 65)  { list.add("§e§lArrow to Straight and Left");  										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 73)  { list.add("§e§lArrow to Left"); 			   										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 81)  { list.add("§e§lArrow to Straight and Right"); 										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 89)  { list.add("§e§lArrow to Right"); 			   										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 97)  { list.add("§e§lArrow to Straight, Left");     list.add("§e§land Right"); 			   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 105) { list.add("§e§lArrow to Left and Right"); 	   										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 113) { list.add("§e§lArrow to Straight"); 		   										   list.add("§fADDED IN: 1.0.0"); }
    }


public boolean onItemUse(ItemStack itemStack, EntityPlayer entityPlayer, World world, int X, int Y, int Z, int side, float hitX, float hitY, float hitZ)
{	
	/**
	 * Determines all main direction(2 = NORTH, 3 = EAST, 0 = SOUTH, 1 = WEST).
	 **/
	int direction_90 = MathHelper.floor_double((double)(entityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
	/**
	 * Determines all main and sub directions(4 = NORTH, 5 = NORTH-EAST, 6 = EAST, 7 = SOUTH-EAST, 0 = SOUTH, 1 = SOUTH-WEST
	 * 2 = WEST, 3 = NORTH-WEST).
	 **/
	int direction_45 = MathHelper.floor_double((double)(entityPlayer.rotationYaw * 8.0F / 360.0F) + 0.5D) & 7;

	Block block = world.getBlock(X, Y, Z);

        if (block == Blocks.snow_layer && (world.getBlockMetadata(X, Y, Z) & 7) < 1)
        {
            side = 1;
        }
        if (block != Blocks.vine && block != Blocks.tallgrass && block != Blocks.deadbush && !block.isReplaceable(world, X, Y, Z))
        {
            if (side == 0)
            {
                --Y;
            }

            if (side == 1)
            {
                ++Y;
            }

            if (side == 2)
            {
                --Z;
            }

            if (side == 3)
            {
                ++Z;
            }

            if (side == 4)
            {
                --X;
            }

            if (side == 5)
            {
                ++X;
            }
        
        if(itemStack.stackSize == 0)
		{
			return false;
		}
		else if (!entityPlayer.canPlayerEdit(X, Y, Z, side, itemStack))
		{
			return false;
		}
		else if (Y == 255 && this.field_150939_a.getMaterial().isSolid())
		{
			return false;
		}
        else if (world.canPlaceEntityOnSide(this.field_150939_a, X, Y, Z, false, side, entityPlayer, itemStack))
        {
            int metadata = this.getMetadata(itemStack.getItemDamage());
            int j1 = this.field_150939_a.onBlockPlaced(world, X, Y, Z, side, hitX, hitY, hitZ, metadata);

            if (placeBlockAt(itemStack, entityPlayer, world, X, Y, Z, side, hitX, hitY, hitZ, j1))
            {
            	TileEntity tileEntity = world.getTileEntity(X, Y, Z);
    			int subtype = itemStack.getItemDamage();
    			
    			if (tileEntity != null && tileEntity instanceof TileEntityBOA_Yellow_0)
    			{
    				switch (subtype)
    				{
    					// ARROW TO STRAIGHT
    					case 1: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(5); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(6); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(7); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(; break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(1); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(2); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(3); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(4); break;
    					} break;
    					// ARROW TO LEFT AND A PART TO STRAIGHT
    					case 9: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(13); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(14); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(15); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(16); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(9); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(10); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(11); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(12); break;
    					} break;
    					// ARROW TO LEFT
    					case 17: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(21); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(22); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(23); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(24); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(17); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(18); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(19); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(20); break;
    					} break;
    					// ARROW TO RIGHT AND A PART TO STRAIGHT
    					case 25: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(29); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(30); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(31); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(32); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(25); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(26); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(27); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(28); break;
    					} break;
    					// ARROW TO RIGHT
    					case 33: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(37); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(38); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(39); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(40); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(33); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(34); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(35); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(36); break;
    					} break;
    					// ARROW TO LEFT, RIGHT AND A PART TO STRAIGHT
    					case 41: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(45); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(46); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(47); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(48); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(41); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(42); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(43); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(44); break;
    					} break;
    					// ARROW TO LEFT AND RIGHT
    					case 49: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(53); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(54); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(55); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(56); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(49); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(50); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(51); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(52); break;
    					} break;
    					// ARROW TO STRAIGHT
    					case 57: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(61); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(62); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(63); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(64); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(57); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(58); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(59); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(60); break;
    					} break;
    					// ARROW TO STRAIGHT AND LEFT
    					case 65: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(69); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(70); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(71); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(72); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(65); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(66); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(67); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(68); break;
    					} break;
    					// ARROW TO STRAIGHT AND LEFT
    					case 73: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(77); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(78); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(79); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(80); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(73); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(74); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(75); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(76); break;
    					}
    					// ARROW TO LEFT
    					case 81: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(85); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(86); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(87); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(88); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(81); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(82); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(83); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(84); break;
    		        	}
    					// ARROW TO STRAIGHT AND RIGHT
    					case 89: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(93); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(94); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(95); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(96); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(89); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(90); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(91); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(92); break;
    		        	}
    					// ARROW TO RIGHT
    					case 97: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(101); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(102); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(103); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(104); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(97); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(98); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(99); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(100); break;
    		        	} break;
    					// ARROW TO STRAIGHT, LEFT AND RIGHT
    					case 105: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(109); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(110); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(111); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(112); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(105); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(106); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(107); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(108); break;
    		        	} break;
    					// ARROW TO STRAIGHT, LEFT AND RIGHT
    					case 113: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(117); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(118); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(119); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(120); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(113); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(114); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(115); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(116); break;
    		        	} break;    
    				}
    			}
            }
        }
        world.playSoundEffect((double)((float)X + 0.5F), (double)((float)Y + 0.5F), (double)((float)Z + 0.5F), this.field_150939_a.stepSound.func_150496_b(), (this.field_150939_a.stepSound.getVolume() + 1.0F) / 2.0F, this.field_150939_a.stepSound.getPitch() * 0.8F);
            --itemStack.stackSize;
        return true;
        }
        else
        {
        	return false;
        }
}

public String getUnlocalizedName(ItemStack itemStack)
{
	return "blocksOfAsphalt_Yellow_0";
}

@SideOnly(Side.CLIENT)
    public void getSubItems(Item item, CreativeTabs creativeTabs, List list)
    {
	list.add(new ItemStack(item, 1, 1));
	list.add(new ItemStack(item, 1, 9));
	list.add(new ItemStack(item, 1, 17));
	list.add(new ItemStack(item, 1, 25));
	list.add(new ItemStack(item, 1, 33));
	list.add(new ItemStack(item, 1, 41));
	list.add(new ItemStack(item, 1, 49));
	list.add(new ItemStack(item, 1, 57));
	list.add(new ItemStack(item, 1, 65));
	list.add(new ItemStack(item, 1, 73));
	list.add(new ItemStack(item, 1, 81));
	list.add(new ItemStack(item, 1, 89));
	list.add(new ItemStack(item, 1, 97));
	list.add(new ItemStack(item, 1, 105));
	list.add(new ItemStack(item, 1, 113));
    }
}

 

TileEntityBOA_Yellow_0.java

package net.theTrollguy.trafficStuffMod;

import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;

public class TileEntityBOA_Yellow_0 extends TileEntity
{
public int subtype;

public TileEntityBOA_Yellow_0() {}

public int getSubtype(int X, int Y, int Z)
{
	X = this.xCoord;
	Y = this.yCoord;
	Z = this.zCoord;
	return subtype;
}

public void setSubtype(int subTypes)
{
	this.subtype = subTypes;
	NBTTagCompound NBT = new NBTTagCompound();
	super.writeToNBT(NBT);	
	Packet packet = this.getDescriptionPacket();
}

public void removeSubtype()
{
	this.setSubtype(0);
}

@Override
public void onChunkUnload()
{
	NBTTagCompound NBT = new NBTTagCompound();
	super.writeToNBT(NBT);
}

@Override
public void readFromNBT(NBTTagCompound NBT)
{
	super.readFromNBT(NBT);
	this.subtype = NBT.getInteger("subtype");
	getDescriptionPacket();
}

@Override
public void writeToNBT(NBTTagCompound NBT)
{
	super.writeToNBT(NBT);
	NBT.setInteger("subtype", subtype);

}

public Packet getDescriptionPacket()
    {
        NBTTagCompound NBTTagCompound = new NBTTagCompound();
        this.writeToNBT(NBTTagCompound);
        return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 4, NBTTagCompound);
    }

@Override
public void onDataPacket(NetworkManager networkManager, S35PacketUpdateTileEntity packet)
    {
	NBTTagCompound NBTTagCompound = new NBTTagCompound();
	this.readFromNBT(NBTTagCompound);
    }
}

 

RendererBOA_Yellow_0

package net.theTrollguy.trafficStuffMod;

import org.lwjgl.opengl.GL11;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
import cpw.mods.fml.client.registry.RenderingRegistry;

public class RendererBOA_Yellow_0 implements ISimpleBlockRenderingHandler
{
IBlockAccess iBlockAccess;
public static int renderID;

public RendererBOA_Yellow_0()
{
	renderID = TrafficStuffClientProxy.BOA_Yellow_0_ID;
}

@Override
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderBlocks)
{
	/**
	Tessellator tessellator = Tessellator.instance;
	GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
	tessellator.startDrawingQuads();
	tessellator.draw();
	GL11.glTranslatef(0.5F, 0.5F, 0.5F);
	**/
}

@Override
public boolean renderWorldBlock(IBlockAccess IBlockAccess, int X, int Y, int Z, Block block, int modelID, RenderBlocks renderBlocks)
{
	Tessellator tessellator = Tessellator.instance;
	TileEntityBOA_Yellow_0 TE_BOA_Yellow_0 = (TileEntityBOA_Yellow_0) TrafficStuffMod.BOA_Yellow_0;
	BlocksOfAsphalt_Yellow_0 BOA_Yellow_0 = TrafficStuffMod.blocksOfAsphalt_Yellow_0;
	int subtype = TE_BOA_Yellow_0.getSubtype(X, Y, Z);
	//int age = BOA_Yellow_0.getAge();
	double D = 0.000000000000001D;
    int l = BOA_Yellow_0.getMixedBrightnessForBlock(IBlockAccess, X, Y, Z);
    
    boolean flag = renderBlocks.renderStandardBlock(BOA_Yellow_0, X, Y, Z);
    renderBlocks.setRenderBounds(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D);
	tessellator.setBrightness(l);

	switch (subtype)
	{
		// ARROW TO STRAIGHT
		case 1: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_s); break;
		case 2: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_d); break;
		case 3: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_s); break;
		case 4: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_d); break;
		case 5: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_s); break;
		case 6: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_d); break;
		case 7: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_s); break;
		case 8: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_d); break;
		// ARROW TO LEFT AND A PART TO STRAIGHT
		case 9: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_s); break;
		case 10: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_d); break;
		case 11: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_s); break;
		case 12: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_d); break;
		case 13: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_s); break;
		case 14: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_d); break;
		case 15: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_s); break;
		case 16: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_2_d); break;
		// ARROW TO LEFT
		case 17: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_s); break;
		case 18: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_d); break;
		case 19: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_s); break;
		case 20: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_d); break;
		case 21: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_s); break;
		case 22: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_d); break;
		case 23: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_s); break;
		case 24: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_3_d); break;
		// ARROW TO RIGHT AND A PART TO STRAIGHT
		case 25: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_s); break;
		case 26: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_d); break;
		case 27: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_s); break;
		case 28: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_d); break;
		case 29: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_s); break;
		case 30: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_d); break;
		case 31: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_s); break;
		case 32: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_4_d); break;
		// ARROW TO RIGHT
		case 33: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_5_s); break;
		case 34: renderBlocks.uvRotateTop = 0; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_5_d); break;
		case 35: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_5_s); break;
		case 36: renderBlocks.uvRotateTop = 1; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_5_d); break;
		case 37: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_5_s); break;
		case 38: renderBlocks.uvRotateTop = 3; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_5_d); break;
		case 39: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_5_s); break;
		case 40: renderBlocks.uvRotateTop = 2; renderBlocks.renderFaceYPos(BOA_Yellow_0, X, Y, Z, BOA_Yellow_0.AY_1_d); break;
	}


    renderBlocks.uvRotateSouth = 0;
    renderBlocks.uvRotateEast = 0;
    renderBlocks.uvRotateWest = 0;
    renderBlocks.uvRotateNorth = 0;
    renderBlocks.uvRotateTop = 0;
    renderBlocks.uvRotateBottom = 0;
    return flag;
}

@Override
public int getRenderId()
{
	return TrafficStuffClientProxy.BOA_Yellow_0_ID;
}

@Override
public boolean shouldRender3DInInventory(int arg0)
{
	return false;
}

}

Link to comment
Share on other sites

Yeah.. I know... But I was getting pissed of because that was the fifth time I was writing something the size of your post there >.> only to have the internet drop out as I hit post.. The joys of losing your post >.> thanks for saying what I wanted to though :)

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Link to comment
Share on other sites

well if you lived here where I live it would be a pain in ass to learn Java because there's no such thing that you can do if you don't live in the capital city of my country.

anyway, I'm still learning. Nobody know something that well at the begining and everyone needs help with everything in life

 

and as I said, the code is still, like, far away from the final version

Link to comment
Share on other sites

It's ok. We are just trying to help by telling you to learn Java. When you have reached a basic understanding, you will be finding it easier. When you reach a simple understanding, you will be finding it even easier. That is why we say go learn Java. It helps a lot.

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Link to comment
Share on other sites

Well Croatia (the country I live in) has the most fucked up, it had and it will, government! They stole all the money they had. The result: not being able to learn something that every kid in the world is able, such as programming. Many people lost their homes, don't have money to even buy bread. Well at least those are only 10% of Croatia's population. Our schools are old and the furniture is from 80s or even 70s when Tito lived. Our government is full of liars who want to destroy Croatia. The are just like Serbia back in early 90s when they attacked us. Even then people had homes and money. The wage was really high, when comparing today's average wage.

 

CROATIA SUCKS!!!! That's why young people leave this country with one of the most beautiful places on the world. Isn't that just a shame?

 

EDIT: If someone has an iPhone, iMac, XBOX, PS3 or PS4, that person is rich as fuck. While in America it's something almost everybody has.

Link to comment
Share on other sites

Wow. And I thought I was poor. But that's beside the point. I now sorta get what you mean. But I must point out, why are you here using internet quota on forum posting when you could be using that quota searching for and reading tutorials?

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Link to comment
Share on other sites

OK, OK the main problem was that my block class wasn't expanding BlockContainer, as it should, but the tile entity problem is still there! All the code is run, but somehow the subtype doesn't save. Since I'm still a Java noob, network, packets and all that stuff is still pain to me. Any help?

 

P.S. I did search through all TileEntity classes, but the code is similar to theirs but mine doesn't work.

Link to comment
Share on other sites

I'm too lazy to go to Github so here you go here:

 

ItemBlocksOfAsphalt_Yellow_0.java

package net.theTrollguy.trafficStuffMod;

import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class ItemBlocksOfAsphalt_Yellow_0 extends ItemBlock
{
private int[] rotation_0 = {1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 113};
private int[] rotation_1 = {2, 10, 18, 26, 34, 42, 50, 58, 66, 74, 82, 90, 98, 106, 114};
private int[] rotation_2 = {3, 11, 19, 27, 35, 43, 51, 59, 67, 75, 83, 91, 99, 107, 115};
private int[] rotation_3 = {4, 12, 20, 28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116};
private int[] rotation_4 = {5, 13, 21, 29, 37, 45, 53, 61, 69, 77, 85, 93, 101, 109, 117};
private int[] rotation_5 = {6, 14, 22, 30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 110, 118};
private int[] rotation_6 = {7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119};
private int[] rotation_7 = {8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120};

public ItemBlocksOfAsphalt_Yellow_0(Block block)
{
	super(TrafficStuffMod.blocksOfAsphalt_Yellow_0);
	this.setHasSubtypes(true);
}

@Override
public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean something)
    {
    	int subtype = itemStack.getItemDamage();
    	if (subtype == 1)   { list.add("§e§lArrow to Straight ");          										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 9)   { list.add("§e§lArrow to Left"); 	           list.add("§e§land a Part to Straight"); list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 17)  { list.add("§e§lArrow to Left"); 	  	       										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 25)  { list.add("§e§lArrow to Right"); 	           list.add("§e§land a Part to Straight"); list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 33)  { list.add("§e§lArrow to Right");              										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 41)  { list.add("§e§lArrow to Left, Right");        list.add("§e§land a Part to Straight"); list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 49)  { list.add("§e§lArrow to Left and Right");     										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 57)  { list.add("§e§lArrow to Straight");                                                   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 65)  { list.add("§e§lArrow to Straight and Left");  										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 73)  { list.add("§e§lArrow to Left"); 			   										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 81)  { list.add("§e§lArrow to Straight and Right"); 										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 89)  { list.add("§e§lArrow to Right"); 			   										   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 97)  { list.add("§e§lArrow to Straight, Left");     list.add("§e§land Right"); 			   list.add("§fADDED IN: 1.1.0"); }
    	if (subtype == 105) { list.add("§e§lArrow to Left and Right"); 	   										   list.add("§fADDED IN: 1.3.0"); }
    	if (subtype == 113) { list.add("§e§lArrow to Straight"); 		   										   list.add("§fADDED IN: 1.0.0"); }
    }

@Override
public boolean onItemUse(ItemStack itemStack, EntityPlayer entityPlayer, World world, int X, int Y, int Z, int side, float hitX, float hitY, float hitZ)
{
	/**
	 * Determines all main direction(2 = NORTH, 3 = EAST, 0 = SOUTH, 1 = WEST).
	 **/
	int direction_90 = MathHelper.floor_double((double)(entityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
	/**
	 * Determines all main and sub directions(4 = NORTH, 5 = NORTH-EAST, 6 = EAST, 7 = SOUTH-EAST, 0 = SOUTH, 1 = SOUTH-WEST
	 * 2 = WEST, 3 = NORTH-WEST).
	 **/
	int direction_45 = MathHelper.floor_double((double)(entityPlayer.rotationYaw * 8.0F / 360.0F) + 0.5D) & 7;

	Block block = world.getBlock(X, Y, Z);

	if (block == Blocks.snow_layer && (world.getBlockMetadata(X, Y, Z) & 7) < 1)
        {
            side = 1;
        }

        if (block != Blocks.vine && block != Blocks.tallgrass && block != Blocks.deadbush && !block.isReplaceable(world, X, Y, Z))
        {
            if (side == 0)
            {
                --Y;
            }

            if (side == 1)
            {
                ++Y;
            }

            if (side == 2)
            {
                --Z;
            }

            if (side == 3)
            {
                ++Z;
            }

            if (side == 4)
            {
                --X;
            }

            if (side == 5)
            {
                ++X;
            }
        
            else if(itemStack.stackSize == 0)
		{
			return false;
		}
            else if (!entityPlayer.canPlayerEdit(X, Y, Z, side, itemStack))
		{
			return false;
		}
            else if (Y == 255 && this.field_150939_a.getMaterial().isSolid())
		{
			return false;
		}
            else 
            {
            	System.out.println("I'm runing!");
            int metadata = this.getMetadata(itemStack.getItemDamage());
            int j1 = this.field_150939_a.onBlockPlaced(world, X, Y, Z, side, hitX, hitY, hitZ, metadata);
            
            world.setBlock(X, Y, Z, TrafficStuffMod.blocksOfAsphalt_Yellow_0);
            	TileEntity tileEntity = world.getTileEntity(X, Y, Z);
            	world.setTileEntity(X, Y, Z, new TileEntityBOA_Yellow_0());
    			int subtype = itemStack.getItemDamage();
    			
    			if (tileEntity != null && tileEntity instanceof TileEntityBOA_Yellow_0)
    			{
    				System.out.println("Am I runing?");
    				((TileEntityBOA_Yellow_0)tileEntity).setSubtype(subtype);
    			}
    			
    			world.playSoundEffect((double)((float)X + 0.5F), (double)((float)Y + 0.5F), (double)((float)Z + 0.5F), this.field_150939_a.stepSound.func_150496_b(), (this.field_150939_a.stepSound.getVolume() + 1.0F) / 2.0F, this.field_150939_a.stepSound.getPitch() * 0.8F);
                --itemStack.stackSize;
            }
    				/**
    				if (direction_45 == 0)
    				{
    					System.out.println("HELP ME HELP!");
    					for (int i = 1; i < rotation_0.length; i++)
    					{
    						if (subtype == rotation_0[i])
    						{
    							((TileEntityBOA_Yellow_0)tileEntity).setSubtype(rotation_0[i]);
    							
    						}
    					}
    				}
    				if (direction_45 == 1)
    				{
    					for (int i = 1; i < rotation_0.length; i++)
    					{
    						if (subtype == rotation_0[i])
    						{
    							((TileEntityBOA_Yellow_0)tileEntity).setSubtype(rotation_1[i]);
    							
    						}
    					}
    				}
    				
    				/**
    				switch (subtype)
    				{
    					// ARROW TO STRAIGHT
    					case 1: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(5); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(6); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(7); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(; break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(1); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(2); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(3); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(4); break;
    					} break;
    					// ARROW TO LEFT AND A PART TO STRAIGHT
    					case 9: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(13); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(14); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(15); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(16); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(9); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(10); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(11); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(12); break;
    					} break;
    					// ARROW TO LEFT
    					case 17: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(21); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(22); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(23); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(24); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(17); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(18); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(19); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(20); break;
    					} break;
    					// ARROW TO RIGHT AND A PART TO STRAIGHT
    					case 25: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(29); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(30); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(31); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(32); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(25); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(26); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(27); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(28); break;
    					} break;
    					// ARROW TO RIGHT
    					case 33: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(37); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(38); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(39); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(40); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(33); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(34); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(35); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(36); break;
    					} break;
    					// ARROW TO LEFT, RIGHT AND A PART TO STRAIGHT
    					case 41: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(45); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(46); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(47); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(48); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(41); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(42); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(43); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(44); break;
    					} break;
    					// ARROW TO LEFT AND RIGHT
    					case 49: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(53); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(54); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(55); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(56); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(49); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(50); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(51); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(52); break;
    					} break;
    					// ARROW TO STRAIGHT
    					case 57: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(61); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(62); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(63); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(64); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(57); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(58); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(59); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(60); break;
    					} break;
    					// ARROW TO STRAIGHT AND LEFT
    					case 65: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(69); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(70); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(71); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(72); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(65); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(66); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(67); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(68); break;
    					} break;
    					// ARROW TO STRAIGHT AND LEFT
    					case 73: switch (direction_45)
    					{
	    					case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(77); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(78); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(79); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(80); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(73); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(74); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(75); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(76); break;
    					}
    					// ARROW TO LEFT
    					case 81: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(85); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(86); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(87); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(88); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(81); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(82); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(83); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(84); break;
    		        	}
    					// ARROW TO STRAIGHT AND RIGHT
    					case 89: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(93); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(94); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(95); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(96); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(89); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(90); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(91); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(92); break;
    		        	}
    					// ARROW TO RIGHT
    					case 97: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(101); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(102); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(103); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(104); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(97); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(98); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(99); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(100); break;
    		        	} break;
    					// ARROW TO STRAIGHT, LEFT AND RIGHT
    					case 105: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(109); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(110); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(111); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(112); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(105); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(106); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(107); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(108); break;
    		        	} break;
    					// ARROW TO STRAIGHT, LEFT AND RIGHT
    					case 113: switch (direction_45)
    		        	{
    		    			case 0:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(117); break;
    		    			case 1:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(118); break;
    		    			case 2:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(119); break;
    		    			case 3:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(120); break;
    		        		case 4:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(113); break;
    		        		case 5:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(114); break;
    		        		case 6:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(115); break;
    		        		case 7:((TileEntityBOA_Yellow_0)tileEntity).setSubtype(116); break;
    		        	} break;    
    				}
    		
    				**/
        }
	return true;
}

public String getUnlocalizedName(ItemStack itemStack)
{
	return "blocksOfAsphalt_Yellow_0";
}
}

 

BOA = Blocks Of Aspahlt

 

TileEntityBOA_Yellow_0.java

package net.theTrollguy.trafficStuffMod;

import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;

public class TileEntityBOA_Yellow_0 extends TileEntity
{
public int subtype;

public TileEntityBOA_Yellow_0() {}

public int getSubtype()
{	
	NBTTagCompound nbtTagCompound = new NBTTagCompound();
	this.readFromNBT(nbtTagCompound);
	return subtype;
}

public void setSubtype(int subTypes)
{
	this.subtype = subTypes;
	NBTTagCompound nbtTagCompound = new NBTTagCompound();
	this.writeToNBT(nbtTagCompound);

	System.out.println("Subtype set to: " + this.subtype);
}

public void removeSubtype()
{
	this.setSubtype(0);
}
}

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Trying to play with the mods: Tinkers Construct, Buildcraft and the Blood Magic addon Blood Arsenal; the game crashes. I noticed that when trying to use only two of the three in any combination the game opens without problems, but when trying to put all three together the error occurs. Is there any configuration I can modify or any other way to solve the problem?   ---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic. Time: 5/22/24 8:48 PM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoWeapon     at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)     at cpw.mods.fml.common.Loader.loadMods(Loader.java:544)     at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)     at net.minecraft.client.main.Main.main(SourceFile:148)     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) Caused by: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoWeapon     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Unknown Source)     at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:42)     at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512)     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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)     at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)     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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)     at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)     ... 10 more Caused by: java.lang.ClassNotFoundException: tconstruct.library.weaponry.AmmoWeapon     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 36 more Caused by: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoItem     at java.lang.ClassLoader.defineClass1(Native Method)     at java.lang.ClassLoader.defineClass(Unknown Source)     at java.security.SecureClassLoader.defineClass(Unknown Source)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)     ... 38 more Caused by: java.lang.ClassNotFoundException: tconstruct.library.weaponry.AmmoItem     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101)     at java.lang.ClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 42 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.7.10     Operating System: Windows 10 (x86) version 10.0     Java Version: 1.8.0_411, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation     Memory: 271923192 bytes (259 MB) / 402653184 bytes (384 MB) up to 536870912 bytes (512 MB)     JVM Flags: 9 total; -Xmx512M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:+IgnoreUnrecognizedVMOptions -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump     AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 14 mods loaded, 14 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     UC    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)      UC    FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1614-1.7.10.jar)      UC    Forge{10.13.4.1614} [Minecraft Forge] (forge-1.7.10-10.13.4.1614-1.7.10.jar)      UC    AWWayofTime{v1.3.3} [Blood Magic: Alchemical Wizardry] (BloodMagic-1.7.10-1.3.3-17.jar)      UC    Mantle{1.7.10-0.3.2.jenkins191} [Mantle] (Mantle-1.7.10-0.3.2b.jar)      UE    TConstruct{1.7.10-1.8.8.build991} [Tinkers' Construct] (TConstruct-1.7.10-1.8.8.build991.jar)      UC    BloodArsenal{1.2-5} [Blood Arsenal] (BloodArsenal-1.7.10-1.2-5.jar)      UC    BuildCraft|Core{7.1.25} [BuildCraft] (buildcraft-7.1.25.jar)      UC    BuildCraft|Builders{7.1.25} [BC Builders] (buildcraft-7.1.25.jar)      UC    BuildCraft|Robotics{7.1.25} [BC Robotics] (buildcraft-7.1.25.jar)      UC    BuildCraft|Silicon{7.1.25} [BC Silicon] (buildcraft-7.1.25.jar)      UC    BuildCraft|Energy{7.1.25} [BC Energy] (buildcraft-7.1.25.jar)      UC    BuildCraft|Transport{7.1.25} [BC Transport] (buildcraft-7.1.25.jar)      UC    BuildCraft|Factory{7.1.25} [BC Factory] (buildcraft-7.1.25.jar)      GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4541' Renderer: 'Intel(R) HD Graphics 610'     Mantle Environment: Environment healthy.     TConstruct Environment: Environment healthy.
    • fixed this problem but now i have a new one  java.lang.RuntimeException: java.lang.NoSuchFieldException: processor  Help 
    • ---- Minecraft Crash Report ---- WARNING: coremods are present:   IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)   FTBUltimineASM (ftb-ultimine-1202.3.5.jar)   ForgelinPlugin (Forgelin-1.8.4.jar)   MovingWorldCore (movingworld-1.12-6.353-full.jar)   MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)   OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)   AppleCore (AppleCore-mc1.12.2-3.4.0.jar)   Ar_CorePlugin (additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar)   CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)   EnderCorePlugin (EnderCore-1.12.2-0.5.78-core.jar)   TransformerLoader (OpenComputers-MC1.12.2-1.8.5+179e1c3.jar)   Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)   SecretRoomsMod-Core (secretroomsmod-1.12.2-5.6.4.jar)   LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)   MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar) Contact their authors BEFORE contacting forge // Daisy, daisy... Time: 5/22/24 9:18 PM Description: Initializing game java.lang.RuntimeException: Invalid id 4096 - maximum id range exceeded.     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:295)     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:281)     at net.minecraftforge.registries.ForgeRegistry.register(ForgeRegistry.java:113)     at com.blakebr0.cucumber.registry.ModRegistry.registerBlocks(ModRegistry.java:230)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_209_ModRegistry_registerBlocks_Register.invoke(.dynamic)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)     at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)     at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:845)     at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:630)     at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)     at net.minecraft.client.main.Main.main(SourceFile:123)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace:     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:295)     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:281)     at net.minecraftforge.registries.ForgeRegistry.register(ForgeRegistry.java:113)     at com.blakebr0.cucumber.registry.ModRegistry.registerBlocks(ModRegistry.java:230)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_209_ModRegistry_registerBlocks_Register.invoke(.dynamic)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)     at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)     at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:845)     at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:630)     at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467) -- Initialization -- Details: Stacktrace:     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)     at net.minecraft.client.main.Main.main(SourceFile:123)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 912918880 bytes (870 MB) / 4423417856 bytes (4218 MB) up to 6084886528 bytes (5803 MB)     JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6528m -Xms256m     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2859 129 mods loaded, 129 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State | ID                                           | Version                  | Source                                                | Signature                                |     |:----- |:-------------------------------------------- |:------------------------ |:----------------------------------------------------- |:---------------------------------------- |     | LCH   | minecraft                                    | 1.12.2                   | minecraft.jar                                         | None                                     |     | LCH   | mcp                                          | 9.42                     | minecraft.jar                                         | None                                     |     | LCH   | FML                                          | 8.0.99.99                | forge-1.12.2-14.23.5.2859.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCH   | forge                                        | 14.23.5.2859             | forge-1.12.2-14.23.5.2859.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCH   | additionalresources                          | 0.1.1                    | additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar | None                                     |     | LCH   | com.elytradev.movingworld.common.asm.coremod |                          | minecraft.jar                                         | None                                     |     | LCH   | openmodscore                                 | 0.12.2                   | minecraft.jar                                         | None                                     |     | LCH   | opencomputers|core                           | 1.8.5                    | minecraft.jar                                         | None                                     |     | LCH   | srm-hooks                                    | 1.12.2-1.0.0             | minecraft.jar                                         | None                                     |     | LCH   | achievementbooks                             | V1.0b-MC1.12.2           | achievementbooks-V1.0b-MC1.12.2.jar                   | None                                     |     | LCH   | infinitylib                                  | 1.12.2-1.12.1            | infinitylib-1.12.1.jar                                | None                                     |     | LCH   | agricraft                                    | 2.12.0-1.12.2-b2         | agricraft-2.12.0-1.12.2-b2.jar                        | None                                     |     | LCH   | aoa3                                         | 3.3.6                    | AoA3-3.3.6.jar                                        | 8bddeac148843f40e0b9f69201be2f4b3071700d |     | LCH   | applecore                                    | 3.4.0                    | AppleCore-mc1.12.2-3.4.0.jar                          | None                                     |     | LCH   | jei                                          | 4.16.1.301               | jei_1.12.2-4.16.1.301.jar                             | None                                     |     | LCH   | appleskin                                    | 1.0.14                   | AppleSkin-mc1.12-1.0.14.jar                           | None                                     |     | LCH   | ctm                                          | MC1.12.2-1.0.2.31        | CTM-MC1.12.2-1.0.2.31.jar                             | None                                     |     | LCH   | appliedenergistics2                          | rv6-stable-7             | appliedenergistics2-rv6-stable-7.jar                  | dfa4d3ac143316c6f32aa1a1beda1e34d42132e5 |     | LCH   | audiodeath                                   | 0.7.0_1.9-87aeca7        | audiodeath-1.9-0.7.0.50+87aeca7.jar                   | None                                     |     | LCH   | codechickenlib                               | 3.2.3.358                | CodeChickenLib-1.12.2-3.2.3.358-universal.jar         | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCH   | avaritia                                     | 3.3.0                    | Avaritia-1.12.2-3.3.0.37-universal.jar                | None                                     |     | LCH   | bno                                          | 1.12.2-1.0.4.0           | BasicNetherOres-1.12.2-1.0.5.0.jar                    | None                                     |     | LCH   | baubles                                      | 1.5.2                    | Baubles-1.12-1.5.2.jar                                | None                                     |     | LCH   | bdlib                                        | 1.14.4.1                 | bdlib-1.14.4.1-mc1.12.2.jar                           | None                                     |     | LCH   | betteradvancements                           | 0.1.0.77                 | BetterAdvancements-1.12.2-0.1.0.77.jar                | None                                     |     | LCH   | bibliocraft                                  | 2.4.6                    | BiblioCraft[v2.4.6][MC1.12.2].jar                     | None                                     |     | LCH   | bluepower                                    | 0.3.152                  | BluePower-1.12.2-0.3.152-universal.jar                | None                                     |     | LCH   | thaumcraft                                   | 6.1.BETA26               | Thaumcraft-1.12.2-6.1.BETA26.jar                      | None                                     |     | LCH   | botania                                      | r1.10-364                | Botania r1.10-364.4.jar                               | None                                     |     | LCH   | redstoneflux                                 | 2.1.1                    | RedstoneFlux-1.12-2.1.1.1-universal.jar               | None                                     |     | LCH   | brandonscore                                 | 2.4.20                   | BrandonsCore-1.12.2-2.4.20.162-universal.jar          | None                                     |     | LCH   | chameleon                                    | 1.12-4.1.3               | Chameleon-1.12-4.1.3.jar                              | None                                     |     | LCH   | chancecubes                                  | 1.12.2-5.0.2.385         | ChanceCubes-1.12.2-5.0.2.385.jar                      | None                                     |     | LCH   | chickenchunks                                | 2.4.2.74                 | ChickenChunks-1.12.2-2.4.2.74-universal.jar           | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCH   | chisel                                       | MC1.12.2-1.0.2.45        | Chisel-MC1.12.2-1.0.2.45.jar                          | None                                     |     | LCH   | cofhcore                                     | 4.6.6                    | CoFHCore-1.12.2-4.6.6.1-universal.jar                 | None                                     |     | LCH   | cofhworld                                    | 1.4.0                    | CoFHWorld-1.12.2-1.4.0.1-universal.jar                | None                                     |     | LCH   | collective                                   | 3.0                      | collective-1.12.2-3.0.jar                             | None                                     |     | LCH   | cookingforblockheads                         | 6.5.0                    | CookingForBlockheads_1.12.2-6.5.0.jar                 | None                                     |     | LCH   | cucumber                                     | 1.1.3                    | Cucumber-1.12.2-1.1.3.jar                             | None                                     |     | LCH   | custommainmenu                               | 2.0.9.1                  | CustomMainMenu-MC1.12.2-2.0.9.1.jar                   | None                                     |     | LCH   | customnpcs                                   | 1.12                     | CustomNPCs_1.12.2-(05Jul20).jar                       | None                                     |     | LCH   | cyclopscore                                  | 1.6.7                    | CyclopsCore-1.12.2-1.6.7.jar                          | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |     | LCH   | movingworld                                  | 1.12-6.353               | movingworld-1.12-6.353-full.jar                       | None                                     |     | LCH   | davincisvessels                              | @DVESSELSVER@            | davincisvessels-1.12-6.340-full.jar                   | None                                     |     | LCH   | ptrmodellib                                  | 1.0.5                    | PTRLib-1.0.5.jar                                      | None                                     |     | LCH   | props                                        | 2.6.3.7                  | Decocraft-2.6.3.7_1.12.2.jar                          | None                                     |     | LCH   | thermalfoundation                            | 2.6.7                    | ThermalFoundation-1.12.2-2.6.7.1-universal.jar        | None                                     |     | LCH   | draconicevolution                            | 2.3.28                   | Draconic-Evolution-1.12.2-2.3.28.354-universal.jar    | None                                     |     | LCH   | lootablebodies                               | 2.4.0                    | DrCyanosLootableBodies_1.12-2.4.0.jar                 | None                                     |     | LCH   | elevatorid                                   | 1.3.14                   | ElevatorMod-1.12.2-1.3.14.jar                         | None                                     |     | LCH   | endercore                                    | 1.12.2-0.5.78            | EnderCore-1.12.2-0.5.78.jar                           | None                                     |     | LCH   | thermalexpansion                             | 5.5.7                    | ThermalExpansion-1.12.2-5.5.7.1-universal.jar         | None                                     |     | LCH   | enderio                                      | 5.3.72                   | EnderIO-base-1.12.2-5.3.72.jar                        | None                                     |     | LCH   | enderiointegrationtic                        | 5.3.72                   | EnderIO-integration-tic-1.12.2-5.3.72.jar             | None                                     |     | LCH   | enderiobase                                  | 5.3.72                   | EnderIO-base-1.12.2-5.3.72.jar                        | None                                     |     | LCH   | mantle                                       | 1.12-1.3.3.55            | Mantle-1.12-1.3.3.55.jar                              | None                                     |     | LCH   | twilightforest                               | 3.11.1021                | twilightforest-1.12.2-3.11.1021-universal.jar         | None                                     |     | LCH   | tconstruct                                   | 1.12.2-2.13.0.183        | TConstruct-1.12.2-2.13.0.183.jar                      | None                                     |     | LCH   | enderiointegrationticlate                    | 5.3.72                   | EnderIO-integration-tic-1.12.2-5.3.72.jar             | None                                     |     | LCH   | enderstorage                                 | 2.4.6.137                | EnderStorage-1.12.2-2.4.6.137-universal.jar           | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCH   | evilcraft                                    | 0.10.78                  | EvilCraft-1.12.2-0.10.78.jar                          | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |     | LCH   | natura                                       | 1.12.2-4.3.2.69          | natura-1.12.2-4.3.2.69.jar                            | None                                     |     | LCH   | forestry                                     | 5.8.2.387                | forestry_1.12.2-5.8.2.387.jar                         | None                                     |     | LCH   | evilcraftcompat                              | 1.0.0                    | EvilCraft-1.12.2-0.10.78.jar                          | None                                     |     | LCH   | waila                                        | 1.8.26                   | Hwyla-1.8.26-B41_1.12.2.jar                           | None                                     |     | LCH   | extracells                                   | 2.6.7                    | ExtraCells-1.12.2-2.6.7.jar                           | None                                     |     | LCH   | extrautils2                                  | 1.0                      | extrautils2-1.12-1.9.9.jar                            | None                                     |     | LCH   | opencomputers                                | 1.8.5                    | OpenComputers-MC1.12.2-1.8.5+179e1c3.jar              | None                                     |     | LCH   | zerocore                                     | 1.12.2-0.1.2.9           | zerocore-1.12.2-0.1.2.9.jar                           | None                                     |     | LCH   | bigreactors                                  | 1.12.2-0.4.5.68          | ExtremeReactors-1.12.2-0.4.5.68.jar                   | None                                     |     | LCH   | fastleafdecay                                | v14                      | FastLeafDecay-v14.jar                                 | None                                     |     | LCH   | fluxnetworks                                 | 4.1.0                    | FluxNetworks-1.12.2-4.1.1.34.jar                      | None                                     |     | LCH   | forgelin                                     | 1.8.4                    | Forgelin-1.8.4.jar                                    | None                                     |     | LCH   | ftbultimine                                  | 1202.3.5                 | ftb-ultimine-1202.3.5.jar                             | None                                     |     | LCH   | ichunutil                                    | 7.2.2                    | iChunUtil-1.12.2-7.2.2.jar                            | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | gravitygun                                   | 7.1.0                    | GravityGun-1.12.2-7.1.0.jar                           | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | headcrumbs                                   | 2.0.4                    | Headcrumbs-1.12.2-2.0.5.17.jar                        | None                                     |     | LCH   | mekanism                                     | 1.12.2-9.8.3.390         | Mekanism-1.12.2-9.8.3.390.jar                         | None                                     |     | LCH   | teslacorelib                                 | 1.0.18                   | tesla-core-lib-1.12.2-1.0.18.jar                      | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCH   | industrialforegoing                          | 1.12.2-1.12.2            | industrialforegoing-1.12.2-1.12.13-237.jar            | None                                     |     | LCH   | inventorypets                                | 2.0.15                   | inventorypets-1.12-2.0.15.jar                         | None                                     |     | LCH   | inventorytweaks                              | 1.63+release.109.220f184 | InventoryTweaks-1.63.jar                              | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe |     | LCH   | ironchest                                    | 1.12.2-7.0.67.844        | ironchest-1.12.2-7.0.72.847.jar                       | None                                     |     | LCH   | jeibees                                      | 0.9.0.5                  | jeibees-0.9.0.5-mc1.12.2.jar                          | None                                     |     | LCH   | jeiintegration                               | 1.6.0                    | jeiintegration_1.12.2-1.6.0.jar                       | None                                     |     | LCH   | malisiscore                                  | 1.12.2-6.5.1-SNAPSHOT    | malisiscore-1.12.2-6.5.1.jar                          | None                                     |     | LCH   | malisisdoors                                 | 1.12.2-7.3.0             | malisisdoors-1.12.2-7.3.0.jar                         | None                                     |     | LCH   | mysticalagriculture                          | 1.7.5                    | MysticalAgriculture-1.12.2-1.7.5.jar                  | None                                     |     | LCH   | matc                                         | 1.0.1-hotfix             | matc-1.0.1-hotfix.jar                                 | None                                     |     | LCH   | mca                                          | 6.1.0                    | MCA-1.12.2-6.1.0-universal.jar                        | None                                     |     | LCH   | mcjtylib_ng                                  | 3.5.4                    | mcjtylib-1.12-3.5.4.jar                               | None                                     |     | LCH   | mekanismgenerators                           | 1.12.2-9.8.3.390         | MekanismGenerators-1.12.2-9.8.3.390.jar               | None                                     |     | LCH   | mekanismtools                                | 1.12.2-9.8.3.390         | MekanismTools-1.12.2-9.8.3.390.jar                    | None                                     |     | LCH   | mob_grinding_utils                           | 0.3.13                   | MobGrindingUtils-0.3.13.jar                           | None                                     |     | LCH   | numina                                       | 1.0                      | Numina-1.12.2-1.1.049.jar                             | None                                     |     | LCH   | refinedstorage                               | 1.6.16                   | refinedstorage-1.6.16.jar                             | 57893d5b90a7336e8c63fe1c1e1ce472c3d59578 |     | LCH   | powersuits                                   | 1.1.048                  | ModularPowersuits-1.12.2-1.1.048.jar                  | None                                     |     | LCH   | morph                                        | 7.2.0                    | Morph-1.12.2-7.2.1.jar                                | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | mousetweaks                                  | 2.10                     | MouseTweaks-2.10-mc1.12.2.jar                         | None                                     |     | LCH   | mysticalagradditions                         | 1.3.2                    | MysticalAgradditions-1.12.2-1.3.2.jar                 | None                                     |     | LCH   | openmods                                     | 0.12.2                   | OpenModsLib-1.12.2-0.12.2.jar                         | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |     | LCH   | openblocks                                   | 1.8.1                    | OpenBlocks-1.12.2-1.8.1.jar                           | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |     | LCH   | harvestcraft                                 | 1.12.2zb                 | Pam's HarvestCraft 1.12.2zg.jar                       | None                                     |     | LCH   | patchouli                                    | 1.0-23.6                 | Patchouli-1.0-23.6.jar                                | None                                     |     | LCH   | portalgun                                    | 7.1.0                    | PortalGun-1.12.2-7.1.0.jar                            | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | projecte                                     | 1.12.2-PE1.4.1           | ProjectE-1.12.2-PE1.4.1.jar                           | None                                     |     | LCH   | projectex                                    | 1.2.0.40                 | ProjectEX-1.2.0.40.jar                                | None                                     |     | LCH   | radixcore                                    | 1.12.x-2.2.1             | RadixCore-1.12.x-2.2.1-universal.jar                  | None                                     |     | LCH   | redstonearsenal                              | 2.6.6                    | RedstoneArsenal-1.12.2-2.6.6.1-universal.jar          | None                                     |     | LCH   | xreliquary                                   | 1.12.2-1.3.4.796         | Reliquary-1.12.2-1.3.4.796.jar                        | None                                     |     | LCH   | resourceloader                               | 1.5.3                    | ResourceLoader-MC1.12.1-1.5.3.jar                     | d72e0dd57935b3e9476212aea0c0df352dd76291 |     | LCH   | rftools                                      | 7.73                     | rftools-1.12-7.73.jar                                 | None                                     |     | LCH   | rftoolspower                                 | 1.2.0                    | rftoolspower-1.12-1.2.0.jar                           | None                                     |     | LCH   | secretroomsmod                               | 5.6.4                    | secretroomsmod-1.12.2-5.6.4.jar                       | None                                     |     | LCH   | thermaldynamics                              | 2.5.6                    | ThermalDynamics-1.12.2-2.5.6.1-universal.jar          | None                                     |     | LCH   | immersiveengineering                         | 0.12-98                  | ImmersiveEngineering-0.12-98.jar                      | None                                     |     | LCH   | simplyjetpacks                               | 1.12.2-2.2.20.0          | SimplyJetpacks2-1.12.2-2.2.20.0.jar                   | None                                     |     | LCH   | starterkit                                   | 2.4                      | starterkit_1.12.2-2.4.jar                             | None                                     |     | LCH   | storagedrawers                               | 5.5.0                    | StorageDrawers-1.12.2-5.5.0.jar                       | None                                     |     | LCH   | thaumicjei                                   | 1.6.0                    | ThaumicJEI-1.12.2-1.6.0-27.jar                        | None                                     |     | LCH   | thermalinnovation                            | 0.3.6                    | ThermalInnovation-1.12.2-0.3.6.1-universal.jar        | None                                     |     | LCH   | tcomplement                                  | 1.12.2-0.4.3             | TinkersComplement-1.12.2-0.4.3.jar                    | None                                     |     | LCH   | tinkersjei                                   | 1.2                      | tinkersjei-1.2.jar                                    | None                                     |     | LCH   | tinkertoolleveling                           | 1.12.2-1.1.0.DEV.b23e769 | TinkerToolLeveling-1.12.2-1.1.0.jar                   | None                                     |     | LCH   | vampire                                      | 0.0.2B                   | vampire-0.0.2B.jar                                    | None                                     |     | LCH   | wawla                                        | 2.6.275                  | Wawla-1.12.2-2.6.275.jar                              | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCH   | matteroverdrive                              | 0.7.0.0                  | MatterOverdrive-1.12.2-0.7.1.0-universal.jar          | None                                     |     | LCH   | teslacorelib_registries                      | 1.0.18                   | tesla-core-lib-1.12.2-1.0.18.jar                      | None                                     |     Loaded coremods (and transformers):  IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)   blusunrize.immersiveengineering.common.asm.IEClassTransformer FTBUltimineASM (ftb-ultimine-1202.3.5.jar)    ForgelinPlugin (Forgelin-1.8.4.jar)    MovingWorldCore (movingworld-1.12-6.353-full.jar)    MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)   mekanism.coremod.KeybindingMigrationHelper OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)   openmods.core.OpenModsClassTransformer AppleCore (AppleCore-mc1.12.2-3.4.0.jar)   squeek.applecore.asm.TransformerModuleHandler Ar_CorePlugin (additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar)    CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)   team.chisel.ctm.client.asm.CTMTransformer EnderCorePlugin (EnderCore-1.12.2-0.5.78-core.jar)   com.enderio.core.common.transform.EnderCoreTransformer   com.enderio.core.common.transform.SimpleMixinPatcher TransformerLoader (OpenComputers-MC1.12.2-1.8.5+179e1c3.jar)   li.cil.oc.common.asm.ClassTransformer Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)   invtweaks.forge.asm.ContainerTransformer SecretRoomsMod-Core (secretroomsmod-1.12.2-5.6.4.jar)   com.wynprice.secretroomsmod.core.SecretRoomsTransformer LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)   lumien.resourceloader.asm.ClassTransformer MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar)        GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 552.22' Renderer: 'NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2'     OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED]     AE2 Version: stable rv6-stable-7 for Forge 14.23.5.2768     Ender IO: No known problems detected.        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !!!You are looking at the diagnostics information, not at the crash.       !!!     !!!Scroll up until you see the line with '---- Minecraft Crash Report ----'!!!     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     Pulsar/tconstruct loaded Pulses:          - TinkerCommons (Enabled/Forced)         - TinkerWorld (Enabled/Not Forced)         - TinkerTools (Enabled/Not Forced)         - TinkerHarvestTools (Enabled/Forced)         - TinkerMeleeWeapons (Enabled/Forced)         - TinkerRangedWeapons (Enabled/Forced)         - TinkerModifiers (Enabled/Forced)         - TinkerSmeltery (Enabled/Not Forced)         - TinkerGadgets (Enabled/Not Forced)         - TinkerOredict (Enabled/Forced)         - TinkerIntegration (Enabled/Forced)         - TinkerFluids (Enabled/Forced)         - TinkerMaterials (Enabled/Forced)         - TinkerModelRegister (Enabled/Forced)         - chiselIntegration (Enabled/Not Forced)         - wailaIntegration (Enabled/Not Forced)     Pulsar/natura loaded Pulses:          - NaturaCommons (Enabled/Forced)         - NaturaOverworld (Enabled/Not Forced)         - NaturaNether (Enabled/Not Forced)         - NaturaDecorative (Enabled/Not Forced)         - NaturaTools (Enabled/Not Forced)         - NaturaEntities (Enabled/Not Forced)         - NaturaOredict (Enabled/Forced)         - NaturaWorld (Enabled/Not Forced)     Pulsar/tcomplement loaded Pulses:          - ModuleCommons (Enabled/Forced)         - ModuleMelter (Enabled/Not Forced)         - ModuleArmor (Enabled/Not Forced)         - ModuleSteelworks (Enabled/Not Forced)         - ChiselPlugin (Enabled/Not Forced)         - ToolLevelingPlugin (Enabled/Not Forced)         - Oredict (Enabled/Forced)     List of loaded APIs:          * AgriCraftAPI (1.0) from agricraft-2.12.0-1.12.2-b2.jar         * AppleCoreAPI (3.4.0) from AppleCore-mc1.12.2-3.4.0.jar         * appliedenergistics2|API (rv6) from appliedenergistics2-rv6-stable-7.jar         * Baubles|API (1.4.0.2) from Baubles-1.12-1.5.2.jar         * betteradvancements|API (0.1.0.77) from BetterAdvancements-1.12.2-0.1.0.77.jar         * BetterWithModsAPI (Beta 0.6) from AppleSkin-mc1.12-1.0.14.jar         * bigreactors|API (4.0.1) from ExtremeReactors-1.12.2-0.4.5.68.jar         * bluepowerAPI (1.0) from BluePower-1.12.2-0.3.152-universal.jar         * BotaniaAPI (93) from Botania r1.10-364.4.jar         * Chisel-API (0.0.1) from Chisel-MC1.12.2-1.0.2.45.jar         * ChiselAPI|Carving (0.0.1) from Chisel-MC1.12.2-1.0.2.45.jar         * cofhapi (2.5.0) from CoFHCore-1.12.2-4.6.6.1-universal.jar         * Core (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Blocks (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Constants (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Entities (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Entities|Data (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Entities|Data|Role (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Events (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Gui (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Handlers (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Handlers|Data (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * CSLib|API (1.0.1) from PTRLib-1.0.5.jar         * ctm-api (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-events (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-models (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-textures (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-utils (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * DraconicEvolution|API (1.3) from Draconic-Evolution-1.12.2-2.3.28.354-universal.jar         * enderioapi (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|addon (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|capacitor (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|conduits (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|farm (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|redstone (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|teleport (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|tools (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|upgrades (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * ForestryAPI|apiculture (5.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|arboriculture (4.3.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|book (5.8.1) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|circuits (3.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|climate (5.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|core (5.7.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|farming (5.8.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|food (1.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|fuels (3.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|genetics (5.7.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|gui (5.8.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|hives (4.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|lepidopterology (1.4.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|mail (3.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|modules (5.7.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|multiblock (3.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|recipes (5.4.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|storage (5.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|world (2.1.0) from forestry_1.12.2-5.8.2.387.jar         * iChunUtil API (1.2.0) from iChunUtil-1.12.2-7.2.2.jar         * ImmersiveEngineering|API (1.0) from ImmersiveEngineering-0.12-98.jar         * ImmersiveEngineering|ImmersiveFluxAPI (1.0) from ImmersiveEngineering-0.12-98.jar         * industrialforegoingapi (5) from industrialforegoing-1.12.2-1.12.13-237.jar         * JustEnoughItemsAPI (4.13.0) from jei_1.12.2-4.16.1.301.jar         * MatterOverdrive|API (0.4.1) from MatterOverdrive-1.12.2-0.7.1.0-universal.jar         * MekanismAPI|core (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|energy (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|gas (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|infuse (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|laser (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|transmitter (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|util (9.0.0) from Mekanism-1.12.2-9.8.3.390.jar         * MouseTweaks|API (1.0) from MouseTweaks-2.10-mc1.12.2.jar         * openblocks|api (1.2) from OpenBlocks-1.12.2-1.8.1.jar         * opencomputersapi|component (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|core (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|driver (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|driver|item (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|event (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|filesystem (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|internal (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|machine (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|manual (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|network (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|prefab (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * PatchouliAPI (6) from Patchouli-1.0-23.6.jar         * projecteapi (1.12.2-1.2.0) from ProjectE-1.12.2-PE1.4.1.jar         * redstonefluxapi (2.1.1) from RedstoneFlux-1.12-2.1.1.1-universal.jar         * StorageDrawersAPI (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|event (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|registry (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|render (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|storage (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|storage-attribute (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * Thaumcraft|API (6.0.2) from Thaumcraft-1.12.2-6.1.BETA26.jar         * WailaAPI (1.3) from Hwyla-1.8.26-B41_1.12.2.jar         * zerocore|API|multiblock (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar         * zerocore|API|multiblock|rectangular (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar         * zerocore|API|multiblock|tier (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar         * zerocore|API|multiblock|validation (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar     Patchouli open book context: n/a     Launched Version: forge-14.23.5.2859     LWJGL: 2.9.4     OpenGL: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 GL version 4.6.0 NVIDIA 552.22, NVIDIA Corporation     GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported.     Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'fml,forge'     Type: Client (map_client.txt)     Resource Packs:      Current Language: English (US)     Profiler Position: N/A (disabled)     CPU: 12x Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    • I got a 1.12.2 server up and running after fixing some issues , the thing is that even for me, the host, the server is several ticks behind, i even had to set the max-tick-time to -1 to be on the server without it crashing. I have good internet and im dedicating 6gb of ram to it, but it still uses 1200mb more or less, here is a picture: https://ibb.co/RbcwgzP chunks load just fine, its the lag thats unbearable, i cant break blocks, cant walk without teleporting back to where i was, nothing.
    • I was playing this mod pack just fine yesterday and I added a few more mods to it this morning. Ive tried it with and without these mods I added and keep getting the same error. here is the latest crash log.
  • Topics

×
×
  • Create New...

Important Information

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