• 0

    posted a message on [V1.3_01] Throwing Spear Mod
    Quote from katarn109 »
    Quote from LearnToSpel »
    Quote from Soopking »
    You should go to #risucraft on http://www.mibbit.com
    Risugami spends alot of time in there so you should be able to ask him how to make it compatible


    Thanks for the suggestion, but I've already got it under control :smile.gif:
    It will be released in a version compatible with modloader very soon.

    Neat, i hope it's compatible with 2x2 crafting grid, Industrial Craft, Plasma Craft and plastic craft


    It should be, after all, the purpose of ModLoader is to make it compatible with other mods :smile.gif:
    Posted in: Minecraft Mods
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    Quote from lietuvis007 »
    Hey,
    I'm new in Java Coding and I want you to ask about one thing:
    package net.minecraft.src;
    
    import java.util.Random;
    
    public class BlockRoad extends Block
    {
    	public BlockRoad(int i, int j)
    	{
    		super(i , j, Material.rock);		
    	}
    	public int idDropped(int i, Random random)
        {
            return blockID;
        }
    	
    	public void onBlockWalking(World world, int i, int j, int k, EntityPlayer entityplayer)
    	{	
    		entityplayer.moveSpeed = 5F;
    	}
    	
    }

    What I'm doing wrong? I tried a lot of ways, but I can't change player move speed.



    I don't know if you already know this, but that is the code for making you walk faster when walking on a certain block (I think)
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    Hey, I've been working more on making my mod ModLoader compatible. So far, I made my mod_Spear file, and it defines all the things like crafting, names, sprite, etc. For some reason, when I recompile, my other files say they can't find the variable "spear". Did I define it incorrectly or something? Here is my modloader code:

    package net.minecraft.src;
    
    import java.util.Map;
    
    public class mod_Spear extends BaseMod
    {
        public static Item spear = new Item(131).setIconIndex(ModLoader.addOverride("/gui/items.png", "/spear/spearsprite.png")).setItemName("spear");
    
        public mod_Spear() {
        ModLoader.RegisterEntityID(EntitySpear.class, "spear", ModLoader.getUniqueEntityId()); 
        ModLoader.AddName(spear, "Throwing Spear");
    }
    
    
    public void AddRecipes(CraftingManager recipes)
      {
        recipes.addRecipe(new ItemStack(spear, 1, 3), new Object[] { "#  ", " X ", "  X", Character.valueOf('X'), Item.stick, Character.valueOf('#'), Item.flint});
      }
    
    public void AddRenderer(Map<Class<? extends Entity>, Render> renderers) {
        renderers.put(EntitySpear.class, new RenderSpear());
      }
    
      public String Version()
      {
        return "Beta 1.3_01";
      }
    }


    Here is the error:

    *** Minecraft Coder Pack Version 2.9 ***
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\EntitySpear.java:269: cannot find symbol
    symbol  : variable spear
    location: class net.minecraft.src.Item
            if(inGround && field_682_g == entityplayer && arrowShake <= 0 && entityp
    layer.inventory.addItemStackToInventory(new ItemStack(Item.spear, 1)))
    
                                                              ^
    sources\minecraft\net\minecraft\src\ItemSpear.java:19: cannot find symbol
    symbol  : variable spear
    location: class net.minecraft.src.Item
            if(entityplayer.inventory.consumeInventoryItem(Item.spear.shiftedIndex))
    
                                                               ^
    2 errors
    *** minecraft_server.jar was not found, skipping
    === MCP 2.9 recompile script finished ===
    Press any key to continue . . .


    Do you know how I need to define spear properly?
    Posted in: Tutorials
  • 0

    posted a message on [V1.3_01] Throwing Spear Mod
    Quote from Soopking »
    You should go to #risucraft on http://www.mibbit.com
    Risugami spends alot of time in there so you should be able to ask him how to make it compatible


    Thanks for the suggestion, but I've already got it under control :smile.gif:
    It will be released in a version compatible with modloader very soon.
    Posted in: Minecraft Mods
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    Quote from RavenBurga »
    But alas, I have another problem.

    addRecipe(new ItemStack(Item.BowlMilk, 1), new Object[] {
        "#","X", Character.valueOf('#'), Item.bowlEmpty, Character.valueOf('X'), Item.bucketMilk
    });


    gives

    *** Minecraft Coder Pack Version 2.9 ***
    MCP 2.9 running in C:\Users\RavenBurga\Desktop\MC modding\MCP
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\CraftingManager.java:185: cannot find symbol
    symbol  : variable BowlMilk
    location: class net.minecraft.src.Item
            addRecipe(new ItemStack(Item.BowlMilk, 1), new Object[] {
                                        ^
    1 error
    *** minecraft_server.jar was not found, skipping
    === MCP 2.9 recompile script finished ===
    Press any key to continue . . .


    My ItemBowlMilk.java looks like this:
    package net.minecraft.src;
    
    public class ItemBowlMilk extends Item
    {
        public ItemBowlMilk(int i)
        {
            super(i);
        }
    }


    At addrecipe, you need to name it ItemBowlMilk, because that's what you named the main Item class file :smile.gif:
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    Quote from smith_61 »
    Quote from LearnToSpel »
    And when I ran enable_modloader.bat, it gave me this error:

    *** Minecraft Coder Pack Version 2.9 ***
    Patching minecraft sources
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/BlockDispense
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/ChunkProvider
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/CraftingManag
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/GameSettings.
    #
    2 out of 2 hunks FAILED -- saving rejects to file net/minecraft/src/PanelCrashRe
    p#
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/RenderManager
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/TileEntityFur
    #
    Press any key to continue . . .


    What do I need to do to fix these?


    Read the readmes that come with MCP29a



    Oh! Sorry for the foolishness, I myself usually don't forget to read the Readmes, but I guess I was stupid this time =/
    Thanks for the help :tongue.gif:
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    And when I ran enable_modloader.bat, it gave me this error:

    *** Minecraft Coder Pack Version 2.9 ***
    Patching minecraft sources
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/BlockDispense
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/ChunkProvider
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/CraftingManag
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/GameSettings.
    #
    2 out of 2 hunks FAILED -- saving rejects to file net/minecraft/src/PanelCrashRe
    p#
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/RenderManager
    #
    1 out of 1 hunk FAILED -- saving rejects to file net/minecraft/src/TileEntityFur
    #
    Press any key to continue . . .


    What do I need to do to fix these?
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    Hey, I've been recently trying to make my mod ModLoader compatible. I made one with ModLoaderv4, which didn't work, but then I saw I had to maked it with ModLoader v5.
    I put all the ModLoader components in a fresh jar, and decompiled it. This is what it said:

    *** Minecraft Coder Pack Version 2.9 ***
    Deobfuscating minecraft.jar
    Unpacking minecraft.jar
    Fixing minecraft classes
    Decompiling minecraft classes
    Repackage minecraft sources
    Patching minecraft sources
    2 out of 2 hunks FAILED -- saving rejects to file net/minecraft/src/RenderBlocks
    .#
    *** minecraft_server.jar was not found, skipping
    Renaming methods and fields
    === MCP 2.9 decompile script finished ===
    Press any key to continue . . .


    What does it mean by hunks?

    Then, I tried recompiling without editting anything. It gave me this error:

    *** Minecraft Coder Pack Version 2.9 ***
    MCP 2.9 running in C:\Users\Tini\Desktop\MCP
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\ChunkProviderLoadOrGenerate.java:157: unrepo
    rted exception java.io.IOException; must be caught or declared to be thrown
                chunkLoader.saveChunk(worldObj, chunk);
                                     ^
    1 error
    *** minecraft_server.jar was not found, skipping
    === MCP 2.9 recompile script finished ===
    Press any key to continue . . .


    What do I need to do to fix this? Run enable_modloader.bat?
    Posted in: Tutorials
  • 0

    posted a message on [V1.3_01] Throwing Spear Mod
    Quote from Jumbify »
    I made a banner for you, because its a cool mod. :tongue.gif:


    [url=http://www.minecraftforum.net/viewtopic.php?f=1032&t=216923][img]http://farm6.static.flickr.com/5175/5514990197_4546b503b6.jpg[/img][/url]


    WOW! Nice, I love that banner! :tongue.gif:
    You have pretty nice artwork, and also some good news is that I think I've learned how to make it
    mod loader compatible, it may just take a bit of time.
    Posted in: Minecraft Mods
  • 0

    posted a message on [V1.3_01] Throwing Spear Mod
    Quote from Realusioninst »
    FIRST!

    Definately gonna try!


    Thanks for the positive feedback :smile.gif:
    Posted in: Minecraft Mods
  • 0

    posted a message on [V1.3_01] Throwing Spear Mod
    This mod has been moved to a new thread with better features and all. Go see it here:

    viewtopic.php?f=1032&t=240150
    Posted in: Minecraft Mods
  • 0

    posted a message on Newly Generated Worlds Seem... Messy?
    You're right, now that I think about it, newly generated maps are getting really ugly...
    Posted in: Discussion
  • 0

    posted a message on How long did it take you to become a Prem. Member?
    It was instant for me.
    Posted in: Discussion
  • 0

    posted a message on [Coming Soon] The Aether Collab - King, Kodaichi, Shockah!
    Whoa, this looks freaking awesome! It would be cool if Notch actually made this a feature. Anyways, when it comes out, I'll be sure to download it :smile.gif:
    Posted in: Mods Discussion
  • 0

    posted a message on [Creating Mods] Modding tutorials [21/5/11]
    Hi, I decided to add a sound effect for my spear mod, but it just simply wouldn't play the sound. I made a folder called "modsounds" in the newsound folder, and put a sound called spear.ogg in it. Here is the code for playing the sound:

    world.playSoundAtEntity(entityplayer, "modsounds.spear", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 0.8F));

    I tried it, and the sound didn't play for some reason. Do I need to make it with AudiMod or something?

    And also, you know how when you put your mouse over an object, it gives its name? I'm trying to do that for my spear, but I can't quite find out how. Can you please tell me where I go to edit that?

    Oh, and thanks for all the help so far :smile.gif:
    Posted in: Tutorials
  • To post a comment, please .