• 0

    posted a message on MCP Error:
    I've recently installed MCP w/ Forge, and it seemed to install fine. If you runclient without doing anything to the source it works fine. But I tried adding a mod_class, and it didn't work. Can someone please point out any syntax errors I may have made?
    Errors:
    == ERRORS FOUND ==
    src\minecraft\net\minecraft\src\mod_saxton.java:42: error: class, interface, or enum expected
    public String getVersion() {
    ^
    src\minecraft\net\minecraft\src\mod_saxton.java:42: error: class, interface, or enum expected
    }
    ^
    src\minecraft\net\minecraft\src\mod_saxton.java:42: error: class, interface, or enum expected
    public void load() {
    ^
    3 errors

    Mod Code:
    package net.minecraft.src;
    
    public class mod_saxton extends BaseMod
    {
    public mod_saxton()
    {
    Item pickaxeRedstone = new ItemPickaxe(150,EnumToolMaterial.REDSTONE).setItemName("pickaxeRedstone");
    Item axeRedstone = new ItemAxe(151,EnumToolMaterial.REDSTONE).setItemName("axeRedstone");
    Item hoeRedstone = new ItemHoe(152,EnumToolMaterial.REDSTONE).setItemName("hoeRedstone");
    Item spadeRedstone = new ItemSpade(153,EnumToolMaterial.REDSTONE).setItemName("spadeRedstone");
    Item swordRedstone = new ItemSword(154,EnumToolMaterial.REDSTONE).setItemName("swordRedstone");
    
    ModLoader.addRecipe(new ItemStack( pickaxeRedstone, 1), new Object[]
    {
    "XXX", " X ", " X ", 'X', Block.dirt
    });
    ModLoader.addRecipe(new ItemStack( axeRedstone, 1), new Object[]
    {
    "XXX", "XX ", " X ", 'X', Block.dirt
    });
    ModLoader.addRecipe(new ItemStack( hoeRedstone, 1), new Object[]
    {
    "XX ", " X ", " X ", 'X', Block.dirt
    });
    ModLoader.addRecipe(new ItemStack( spadeRedstone, 1), new Object[]
    {
    " X ", " X ", " X ", 'X', Block.dirt
    });
    ModLoader.addRecipe(new ItemStack( swordRedstone, 1), new Object[]
    {
    "XXX", "XXX", " X ", 'X', Block.dirt
    });
    
    ModLoader.addName(pickaxeRedstone, "Redstone Pickaxe");
    ModLoader.addName(axeRedstone, "Redstone Axe");
    ModLoader.addName(hoeRedstone, "Redstone Hoe");
    ModLoader.addName(spadeRedstone, "Redstone Spade");
    ModLoader.addName(swordRedstone, "Redstone Sword");
    }
    }
    public String getVersion() {
    return null;
    }
    public void load() {
    
    }

    Enum Code:
    package net.minecraft.src;
    
    public enum EnumToolMaterial
    {
    WOOD(0, 59, 2.0F, 0, 15),
    STONE(1, 131, 4.0F, 1, 5),
    IRON(2, 250, 6.0F, 2, 14),
    EMERALD(3, 1561, 8.0F, 3, 10),
    GOLD(0, 32, 12.0F, 0, 22),
    REDSTONE(3, 750, 7.0F, 3, 8);
    
    /**
    * The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
    */
    private final int harvestLevel;
    
    /**
    * The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
    */
    private final int maxUses;
    
    /**
    * The strength of this tool material against blocks which it is effective against.
    */
    private final float efficiencyOnProperMaterial;
    
    /** Damage versus entities. */
    private final int damageVsEntity;
    
    /** Defines the natural enchantability factor of the material. */
    private final int enchantability;
    
    private EnumToolMaterial(int par3, int par4, float par5, int par6, int par7)
    {
    this.harvestLevel = par3;
    this.maxUses = par4;
    this.efficiencyOnProperMaterial = par5;
    this.damageVsEntity = par6;
    this.enchantability = par7;
    }
    
    /**
    * The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
    */
    public int getMaxUses()
    {
    return this.maxUses;
    }
    
    /**
    * The strength of this tool material against blocks which it is effective against.
    */
    public float getEfficiencyOnProperMaterial()
    {
    return this.efficiencyOnProperMaterial;
    }
    
    /**
    * Damage versus entities.
    */
    public int getDamageVsEntity()
    {
    return this.damageVsEntity;
    }
    
    /**
    * The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
    */
    public int getHarvestLevel()
    {
    return this.harvestLevel;
    }
    
    /**
    * Return the natural enchantability factor of the material.
    */
    public int getEnchantability()
    {
    return this.enchantability;
    }
    
    /**
    * Return the crafting material for this tool material, used to determine the item that can be used to repair a tool
    * with an anvil
    */
    public int getToolCraftingMaterial()
    {
    return this == WOOD ? Block.planks.blockID : (this == STONE ? Block.cobblestone.blockID : (this == GOLD ? Item.ingotGold.shiftedIndex : (this == IRON ? Item.ingotIron.shiftedIndex : (this == EMERALD ? Item.diamond.shiftedIndex : 0))));
    }
    }

    Using MCP version 722, along with minecraft 1.4.4.
    Posted in: Mods Discussion
  • 0

    posted a message on Survival Tekkit Server
    elimest42
    12
    Early beta is when I started playing.
    Posted in: PC Servers
  • 0

    posted a message on ◄ The 4 Corners► ◊ 1.2.5 Faction Server ◊ Team Speak 3 ◊ Chest Shop ◊ 25+ plugins
    • Your IGN? elimest42
    • Your Age? 12.
    • Will you be joining us on TeamSpeak 3? Sadly, my microphone is broken.
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on Looking for Staff and Developers (HTML, JAVA)
    1. What is your real name and Minecraft username? AJ, and Elimest42. Guess which ones my real name :biggrin.gif:

    2. Have you moderated on any servers before? I was a mod, once, but i left that server.

    3. How long have you been playing Minecraft? October 2010 i think? Fall 2010.

    4. Do you have a ban history? I got kicked once, and it wasn't even a reasonable kick. But I've never been banned.

    5. Why should I choose you? Tell me what your can bring to the server. I BRING JUSTICE TO GREIFERS!!! And I can build.
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on Looking for Staff and Developers (HTML, JAVA)
    Hello, and I am A new HTML developer. This would be my first time doing a website for someone else, and i would love to help program. I'm a VERY new developer though, so I won't be able to program the best websites on short notice, except I'm learning fast, and I want something to use up my spare time with. And I was working on a website already, If i changed the name, edited some of the code, I could have the Version 1 done real quick.
    PS: Unforsaken, he went offline. :sad.gif:
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on RolePlay!:) [Bukkit][Economy][Towns][No White-list][Classes]
    "This network does not exist" >:@
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on Want to be like Yogscast?
    The server is full D:
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on Want to be like Yogscast?
    I might be able to get myself another account, so, yeah.
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on People taking Minecraft WAY TO SERIOUSLY! Link To Website!
    WHY DO THEY HATE SQUARES?!?! *sob*
    Posted in: Discussion
  • 0

    posted a message on Small Bukkit RP Server - ColonyCraft
    Hello, and I would like to apply for the whitelist. I don't greif, i doubt I could even get my hands on any tnt, and if I do something Wrong, just let me know, and I will fix it.
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on Want to be like Yogscast?
    Quote from fightlight55

    Hey everyone, would you like to be famous on YouTube for minecraft? just like yogscast? if so, join 76.16.75.137 for a story, like shadow of israphel. pm me ideas, read below, and reply to the following:

    Minecraft Name:
    Time started playing:
    Latest Built:
    Own Server?:
    Skype/E-mail (if not, ill pm):
    Role in story:
    Pictures of your best building:
    ARE YOU EXCITED??!?!?!:

    Rules:
    1. No griefing
    2. No stealing
    3. Don't break character
    4.Don't be a that guy
    5. Have Fun!! :biggrin.gif:

    I am free basically all hours of the day, pm me your schedule and we can all talk about a script, plot and roles. You WILL be famous if we do this right.

    Also, we can do custom maps, such as Trails of the Old Ones or Survival Island. You name it, we do it. I built a castle in 5 hours guys. 46 diamond blocks, no spawning. I know every single bit of info you can know about minecraft.

    Thanks for your time,
    Fightlight55
    A.K.A. Jon

    Minecraft name: Elimest42
    Latest build: A little town called regan (I had help on the farm though)
    Own server: no
    Skype/email: just pm me
    role in story: i was hit over the head by a falling tree, and now i think im king
    Pictures of your best building: ill get one soon
    ARE YOU EXCITED??!?!:yes
    P.s what type of server is it? (vanilla, buckit, etc.)
    p.s.s i dont want to be a main character
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on Minecraft SMP won't work ( Connection Timed Out: Connect)
    Hello. I've been playing minecraft for a while now, so i decided to play multiplayer. I try to get on a server, and it says "Connection timed out: Connect". It's not that the server is down, I have tried lots and lots of servers, I doubt they are all down at the same time. I can connect to my own server fine, I know I'm typing in the right IP address right, and it isn't my version of minecraft (I bought the game, I have no mods or texture packs installed). I went to my friends house and tried the same thing same cpu, (its a laptop) and it worked. the difference is that it was a wired connection over there. If you need details, reply to this thread.
    Posted in: Legacy Support
  • 0

    posted a message on Connection timed out:Connect
    Actually, it depends. I have had the same error, got the same solution, and it didn't work. (Ive tried lots and lots of servers, I doubt they are all down.) I can connect to my own server fine, except it is really laggy. the same has happened with other games also (such as Battle Field Heroes). I have tried reseting my modem, and that didn't work. I'm on my laptop, and I brought it to my friends house and I could connect to servers fine.
    Posted in: Legacy Support
  • 0

    posted a message on Mcadmin Host cannot break or place blocks, others can
    I'm not sure, but try and move away from spawn. Sorry if this doesn't work.
    Posted in: Legacy Support
  • To post a comment, please or register a new account.