• 0

    posted a message on How to use a certain food item to create a different item? Also eating animation help? *BACON!*
    Quote from TheLoneB34r

    Thanks everyone, I got it to work!


    Thats good :biggrin.gif: With the food in 1.8, you only need the 1 mod_** file, you dont need a second ItemBacon or anything. I guess you already figured that out though :smile.gif:
    Posted in: Modification Development
  • 0

    posted a message on Making a new furnace type block
    Anybody know whats wrong with it?
    Posted in: Modification Development
  • 0

    posted a message on MLP Mod development
    Did you add your Plain disc to the Item.java? because your telling the game to look in Item.java for PlainDisc. If you are doing this without modding base classes and have just added the PlainDisc into the same mod_Disk(or whatever you called it) file just use

    "Character.valueOf('#'), PlainDisc" in the recipe
    Posted in: Modification Development
  • 0

    posted a message on How to use a certain food item to create a different item? Also eating animation help? *BACON!*
    "Item.porkCooked" is the name for cooked pork
    "Item.porkRaw" is the name for raw pork

    Here is the code you use in 1.8 for making food:

    package net.minecraft.src;
    
    public class mod_Bacon extends BaseMod
    {
            
            public static final Item Bacon = new ItemFood(601, 6, false).setItemName("bacon");   
     //601 is the data value and 6 is how many half food points it heals
            
            public mod_Bacon()
            {
                    Bacon.iconIndex = ModLoader.addOverride("/gui/items.png", "/bacon.png");              
                                    
                    ModLoader.AddName(Bacon, "Bacon");
    
                    
                    ModLoader.AddRecipe(new ItemStack(Bacon, 1), new Object[]
                    { "#", Character.valueOf('#'), Item.porkCooked});
    
    
      
                                                                        
              }
            
            public String Version()
            {
                    return "1.8.1";
            }
    }
    Posted in: Modification Development
  • 0

    posted a message on Decompiling Client; 100 errors?
    Have you got your whole bin folder in, not just the minecraft.jar?
    Posted in: Modification Development
  • 0

    posted a message on Making a new furnace type block
    Im making a new furnace type block but have a few errors in the ContainerMicrowave file.

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\ContainerMicrowave.java:97: error: cannot find s
    ymbol
    if(!func_28125_a(itemstack1, 3, 39, true))
    ^
    
    symbol:   method func_28125_a(ItemStack,int,int,boolean)
    location: class ContainerMicrowave
    src\minecraft\net\minecraft\src\ContainerMicrowave.java:104: error: cannot find
    symbol
    if(!func_28125_a(itemstack1, 30, 39, false))
    ^
    
    symbol:   method func_28125_a(ItemStack,int,int,boolean)
    location: class ContainerMicrowave
    src\minecraft\net\minecraft\src\ContainerMicrowave.java:111: error: cannot find
    symbol
    if(!func_28125_a(itemstack1, 3, 30, false))
    ^
    
    symbol:   method func_28125_a(ItemStack,int,int,boolean)
    location: class ContainerMicrowave
    src\minecraft\net\minecraft\src\ContainerMicrowave.java:116: error: cannot find
    symbol
    if(!func_28125_a(itemstack1, 3, 39, false))
    ^
    
    symbol:   method func_28125_a(ItemStack,int,int,boolean)
    location: class ContainerMicrowave
    src\minecraft\net\minecraft\src\TileEntityMicrowave.java:83: error: cannot find
    symbol
    microwaveItemStacks[byte0] = ItemStack.func_35864_a(nbttagcompound1);
    ^
    
    symbol:   method func_35864_a(NBTTagCompound)
    location: class ItemStack
    5 errors
    1 warning
    ==================
    
    > Done in 9.16 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .



    Here is the ContainerMicrowave.java file:
    // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) braces deadcode 
    
    package net.minecraft.src;
    
    import java.util.List;
    
    // Referenced classes of package net.minecraft.src:
    //            Container, Slot, SlotFurnace, InventoryPlayer, 
    //            ICrafting, TileEntityFurnace, ItemStack, EntityPlayer
    
    public class ContainerMicrowave extends Container
    {
    
        public ContainerMicrowave(InventoryPlayer inventoryplayer, TileEntityMicrowave tileentitymicrowave)
        {
            coolTime = 0;
            cookTime = 0;
            itemCookTime = 0;
            microwave = tileentitymicrowave;
            addSlot(new Slot(tileentitymicrowave, 0, 56, 17));
            addSlot(new Slot(tileentitymicrowave, 1, 56, 53));
            addSlot(new SlotMicrowave(inventoryplayer.player, tileentitymicrowave, 2, 116, 35));
            for(int i = 0; i < 3; i++)
            {
                for(int k = 0; k < 9; k++)
                {
                    addSlot(new Slot(inventoryplayer, k + i * 9 + 9, 8 + k * 18, 84 + i * 18));
                }
    
            }
    
            for(int j = 0; j < 9; j++)
            {
                addSlot(new Slot(inventoryplayer, j, 8 + j * 18, 142));
            }
    
        }
    
        public void updateCraftingResults()
        {
            super.updateCraftingResults();
            for(int i = 0; i < inventorySlots.size(); i++)
            {
                ICrafting icrafting = (ICrafting)inventorySlots.get(i);
                if(coolTime != microwave.microwaveBurnTime)
                {
                    icrafting.updateCraftingInventoryInfo(this, 0, microwave.microwaveBurnTime);
                }
                if(cookTime != microwave.microwaveCookTime)
                {
                    icrafting.updateCraftingInventoryInfo(this, 1, microwave.microwaveCookTime);
                }
                if(itemCookTime != microwave.currentItemBurnTime)
                {
                    icrafting.updateCraftingInventoryInfo(this, 2, microwave.currentItemBurnTime);
                }
            }
    
            coolTime = microwave.microwaveBurnTime;
            cookTime = microwave.microwaveCookTime;
            itemCookTime = microwave.currentItemBurnTime;
        }
    
        public void func_20112_a(int i, int j)
        {
            if(i == 0)
            {
                microwave.microwaveBurnTime = j;
            }
            if(i == 1)
            {
                microwave.microwaveCookTime = j;
            }
            if(i == 2)
            {
                microwave.currentItemBurnTime = j;
            }
        }
    
        public boolean canInteractWith(EntityPlayer entityplayer)
        {
            return microwave.canInteractWith(entityplayer);
        }
    
        public ItemStack getStackInSlot(int i)
        {
            ItemStack itemstack = null;
            Slot slot = (Slot)inventorySlots.get(i);
            if(slot != null && slot.getHasStack())
            {
                ItemStack itemstack1 = slot.getStack();
                itemstack = itemstack1.copy();
                if(i == 2)
                {
                    if(!func_28125_a(itemstack1, 3, 39, true))
                    {
                        return null;
                    }
                } else
                if(i >= 3 && i < 30)
                {
                    if(!func_28125_a(itemstack1, 30, 39, false))
                    {
                        return null;
                    }
                } else
                if(i >= 30 && i < 39)
                {
                    if(!func_28125_a(itemstack1, 3, 30, false))
                    {
                        return null;
                    }
                } else
                if(!func_28125_a(itemstack1, 3, 39, false))
                {
                    return null;
                }
                if(itemstack1.stackSize == 0)
                {
                    slot.putStack(null);
                } else
                {
                    slot.onSlotChanged();
                }
                if(itemstack1.stackSize != itemstack.stackSize)
                {
                    slot.onPickupFromSlot(itemstack1);
                } else
                {
                    return null;
                }
            }
            return itemstack;
        }
    
        private TileEntityMicrowave microwave;
        private int coolTime;
        private int cookTime;
        private int itemCookTime;
    }


    Can someone please tell me what I have to change. I got this from this tutorial:
    Posted in: Modification Development
  • 0

    posted a message on Please Close Topic
    Solved problem
    Posted in: Modification Development
  • 0

    posted a message on Wolf Hides 1.7.3 {request}

    Humululu said that Minecraft 1.0 is coming out in a few days, and your wanting a mod made for 1.7.3, it probably isnt going to happen
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on Help with Smelting
    Quote from X8xScoutx8X

    Hi there. I'm just seeking support here for a problem I'm having with my mod (Chocolate Mod).
    This is just one simple little question - How do I use damage values in smelting recipes?

    I know how to do it in Recipes:

    ModLoader.AddShapelessRecipe(new ItemStack(WhiteChocolate, 1), new Object [] {
        		new ItemStack(Item.dyePowder, 1, 15), new ItemStack(Chocolate, 1)
    		});

    That is my recipe for my white chocolate, which is Chocolate + Bonemeal (dyePowder, 1, 15).

    But what if I were to use, say, Cocoa Beans in a furnace? All the times I've tried it crashes the launcher and has an error in my coding program, so please, if someone could help I'll be glad to put your name in the credits or whatever you want :smile.gif:

    Thank you very much for your support.


    I have been testing this for a while, and I dont think you can put dye straight into a furnace. I think you have to craft the dye into another item, then put it in the furnace. Could you post the furnace recipe you are currently using?
    Posted in: Modification Development
  • 0

    posted a message on Help with block generation code.
    Quote from ghosrec35

    This will not spawn on the surface, it will spawn anywhere in the middle block(and only the middle block) of each 16x16 chunk, and from layer 128 to layer 1.




    I'll take a look at it for a bit and get back to you with it, and no worries about being new (it's not that you're a noob, you're a newb :tongue.gif:).


    I tested it last night, and layer 128 makes what you want to generate on the surface.
    Posted in: Modification Development
  • 0

    posted a message on Item acts as if it would when it is right clicked when dispensed from a dispenser
    Quote from Chronosmith

    The code for an arrow being fired and snowballs and eggs being thrown, is keyed right into the dispenser itself. If you want it to throw your grenade for you, you'll have to make changes to BlockDispenser.




    ok thanks
    Posted in: Modification Development
  • 0

    posted a message on Help with block generation code.

    Quote from Steve_ftw

    I am working on a Dragon Ball Z mod and I am stuck on the generation of a block. I need it to generate very rarely and only geneate on the surface (grass).

    here is what I have so far:

    public void GenerateSurface(World world, Random random, int chunkX, int chunkZ)
    {
    int pozY;
    int pozX;
    int pozZ;

    int tries = 1;

    for(int i = 0; i < tries; i++)
    {
    pozX = chunkX + random.nextInt(1);
    pozY = random.nextInt(30);
    pozZ = chunkZ + random.nextInt(1);
    (new WorldGenMinable(namekball.blockID, 1)).generate(world, random, pozX, pozY, pozZ);
    }

    }

    If someone could edit this code or help me fulfill my needs (above) I would be most greatfull!


        public void GenerateSurface(World world, Random random, int i, int j)
        {
            for(int k = 0; k < 8; k++)
            {
                int l = i + random.nextInt(1);
                int i1 = random.nextInt(128);
                int j1 = j + random.nextInt(1);
                (new WorldGenMinable(namekball.blockID, 1)).generate(world, random, l, i1, j1);
            }
    
        }




    I think 128 is the surface for generation. This is the code I would use for generating blocks
    Posted in: Modification Development
  • 0

    posted a message on Item acts as if it would when it is right clicked when dispensed from a dispenser
    Im working on a grenade mod with lots of types of grenades. I want to make 1 that will explode when it is dispensed. I need to know how to make it act as if it had been right clicked when in the players hand except after being fired from a dispenser. Can anyone help?
    Posted in: Modification Development
  • 0

    posted a message on Dimension Help
    SAPI is installed by putting in the minecraft.jar like ModLoader. SAPI requires Forge, but I dont have that installed. Could it be possible that that is my problem?
    Posted in: Modification Development
  • 0

    posted a message on SAPI Help
    Im making a new dimension and the only error i got is this:


    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\World.java:43: error: cannot access SAPI
    import net.minecraft.src.SAPI;
    ^
    
    bad source file: src\minecraft\net\minecraft\src\SAPI.java
    file does not contain class net.minecraft.src.SAPI
    Please remove or make sure it appears in the correct subdirectory of the sourcep
    ath.
    ==================
    
    > Done in 8.70 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .



    I think I might have installed it incorrectly.
    Posted in: Modification Development
  • To post a comment, please .