
hihellobyeoh
Members-
Posts
19 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
hihellobyeoh's Achievements

Tree Puncher (2/8)
-1
Reputation
-
Custom Furnace not turning when placed
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
my mind is too dead to contemplate any more of this tonight, i will work on it tomorrow because all i am saying right now in my head is a clapping monkey..... -
Custom Furnace not turning when placed
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
thanks for pointing that out, i have that fixed to match BlockFurnace now, but it is still not rotating to face me when i place it into the world, here is the updated file BlastFurnace.java package com.advancedtunnelbore.block; import java.util.Random; import com.advancedtunnelbore.lib.RefStrings; import com.advancedtunnelbore.main.MainRegistry; import com.advancedtunnelbore.tile_entity.TileEntityBlastFurnace; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class BlastFurnace extends BlockContainer { @SideOnly(Side.CLIENT) private IIcon top; @SideOnly(Side.CLIENT) private IIcon front; private static boolean isBurning; private final boolean isBurning2; private final Random random = new Random(); protected BlastFurnace(boolean isActive) { super(Material.rock); isBurning2 = isActive; } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconregister){ this.blockIcon = iconregister.registerIcon(this.isBurning ? RefStrings.MODID + ":BlastFurnaceSideActive" : RefStrings.MODID + ":BlastFurnaceSideInactive" ); this.front = iconregister.registerIcon(this.isBurning ? RefStrings.MODID + ":BlastFurnaceActive" : RefStrings.MODID + ":BlastFurnaceInactive" ); this.top = iconregister.registerIcon(RefStrings.MODID + ":BlastFurnaceTop"); } public IIcon getIcon(int side, int meta){ if(side == 1){ return top; }else if(side == 5){ return front; }else if(side == 0){ return top; }else{ return this.blockIcon; } } public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { player.openGui(MainRegistry.modInstance, 0, world, x, y, z); return true; } public Item getItemDropped(int par1, Random random, int par3){ return Item.getItemFromBlock(MyBlocks.blastFurnace); } public Item getItem(World world, int par2, int par3, int par4){ return Item.getItemFromBlock(MyBlocks.blastFurnace); } @SideOnly(Side.CLIENT) public void onBlockAdded(World world, int x, int y, int z){ super.onBlockAdded(world, x, y, z); this.direction(world, x, y, z); } private void direction(World world, int x, int y, int z) { if(!world.isRemote){ Block direction = world.getBlock(x, y, z - 1); Block direction1 = world.getBlock(x, y, z + 1); Block direction2 = world.getBlock(x - 1, y, z); Block direction3 = world.getBlock(x + 1, y, z); byte byte0 = 3; if(direction.func_149730_j() && !direction1.func_149730_j()){ byte0 = 3; } if(direction1.func_149730_j() && !direction.func_149730_j()){ byte0 = 2; } if(direction2.func_149730_j() && !direction3.func_149730_j()){ byte0 = 5; } if(direction3.func_149730_j() && !direction2.func_149730_j()){ byte0 = 4; } world.setBlockMetadataWithNotify(x, y, z, byte0, 2); } } public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack itemstack){ int direction = MathHelper.floor_double((double)(entity.rotationYaw * 4.0F / 360.0F) +0.5D) & 3; if(direction == 0){ world.setBlockMetadataWithNotify(x, y, z, 2, 2); } if(direction == 1){ world.setBlockMetadataWithNotify(x, y, z, 5, 2); } if(direction == 2){ world.setBlockMetadataWithNotify(x, y, z, 3, 2); } if(direction == 3){ world.setBlockMetadataWithNotify(x, y, z, 4, 2); } if(itemstack.hasDisplayName()){ ((TileEntityBlastFurnace) world.getTileEntity(x, y, z)).furnaceName(itemstack.getDisplayName()); } } public static void updateBlockState(boolean burning, World world, int x, int y, int z){ int direction = world.getBlockMetadata(x, y, z); TileEntity tileentity = world.getTileEntity(x, y, z); isBurning = true; if(burning){ world.setBlock(x, y, z, MyBlocks.blastFurnaceActive); }else{ world.setBlock(x, y, z, MyBlocks.blastFurnace); } isBurning = false; world.setBlockMetadataWithNotify(x, y, z, direction, 2); if(tileentity != null){ tileentity.validate();world.setTileEntity(x, y, z, tileentity); } } public void breakBlock(World world, int x, int y, int z, Block block, int meta){ if(!isBurning){ TileEntityBlastFurnace tileentityblastfurnace = (TileEntityBlastFurnace) world.getTileEntity(x, y, z); if(tileentityblastfurnace != null){ for(int i = 0; i <tileentityblastfurnace.getSizeInventory(); ++i){ ItemStack itemstack = tileentityblastfurnace.getStackInSlot(i); if(itemstack != null){ float f = this.random.nextFloat() * 0.6F + 0.1F; float f1 = this.random.nextFloat() * 0.6F + 0.1F; float f2 = this.random.nextFloat() * 0.6F + 0.1F; while(itemstack.stackSize > 0){ int j = this.random.nextInt(21) + 10; if(j > itemstack.stackSize){ j = itemstack.stackSize; } itemstack.stackSize -= j; EntityItem entityitem = new EntityItem(world, (double) ((float) x + f), (double) ((float) y + f1), (double) ((float) z + f2), new ItemStack(itemstack.getItem(), j, itemstack.getItemDamage())); if(itemstack.hasTagCompound()){ entityitem.getEntityItem().setTagCompound(((NBTTagCompound) itemstack.getTagCompound().copy())); } float f3 = 0.025F; entityitem.motionX = (double) ((float) this.random.nextGaussian() * f3); entityitem.motionX = (double) ((float) this.random.nextGaussian() * f3 + 0.1F); entityitem.motionX = (double) ((float) this.random.nextGaussian() * f3); world.spawnEntityInWorld(entityitem); } } } world.func_147453_f(x, y, z, block); } } super.breakBlock(world, x, y, z, block, meta); } @SideOnly(Side.CLIENT) public void randomDisplayTick(World world, int x, int y, int z, Random random){ if(this.isBurning2){ int direction = world.getBlockMetadata(x, y, z); float xx = (float) x + 0.5F, yy = (float) y + random.nextFloat() * 6.0f / 16.0f, zz =(float) z+ 0.5F, xx2 = random.nextFloat() * 0.3F - 0.2F, zz2 = 0.5F; if (direction == 4) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } else if (direction == 5) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } else if (direction == 3) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } else if (direction == 2) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } } } @Override public TileEntity createNewTileEntity(World world, int par2) { return new TileEntityBlastFurnace(); } } -
basically when i place my furnace (called blast furnace) it doesn't turn toward me like a normal furnace would. i think it's something i messed up in the tile entity but i can't figure out what. here is the tile entity file and the Block file: BlastFurnace.java: package com.advancedtunnelbore.block; import java.util.Random; import com.advancedtunnelbore.lib.RefStrings; import com.advancedtunnelbore.main.MainRegistry; import com.advancedtunnelbore.tile_entity.TileEntityBlastFurnace; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class BlastFurnace extends BlockContainer { @SideOnly(Side.CLIENT) private IIcon top; @SideOnly(Side.CLIENT) private IIcon front; private static boolean isBurning; private final boolean isBurning2; private final Random random = new Random(); protected BlastFurnace(boolean isActive) { super(Material.rock); isBurning2 = isActive; } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconregister){ this.blockIcon = iconregister.registerIcon(this.isBurning ? RefStrings.MODID + ":BlastFurnaceSideActive" : RefStrings.MODID + ":BlastFurnaceSideInactive" ); this.front = iconregister.registerIcon(this.isBurning ? RefStrings.MODID + ":BlastFurnaceActive" : RefStrings.MODID + ":BlastFurnaceInactive" ); this.top = iconregister.registerIcon(RefStrings.MODID + ":BlastFurnaceTop"); } public IIcon getIcon(int side, int meta){ if(side == 1){ return top; }else if(side == 5){ return front; }else if(side == 0){ return top; }else{ return this.blockIcon; } } public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { player.openGui(MainRegistry.modInstance, 0, world, x, y, z); return true; } public Item getItemDropped(int par1, Random random, int par3){ return Item.getItemFromBlock(MyBlocks.blastFurnace); } public Item getItem(World world, int par2, int par3, int par4){ return Item.getItemFromBlock(MyBlocks.blastFurnace); } @SideOnly(Side.CLIENT) public void onBlockAdded(World world, int x, int y, int z){ super.onBlockAdded(world, x, y, z); this.direction(world, x, y, z); } private void direction(World world, int x, int y, int z) { if(!world.isRemote){ Block direction = world.getBlock(x, y, z - 1); Block direction1 = world.getBlock(x, y, z + 1); Block direction2 = world.getBlock(x - 1, y, z); Block direction3 = world.getBlock(x + 1, y, z); byte byte0 = 3; if(direction.func_149730_j() && direction.func_149730_j()){ byte0 = 3; } if(direction1.func_149730_j() && direction1.func_149730_j()){ byte0 = 2; } if(direction2.func_149730_j() && direction2.func_149730_j()){ byte0 = 5; } if(direction3.func_149730_j() && direction3.func_149730_j()){ byte0 = 4; } world.setBlockMetadataWithNotify(x, y, z, byte0, 2); } } public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack itemstack){ int direction = MathHelper.floor_double((double)(entity.rotationYaw * 4.0F / 360.0F) +0.5D) & 3; if(direction == 0){ world.setBlockMetadataWithNotify(x, y, z, 2, 2); } if(direction == 1){ world.setBlockMetadataWithNotify(x, y, z, 5, 2); } if(direction == 2){ world.setBlockMetadataWithNotify(x, y, z, 3, 2); } if(direction == 3){ world.setBlockMetadataWithNotify(x, y, z, 4, 2); } if(itemstack.hasDisplayName()){ ((TileEntityBlastFurnace) world.getTileEntity(x, y, z)).furnaceName(itemstack.getDisplayName()); } } public static void updateBlockState(boolean burning, World world, int x, int y, int z){ int direction = world.getBlockMetadata(x, y, z); TileEntity tileentity = world.getTileEntity(x, y, z); isBurning = true; if(burning){ world.setBlock(x, y, z, MyBlocks.blastFurnaceActive); }else{ world.setBlock(x, y, z, MyBlocks.blastFurnace); } isBurning = false; world.setBlockMetadataWithNotify(x, y, z, direction, 2); if(tileentity != null){ tileentity.validate();world.setTileEntity(x, y, z, tileentity); } } public void breakBlock(World world, int x, int y, int z, Block block, int meta){ if(!isBurning){ TileEntityBlastFurnace tileentityblastfurnace = (TileEntityBlastFurnace) world.getTileEntity(x, y, z); if(tileentityblastfurnace != null){ for(int i = 0; i <tileentityblastfurnace.getSizeInventory(); ++i){ ItemStack itemstack = tileentityblastfurnace.getStackInSlot(i); if(itemstack != null){ float f = this.random.nextFloat() * 0.6F + 0.1F; float f1 = this.random.nextFloat() * 0.6F + 0.1F; float f2 = this.random.nextFloat() * 0.6F + 0.1F; while(itemstack.stackSize > 0){ int j = this.random.nextInt(21) + 10; if(j > itemstack.stackSize){ j = itemstack.stackSize; } itemstack.stackSize -= j; EntityItem entityitem = new EntityItem(world, (double) ((float) x + f), (double) ((float) y + f1), (double) ((float) z + f2), new ItemStack(itemstack.getItem(), j, itemstack.getItemDamage())); if(itemstack.hasTagCompound()){ entityitem.getEntityItem().setTagCompound(((NBTTagCompound) itemstack.getTagCompound().copy())); } float f3 = 0.025F; entityitem.motionX = (double) ((float) this.random.nextGaussian() * f3); entityitem.motionX = (double) ((float) this.random.nextGaussian() * f3 + 0.1F); entityitem.motionX = (double) ((float) this.random.nextGaussian() * f3); world.spawnEntityInWorld(entityitem); } } } world.func_147453_f(x, y, z, block); } } super.breakBlock(world, x, y, z, block, meta); } @SideOnly(Side.CLIENT) public void randomDisplayTick(World world, int x, int y, int z, Random random){ if(this.isBurning2){ int direction = world.getBlockMetadata(x, y, z); float xx = (float) x + 0.5F, yy = (float) y + random.nextFloat() * 6.0f / 16.0f, zz =(float) z+ 0.5F, xx2 = random.nextFloat() * 0.3F - 0.2F, zz2 = 0.5F; if (direction == 4) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } else if (direction == 5) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } else if (direction == 3) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } else if (direction == 2) { world.spawnParticle("smoke", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); world.spawnParticle("flame", (double) (xx - zz2), (double) yy, (double) (zz + xx2), 0.0F, 0.0F, 0.0F); } } } @Override public TileEntity createNewTileEntity(World world, int par2) { return new TileEntityBlastFurnace(); } } TileEntityBlastFurnace.java: package com.advancedtunnelbore.tile_entity; import com.advancedtunnelbore.block.BlastFurnace; import com.advancedtunnelbore.handler.BlastFurnaceRecipes; import cpw.mods.fml.common.registry.GameRegistry; 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.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.inventory.ISidedInventory; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.tileentity.TileEntity; public class TileEntityBlastFurnace extends TileEntity implements ISidedInventory { private static final int[] slotsTop = new int[]{ 0 }; private static final int[] slotsBottom = new int[]{ 2, 1 }; private static final int[] slotsSides = new int[] { 1 }; private ItemStack[] furnaceItemStacks = new ItemStack[3]; public int furnaceBurnTime; public int currentBurnTime; public int furnaceCookTime; private String furnaceName; public void furnaceName(String string){ this.furnaceName = string; } @Override public int getSizeInventory() { return this.furnaceItemStacks.length; } @Override public ItemStack getStackInSlot(int slot) { return this.furnaceItemStacks[slot]; } @Override public ItemStack decrStackSize(int var1, int var2) { if(this.furnaceItemStacks[var1] != null){ ItemStack itemstack; if(this.furnaceItemStacks[var1].stackSize <= var2){ itemstack = this.furnaceItemStacks[var1]; this.furnaceItemStacks[var1] = null; return itemstack; }else{ itemstack = this.furnaceItemStacks[var1].splitStack(var2); if(this.furnaceItemStacks[var1].stackSize == 0){ this.furnaceItemStacks[var1] = null; } return itemstack; } }else{ return null; } } @Override public ItemStack getStackInSlotOnClosing(int slot) { if(this.furnaceItemStacks[slot] != null){ ItemStack itemstack = this.furnaceItemStacks[slot]; this.furnaceItemStacks[slot] = null; return itemstack; }else{ return null; } } @Override public void setInventorySlotContents(int slot, ItemStack itemstack) { this.furnaceItemStacks[slot] = itemstack; if(itemstack != null && itemstack.stackSize > this.getInventoryStackLimit()){ itemstack.stackSize = this.getInventoryStackLimit(); } } @Override public String getInventoryName() { return this.hasCustomInventoryName() ? this.furnaceName : "Blast Furnace"; } @Override public boolean hasCustomInventoryName() { return this.furnaceName != null && this.furnaceName.length() > 0; } @Override public int getInventoryStackLimit() { return 64; } public void readFromNBT(NBTTagCompound tagCompound){ super.readFromNBT(tagCompound); NBTTagList taglist = tagCompound.getTagList("Items", 10); this.furnaceItemStacks = new ItemStack[this.getSizeInventory()]; for(int i = 0; i < taglist.tagCount(); ++i){ NBTTagCompound tagCompound1 = taglist.getCompoundTagAt(i); byte byte0 = tagCompound1.getByte("Slot"); if(byte0 >= 0 && byte0 < this.furnaceItemStacks.length){ this.furnaceItemStacks[byte0] = ItemStack.loadItemStackFromNBT(tagCompound1); } } this.furnaceBurnTime = tagCompound.getShort("BurnTime"); this.furnaceCookTime = tagCompound.getShort("CookTime"); this.currentBurnTime = getItemBurnTime(this.furnaceItemStacks[1]); if(tagCompound.hasKey("CustomName", ){ this.furnaceName = tagCompound.getString("CustomName"); } } public void writeToNBT(NBTTagCompound tagCompound){ super.writeToNBT(tagCompound); tagCompound.setShort("BurnTime", (short) this.furnaceBurnTime); tagCompound.setShort("CookTime", (short) this.furnaceBurnTime); NBTTagList tagList = new NBTTagList(); for(int i = 0; i < this.furnaceItemStacks.length; ++i){ if(this.furnaceItemStacks[i] != null){ NBTTagCompound tagCompound1 = new NBTTagCompound(); tagCompound1.setByte("slot", (byte) i); this.furnaceItemStacks[i].writeToNBT(tagCompound1); tagList.appendTag(tagCompound1); } } tagCompound.setTag("Items", tagList); if(this.hasCustomInventoryName()){ tagCompound.setString("CustomName", this.furnaceName); } } @SideOnly(Side.CLIENT) public int getCookProgressScaled(int par1){ return furnaceCookTime * par1 /200; } @SideOnly(Side.CLIENT) public int getBurnTimeRemainingScaled(int par1){ if(this.currentBurnTime == 0){ this.currentBurnTime = 200; } return this.furnaceBurnTime * par1 / this.currentBurnTime; } public boolean isBurning(){ return this.furnaceBurnTime > 0; } public void updateEntity(){ boolean flag = this.furnaceBurnTime > 0; boolean flag1 = false; if(this.furnaceBurnTime > 0){ --this.furnaceBurnTime; } if(!this.worldObj.isRemote){ if(this.furnaceBurnTime == 0 && this.canSmelt()){ this.currentBurnTime = this.furnaceBurnTime = getItemBurnTime(this.furnaceItemStacks[1]); if(this.furnaceBurnTime > 0){ flag1 = true; if(this.furnaceItemStacks[1] != null){ --this.furnaceItemStacks[1].stackSize; if(this.furnaceItemStacks[1].stackSize == 0){ this.furnaceItemStacks[1] = furnaceItemStacks[1].getItem().getContainerItem(this.furnaceItemStacks[1]); } } } } if(this.isBurning() && this.canSmelt()){ ++this.furnaceCookTime; if(this.furnaceCookTime == 200){ this.furnaceCookTime = 0; this.smeltItem(); flag1 = true; } }else{ this.furnaceCookTime = 0; } } if(flag != this.furnaceBurnTime > 0){ flag1 = true; BlastFurnace.updateBlockState(this.furnaceBurnTime > 0, this.worldObj, this.xCoord, this.yCoord, this.zCoord); } if(flag1){ this.markDirty(); } } private boolean canSmelt(){ if(this.furnaceItemStacks[0] == null){ return false; }else{ ItemStack itemstack = BlastFurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]); if(itemstack == null) return false; if(this.furnaceItemStacks[2] == null) return true; if(!this.furnaceItemStacks[2].isItemEqual(itemstack)) return false; int result = furnaceItemStacks[2].stackSize + itemstack.stackSize; return result <= getInventoryStackLimit() && result <= this.furnaceItemStacks[2].getMaxStackSize(); } } public void smeltItem(){ if(this.canSmelt()){ ItemStack itemstack = BlastFurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]); if(this.furnaceItemStacks[2] == null){ this.furnaceItemStacks[2] = itemstack.copy(); }else if(this.furnaceItemStacks[2].getItem() == itemstack.getItem()){ this.furnaceItemStacks[2].stackSize += itemstack.stackSize; } --this.furnaceItemStacks[0].stackSize; if(this.furnaceItemStacks[0].stackSize == 0){ // If the ItemStack contains zero or more items this.furnaceItemStacks[0] = null; // Set the ItemStack to null } } } public static int getItemBurnTime(ItemStack itemstack){ if(itemstack == null){ return 0; }else{ Item item = itemstack.getItem(); if(item instanceof ItemBlock && Block.getBlockFromItem(item) != Blocks.air){ Block block = Block.getBlockFromItem(item); if(block == Blocks.coal_block){ return 16000; } //if(block.getMaterial() == Material.wood{ // return 10; //} } if(item == Items.coal) return 2000; //if(item instanceof ItemTool && ((ItemTool) item).getToolMaterialName().equals("EMERALD")) return 300; return GameRegistry.getFuelValue(itemstack); } } public static boolean isItemFuel(ItemStack itemstack){ return getItemBurnTime(itemstack) >0; } @Override public boolean isUseableByPlayer(EntityPlayer player) { return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : player.getDistanceSq((double) this.xCoord + 0.5D, (double) this.yCoord +0.5D, (double) this.zCoord + 0.5D) <= 64.0D; } @Override public void openInventory() { } @Override public void closeInventory() { } @Override public boolean isItemValidForSlot(int par1, ItemStack itemstack) { return par1 ==2 ? false :(par1 == 1 ? isItemFuel(itemstack) : true); } @Override public int[] getAccessibleSlotsFromSide(int par1) { return par1 == 0 ? slotsBottom : (par1 == 1 ? slotsTop : slotsSides); } @Override public boolean canInsertItem(int par1, ItemStack itemstack, int par3) { return this.isItemValidForSlot(par1, itemstack); } @Override public boolean canExtractItem(int par1, ItemStack itemstack, int par3) { return par3 != 0 || par1 !=1 || itemstack.getItem() == Items.bucket; } } can someone help me figure this out?
-
ok i changed it to this: f(this.furnaceItemStacks[0].stackSize == 0){ // If the ItemStack contains zero or more items this.furnaceItemStacks[0] = null; // Set the ItemStack to null } and now it is working, i checked on the guy who's tutorial i was following and his is still showing what my code was, so i didn't do it wrong, so much as he game me incorrect code
-
[SOLVED][1.7.10] crash when opening gui
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
i could of sworn i did this, thanks man it is working now -
[SOLVED][1.7.10] crash when opening gui
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
yes there is, it is under the handler folder, here is a link directly to it https://github.com/hihellobyeoh/Advanced-Tunnelboring/tree/master/src/main/java/com/advancedtunnelbore/handler -
[SOLVED][1.7.10] crash when opening gui
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
ok so it is still crashing after i did a bit of a fix, basically had my BlastFurnace.java class extending Block when it needed to Extend BlockContainer....... but it is still crashign when i right click on it, i am off to bed for the night but i am just going to leave this here so you guys can try to help me figure this out: https://github.com/hihellobyeoh/Advanced-Tunnelboring -
[SOLVED][1.7.10] crash when opening gui
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
this is it package com.derptech.gui; import org.lwjgl.opengl.GL11; import com.derptech.inventory.ContainerIronFurnace; import com.dertech.tile_entity.TileEntityIronFurnace; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.resources.I18n; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.util.ResourceLocation; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class GuiIronFurnace extends GuiContainer{ private static final ResourceLocation furnaceGuiTextures = new ResourceLocation(":textures/client/gui/furnace.png"); private TileEntityIronFurnace tileFurnace; public GuiIronFurnace(InventoryPlayer invPlayer, TileEntityIronFurnace tile) { super(new ContainerIronFurnace(invPlayer, tile)); this.tileFurnace = tile; } protected void drawGuiContainerForegroundLayer(int par1, int par2){ String string = this.tileFurnace.hasCustomInventoryName() ? this.tileFurnace.getInventoryName() : I18n.format(this.tileFurnace.getInventoryName(), new Object[0]); this.fontRendererObj.drawString(string, this.xSize / 2 - this.fontRendererObj.getStringWidth(string), 6, 4210752); this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 94, 4210752); } @Override protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(furnaceGuiTextures); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize) / 2; this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize); int i1; if (this.tileFurnace.isBurning()){ i1 = this.tileFurnace.getBurnTimeRemainingScaled(12); this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 2); } i1 = this.tileFurnace.getCookProgressScaled(24); this.drawTexturedModalRect(k + 79, l + 34, 176, 14, i1 + 1, 16); } } -
[SOLVED][1.7.10] crash when opening gui
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
ok i did that now but now i am getting this crash report ---- Minecraft Crash Report ---- // Shall we play a game? Time: 11/7/14 8:15 PM Description: Rendering screen java.lang.NullPointerException: Rendering screen at com.derptech.gui.GuiIronFurnace.drawGuiContainerBackgroundLayer(GuiIronFurnace.java:37) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1057) at net.minecraft.client.Minecraft.run(Minecraft.java:951) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.derptech.gui.GuiIronFurnace.drawGuiContainerBackgroundLayer(GuiIronFurnace.java:37) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) -- Screen render details -- Details: Screen name: com.derptech.gui.GuiIronFurnace Mouse location: Scaled: (341, 176). Absolute: (683, 353) Screen size: Scaled: (683, 353). Absolute: (1366, 706). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player728'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50]] Chunk stats: MultiplayerChunkCache: 541, 541 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-61,64,-70), Chunk: (at 3,4,10 in -4,-5; contains blocks -64,0,-80 to -49,255,-65), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 747 game time, 747 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 43 total; [EntityZombie['Zombie'/68, l='MpServer', x=-78.96, y=35.89, z=-36.69], EntityZombie['Zombie'/69, l='MpServer', x=-80.50, y=35.00, z=-37.50], EntityZombie['Zombie'/70, l='MpServer', x=-77.99, y=35.20, z=-36.70], EntitySkeleton['Skeleton'/64, l='MpServer', x=-81.63, y=36.00, z=-87.66], EntityZombie['Zombie'/65, l='MpServer', x=-83.97, y=34.00, z=-54.50], EntityWitch['Witch'/66, l='MpServer', x=-80.50, y=29.00, z=-45.50], EntityZombie['Zombie'/67, l='MpServer', x=-80.06, y=35.00, z=-34.59], EntityCreeper['Creeper'/85, l='MpServer', x=-79.50, y=29.00, z=-46.50], EntityClientPlayerMP['Player728'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50], EntityZombie['Zombie'/87, l='MpServer', x=-68.10, y=36.00, z=-38.62], EntityZombie['Zombie'/86, l='MpServer', x=-64.69, y=36.00, z=-38.41], EntityBat['Bat'/35, l='MpServer', x=-133.57, y=55.15, z=-134.37], EntityCreeper['Creeper'/32, l='MpServer', x=-138.97, y=51.00, z=-150.63], EntitySkeleton['Skeleton'/38, l='MpServer', x=-137.88, y=53.00, z=-3.50], EntityCreeper['Creeper'/98, l='MpServer', x=-66.98, y=56.00, z=-14.59], EntityZombie['Zombie'/39, l='MpServer', x=-138.50, y=51.00, z=-1.50], EntityBat['Bat'/36, l='MpServer', x=-133.26, y=18.28, z=-27.49], EntitySkeleton['Skeleton'/96, l='MpServer', x=-70.22, y=35.27, z=-40.70], EntityBat['Bat'/37, l='MpServer', x=-133.51, y=19.15, z=-29.49], EntitySkeleton['Skeleton'/97, l='MpServer', x=-51.94, y=36.00, z=-38.53], EntityCreeper['Creeper'/42, l='MpServer', x=-126.41, y=51.00, z=-138.03], EntityBat['Bat'/110, l='MpServer', x=-11.47, y=15.00, z=-28.72], EntityZombie['Zombie'/43, l='MpServer', x=-125.47, y=20.00, z=-52.97], EntityBat['Bat'/111, l='MpServer', x=-0.28, y=30.00, z=-29.25], EntityZombie['Zombie'/40, l='MpServer', x=-134.50, y=51.00, z=-0.50], EntitySkeleton['Skeleton'/108, l='MpServer', x=-31.50, y=13.00, z=-105.50], EntitySkeleton['Skeleton'/41, l='MpServer', x=-137.50, y=51.00, z=0.50], EntityItem['item.item.seeds'/109, l='MpServer', x=-8.72, y=62.13, z=-94.31], EntityBat['Bat'/46, l='MpServer', x=-116.41, y=41.39, z=-26.26], EntityZombie['Zombie'/106, l='MpServer', x=-44.50, y=24.00, z=-31.50], EntitySkeleton['Skeleton'/47, l='MpServer', x=-125.56, y=57.00, z=-9.06], EntityZombie['Zombie'/44, l='MpServer', x=-124.59, y=20.00, z=-59.13], EntityZombie['Zombie'/45, l='MpServer', x=-125.69, y=20.00, z=-56.72], EntitySkeleton['Skeleton'/105, l='MpServer', x=-38.63, y=11.67, z=-116.70], EntitySkeleton['Skeleton'/119, l='MpServer', x=15.50, y=21.00, z=-127.50], EntitySkeleton['Skeleton'/55, l='MpServer', x=-108.13, y=30.00, z=-130.31], EntitySkeleton['Skeleton'/54, l='MpServer', x=-107.30, y=29.02, z=-131.30], EntityCreeper['Creeper'/113, l='MpServer', x=-4.59, y=16.00, z=0.00], EntityBat['Bat'/112, l='MpServer', x=6.23, y=25.00, z=-25.99], EntityCreeper['Creeper'/57, l='MpServer', x=-105.50, y=46.00, z=-58.50], EntitySkeleton['Skeleton'/56, l='MpServer', x=-107.50, y=29.00, z=-126.50], EntityCreeper['Creeper'/121, l='MpServer', x=4.50, y=26.00, z=-24.50], EntityCreeper['Creeper'/120, l='MpServer', x=5.53, y=24.00, z=-26.72]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:972) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_71, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 867308360 bytes (827 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available derptech{0.0.1} [Derptech] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 9.17.10.2867, Intel GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. 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) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) the line of the file it is crashing at is this if (this.tileFurnace.isBurning()){ i1 = this.tileFurnace.getBurnTimeRemainingScaled(12); this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 2); } that is the code starting at line 37 and ending on line 40 -
[SOLVED][1.7.10] crash when opening gui
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
ugh knowing my brain i probably forgot to, let me check on it. -
[SOLVED][1.7.10]OreDict making multiple items
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
I don't know. I gave up a long time ago trying to correct it. i am new to coding and i didn't know about that, i have done it now to all my recipes, thank you you shortened the size of all of my recipes EDIT: i am not new to coding, but i am new to modding minecraft, which is what i meant. -
i just made my first tile entity, it is basically just a copy of the furnace atm, but when i right click on it in game, the game crashes and this is the report: ---- Minecraft Crash Report ---- // On the bright side, I bought you a teddy bear! Time: 11/7/14 7:45 PM Description: Unexpected error java.lang.NullPointerException: Unexpected error at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) at com.derptech.blocks.IronFurnace.onBlockActivated(IronFurnace.java:59) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2034) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1029) at net.minecraft.client.Minecraft.run(Minecraft.java:951) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) at com.derptech.blocks.IronFurnace.onBlockActivated(IronFurnace.java:59) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player613'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50]] Chunk stats: MultiplayerChunkCache: 537, 537 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-61,64,-70), Chunk: (at 3,4,10 in -4,-5; contains blocks -64,0,-80 to -49,255,-65), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 574 game time, 574 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 42 total; [EntityZombie['Zombie'/68, l='MpServer', x=-81.50, y=35.00, z=-35.50], EntityZombie['Zombie'/69, l='MpServer', x=-80.50, y=35.00, z=-37.50], EntityZombie['Zombie'/70, l='MpServer', x=-80.65, y=35.00, z=-36.10], EntitySkeleton['Skeleton'/64, l='MpServer', x=-81.32, y=35.71, z=-88.91], EntityZombie['Zombie'/65, l='MpServer', x=-83.97, y=34.00, z=-54.50], EntityWitch['Witch'/66, l='MpServer', x=-80.50, y=29.00, z=-45.50], EntityZombie['Zombie'/67, l='MpServer', x=-80.34, y=35.00, z=-35.22], EntityItem['item.item.seeds'/199, l='MpServer', x=-8.66, y=62.13, z=-94.25], EntityClientPlayerMP['Player613'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50], EntityZombie['Zombie'/87, l='MpServer', x=-64.50, y=36.00, z=-38.50], EntityCreeper['Creeper'/86, l='MpServer', x=-79.50, y=29.00, z=-46.50], EntitySkeleton['Skeleton'/95, l='MpServer', x=-63.50, y=36.00, z=-38.90], EntityBat['Bat'/34, l='MpServer', x=-133.44, y=54.21, z=-138.27], EntitySkeleton['Skeleton'/38, l='MpServer', x=-135.50, y=51.00, z=-2.50], EntityCreeper['Creeper'/98, l='MpServer', x=-63.50, y=57.00, z=-19.50], EntityZombie['Zombie'/39, l='MpServer', x=-138.50, y=51.00, z=-1.50], EntityBat['Bat'/36, l='MpServer', x=-137.71, y=18.01, z=-23.25], EntityZombie['Zombie'/96, l='MpServer', x=-65.09, y=35.00, z=-41.47], EntityBat['Bat'/37, l='MpServer', x=-136.42, y=19.50, z=-23.63], EntitySkeleton['Skeleton'/97, l='MpServer', x=-51.94, y=36.00, z=-38.53], EntitySkeleton['Skeleton'/42, l='MpServer', x=-137.50, y=51.00, z=0.50], EntityBat['Bat'/110, l='MpServer', x=-4.74, y=30.28, z=-34.67], EntityCreeper['Creeper'/43, l='MpServer', x=-126.41, y=51.00, z=-138.03], EntityBat['Bat'/111, l='MpServer', x=-7.54, y=20.00, z=-33.72], EntityZombie['Zombie'/40, l='MpServer', x=-134.50, y=51.00, z=-0.50], EntitySkeleton['Skeleton'/108, l='MpServer', x=-31.50, y=13.00, z=-105.50], EntitySkeleton['Skeleton'/41, l='MpServer', x=-125.56, y=57.00, z=-9.04], EntityZombie['Zombie'/46, l='MpServer', x=-125.69, y=20.00, z=-56.70], EntityZombie['Zombie'/106, l='MpServer', x=-44.50, y=24.00, z=-31.50], EntityBat['Bat'/47, l='MpServer', x=-117.18, y=47.25, z=-25.80], EntityZombie['Zombie'/44, l='MpServer', x=-123.50, y=20.00, z=-55.94], EntityZombie['Zombie'/45, l='MpServer', x=-124.59, y=20.00, z=-59.10], EntitySkeleton['Skeleton'/105, l='MpServer', x=-39.25, y=11.07, z=-116.30], EntityCreeper['Creeper'/119, l='MpServer', x=5.53, y=24.00, z=-26.72], EntityBat['Bat'/118, l='MpServer', x=-1.51, y=27.38, z=-20.91], EntitySkeleton['Skeleton'/117, l='MpServer', x=15.50, y=21.00, z=-127.50], EntitySkeleton['Skeleton'/55, l='MpServer', x=-107.30, y=29.29, z=-131.30], EntityCreeper['Creeper'/112, l='MpServer', x=-5.50, y=16.00, z=-1.50], EntityCreeper['Creeper'/58, l='MpServer', x=-105.50, y=46.00, z=-58.50], EntitySkeleton['Skeleton'/57, l='MpServer', x=-107.50, y=29.00, z=-126.50], EntitySkeleton['Skeleton'/56, l='MpServer', x=-108.12, y=30.00, z=-130.31], EntityCreeper['Creeper'/120, l='MpServer', x=4.50, y=26.00, z=-24.50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:980) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_71, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 899816872 bytes (858 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available derptech{0.0.1} [Derptech] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 9.17.10.2867, Intel GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. 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) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1)
-
[SOLVED][1.7.10]OreDict making multiple items
hihellobyeoh replied to hihellobyeoh's topic in Modder Support
ok i'll try it now, although i can't believe i didn't think of it, as it seems obvious, thanks man, you helped me out of a tight spot!