Results 1 to 2 of 2
  1. #1
    mrgreenacid is offline Member
    Join Date
    May 2011
    Rep Power

    Default Cannot find symbol (compile error)

    here is the compiler log

    src\minecraft\net\minecraft\src\ cannot find symbol
    symbol : constructor Item(int,net.minecraft.src.EnumToolMod)
    location: class net.minecraft.src.Item
    public static final Item obbypick = new Item(355, EnumToolMod.OBBYCHUNK).setItem
    Name("Obsidian Pickaxe");

    This is Mod_Items

    Java Code:
    package net.minecraft.src;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Random;
    import java.awt.List;
    import java.lang.reflect.Constructor;
    import java.util.*;
    import net.minecraft.client.Minecraft;
    import net.minecraft.src.Gui;
    import org.lwjgl.opengl.GL11; 
    import java.awt.Color; 
    public class mod_Items extends BaseMod
    public static final Item obbychunk = new Item(16270).setItemName("Obsidian Chunk");
    public static final Item darkingot = new Item(16271).setItemName("Dark Ingot");
    public static final Item obbyrod = new Item(16272).setItemName("Obsidian Rod");
    public static final Item obbypick = new Item(355, EnumToolMod.OBBYCHUNK).setItemName("Obsidian Pickaxe");
    	public mod_Items ()
    		ModLoader.AddSmelting(Block.obsidian.blockID, new ItemStack(darkingot));
    		//Obsidian Chunk setup
    		ModLoader.AddName(obbychunk, "Obsdidian Chunk");
    		obbychunk.iconIndex = ModLoader.addOverride("/gui/items.png", "/MGA/Item_obsidianChunk.png");
    		ModLoader.AddRecipe(new ItemStack(mod_Items.obbychunk, 4), new Object [] {
    		"@", Character.valueOf('@'), Block.obsidian
    		//Obsidian Rod setup
    		ModLoader.AddName(obbyrod, "Obsdidian Rod");
    		obbyrod.iconIndex = ModLoader.addOverride("/gui/items.png", "/MGA/Item_rodObsidian.png");
    		ModLoader.AddRecipe(new ItemStack(mod_Items.obbyrod, 1), new Object [] {
    		"@", "@",Character.valueOf('@'), darkingot
    		//Dark Ingot setup
    		ModLoader.AddName(darkingot, "Dark Ingot");
    		darkingot.iconIndex = ModLoader.addOverride("/gui/items.png", "/MGA/Item_ingotRough.png");
    		ModLoader.AddSmelting(Block.obsidian.blockID, new ItemStack(darkingot));
                    public String Version()
                    return "Minecraft advanced ITEMS for MC 1.8 (0.1A)";

    I think you might need enum tool mod

    Java Code:
    // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
    // Jad home page:
    // Decompiler options: packimports(3) braces deadcode 
    package net.minecraft.src;
    public enum EnumToolMod
    	OBBYCHUNK("OBBYCHUNK", 5, 2, 500, 7.0F, 2);
        private EnumToolMod(String s, int i, int j, int k, float f, int l)
            harvestLevel = j;
            maxUses = k;
            efficiencyOnProperMaterial = f;
            damageVsEntity = l;
        public int getMaxUses()
            return maxUses;
        public float getEfficiencyOnProperMaterial()
            return efficiencyOnProperMaterial;
        public int getDamageVsEntity()
            return damageVsEntity;
        public int getHarvestLevel()
            return harvestLevel;
        private final int harvestLevel;
        private final int maxUses;
        private final float efficiencyOnProperMaterial;
        private final int damageVsEntity;

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

    Default Re: Cannot find symbol (compile error)

    Come on now, you can do better than this since this is a similar problem to your last. If you know how to solve the last one, you should understand how to solve this one. You shouldn't need to be spoon-fed a similar solution each time.

Similar Threads

  1. Cannot find symbol (compile error)
    By mrgreenacid in forum Java Software
    Replies: 2
    Last Post: 10-30-2011, 03:42 AM
  2. Replies: 6
    Last Post: 06-23-2011, 10:37 PM
  3. Constructor: Cannot find symbol compile error.
    By CaptainBeer in forum New To Java
    Replies: 4
    Last Post: 04-28-2011, 11:25 AM
  4. Cannot Find Symbol Error
    By javadummy1 in forum New To Java
    Replies: 6
    Last Post: 04-09-2011, 10:13 AM
  5. Replies: 9
    Last Post: 10-18-2008, 08:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts