• 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    I get 2 Errors:

    == ERRORS FOUND ==

    src\minecraft\net\minecraft\src\mod_SoupItem.java:3: error: '{' expected
    public class mod_SoupItem extends BaseMod
    ^

    src\minecraft\net\minecraft\src\mod_SoupItem.java:27: error: reached end of file
    while parsing
    }
    ^

    2 errors

    mod_SoupItem.java :

    package net.minecraft.src;

    public class mod_SoupItem extends BaseMod

    public mod_SoupItem()
    {
    ModLoader.AddName(soupItem, "Soup");
    }

    public static final Item soupItem;

    static
    {
    soupItem = (new ItemSoup(4001, 11)).setIconIndex(ModLoader.addOverride("/gui/items.png", "Soup.png")).setItemName("soupItem");
    }

    public String Version()
    {
    return "1";
    }

    public void AddRecipes(CraftingManager craftingmanager)
    {
    craftingmanager.addRecipe(new ItemStack(soupItem), new Object[]{
    " ### ", "###", Character.valueOf('#'), Block.dirt
    });
    }

    ItemSoup.java :

    package net.minecraft.src;

    public class ItemSoup extends Item
    {
    private int healAmount;
    public ItemSoup (int i, int j)
    {
    super(i);
    healAmount = j;
    maxStackSize = 1;
    }

    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
    {
    itemstack.stackSize--;
    entityplayer.heal(healAmount);
    return itemstack;
    }

    }
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    How do I make a block that I can go through?
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    How do I name my block, cuz when I put my mouse over it it has no name and what do I need to do to get the same block back when I break it plz help.
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    OMG! thank you SO SO SO MUCH!!! I have 5 more questions.

    -When I break the block i dont see any floating cube, what do i need to do so I can see it when i break it?
    -How do I change the texture of it?
    -When i make the block(in minecraft)and when I put my mouse on it it has no name, what do I need to do to see its name?
    -I would like to make a JumpBlock ( a block that makes you jump super high ), what do I need to do?
    -What do I need to do so I can stack it?

    Sorry for asking so many questions
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    OMG! thank you SO SO SO MUCH!!! I have 5 more questions.

    -When I break the block i dont see any floating cube, what do i need to do so I can see it when i break it?
    -How do I change the texture of it?
    -When i make the block(in minecraft)and when I put my mouse on it it has no name, what do I need to do to see its name?
    -I would like to make a JumpBlock ( a block that makes you jump super high ), what do I need to do?
    -What do I need to do so I can stack it?

    Sorry for asking so many questions
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    Quote from IX iTzRogue XI

    Read through the error. It tells you EXACTLY whats wrong and it's an easy fix.


    I really dont know its my first time making a mod.....is it this?
    :
    Caused by: java.lang.IllegalArgumentException: Slot 92 is already occupi
    ed by [email protected] when adding net.minecraft.src.BlockExam
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    I did the same thing as you and when i recompile it is fine but when i test the mod i get this message:
    == MCP v4.3 ==
    [18:00] 16 achievements
    [18:00] Exception in thread "main" java.lang.ExceptionInInitializerError
    [18:00] at net.minecraft.src.TextureWaterFX.<init>(TextureWaterFX.java:16)
    [18:00] at net.minecraft.client.Minecraft.<init>(Minecraft.java:41)
    [18:00] at net.minecraft.src.MinecraftImpl.<init>(MinecraftImpl.java:19)
    [18:00] at net.minecraft.client.Minecraft.startMainThread(Minecraft.java:1556)
    [18:00] at net.minecraft.client.Minecraft.func_6269_a(Minecraft.java:1542)
    [18:00] at net.minecraft.client.Minecraft.main(Minecraft.java:1602)
    [18:00] at Start.main(Start.java:26)
    [18:00] Caused by: java.lang.IllegalArgumentException: Slot 92 is already occupi
    ed by [email protected] when adding net.minecraft.src.BlockExam
    [email protected]
    [18:00] at net.minecraft.src.Block.<init>(Block.java:48)
    [18:00] at net.minecraft.src.Block.<init>(Block.java:75)
    [18:00] at net.minecraft.src.BlockExample.<init>(BlockExample.java:9)
    [18:00] at net.minecraft.src.Block.<clinit>(Block.java:863)
    [18:00] ... 7 more

    plz help i didnt even change any thing
    Posted in: Tutorials
  • To post a comment, please .