• 0

    posted a message on Ultra Hardcore Server! [Automatic]
    Can you add Chradke and Quarfindo the the team server?
    Posted in: PC Servers
  • 0

    posted a message on Cannot wear my armor (i'm still searching all over besides making a new thread)
    Quote from TFCxAddict

    Yes, you can add a new material. Just copy one of them and determine what the ints mean. Make sure you end lines correctly, either with a comma or a semicolon.


    so you're telling me, just add my own using the same... format... as say "EMERALD" and add it right below gold. so long as I add the correct values and format as the others, it should work?\

    and I've got no idea how to use reflection. that was suggested to me before, and i'm kinda new at java still, i've just been following tuts. this whole armor thing was my first attempt at my own thing. and it looked like it should have worked the way I set it up. It works with tools just fine >.> except wit tools, I have to make all the tool classes individually. Armor doesn't have an individual helmet.class like the tools do.
    Posted in: Modification Development
  • 0

    posted a message on Cannot wear my armor (i'm still searching all over besides making a new thread)
    Quote from XaedBlade

    i had the same problem and ended up just adding it to the EnumArmormaterial file... and it works I can wear the armor...

    but if there were another way without edditing the armor file that would be way better.


    Can you just add a new material to the EnumArmorMaterial file? I heard that would just set off a nasty chain of errors...
    Posted in: Modification Development
  • 0

    posted a message on Cannot wear my armor (i'm still searching all over besides making a new thread)
    Quote from jtbnoob

    did you make a texture for the armor?


    of course
    everything works except the items won;t go into the armor slots in the game
    Posted in: Modification Development
  • 0

    posted a message on Cannot wear my armor (i'm still searching all over besides making a new thread)
    i added the extends ItemArmor and I get an error at super
    Posted in: Modification Development
  • 0

    posted a message on Cannot wear my armor (i'm still searching all over besides making a new thread)
    Hey guys, I've made this new armor type called DiamondEdged. I made a new Enum for the armor and stuff, there are no errors, I just can't wear the armor. I tried changing the armor material to DIAMOND and It worked. I'll post the mod, ItemArmor, and EnumArmorMaterial files I created. Any help is much appreciated! Thanks!

    the mod
    package net.minecraft.src;
    import java.util.Random;
    public class mod_everything extends BaseMod
    {
    public static Item PumpkinSpice;
    public static final Item PumpkinCookie = (new ItemFood(999, 1, 1F, false)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinCookie.png")).setItemName("PumpkinCookie");
    
    public static Item PurpleSword;
    
    public static final Block CompressedObsidian;
    public static final Block PureObsidian;
    public static final Block DiamondEdgedObsidian;
    public static Item DiamondEdgedIngot;
    
    public static Item DiamondEdgedSword;
    public static Item DiamondEdgedAxe;
    public static Item DiamondEdgedShovel;
    public static Item DiamondEdgedPick;
    public static Item DiamondEdgedHoe;
    
    
    static
    {
      
    
       PumpkinSpice = (new Item(1000)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinSpice.png")).setItemName("PumpkinSpice");
      
       PurpleSword = (new ItemPurpleSword(8010, EnumToolMaterial.STONE)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PurpleSword.png")).setItemName("PurpleSword");
      
       CompressedObsidian = (new BlockCompressedObsidian(200, ModLoader.addOverride("/terrain.png", "/mods/CompressedObsidian.png"))).setHardness(5F).setResistance(2000F).setStepSound(Block.soundStoneFootstep).setBlockName("CompressedObsidian");
       PureObsidian = (new BlockPureObsidian(201, ModLoader.addOverride("/terrain.png", "/mods/PureObsidian.png"))).setHardness(5F).setResistance(2000F).setStepSound(Block.soundGlassFootstep).setBlockName("PureObsidian");
       DiamondEdgedObsidian = (new BlockDiamondEdgedObsidian(202, ModLoader.addOverride("/terrain.png", "/mods/DiamondEdgedObsidian.png"))).setHardness(5F).setResistance(2000F).setStepSound(Block.soundGlassFootstep).setBlockName("DiamondEdgedObsidian");
       DiamondEdgedIngot = (new Item(8004)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedIngot.png")).setItemName("DiamondEdgedIngot");
      
       DiamondEdgedSword = (new ItemDiamondEdgedSword(8005, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedSword.png")).setItemName("DiamondEdgedSword");
       DiamondEdgedAxe = (new ItemDiamondEdgedAxe(8006, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedAxe.png")).setItemName("DiamondEdgedAxe");
       DiamondEdgedShovel = (new ItemDiamondEdgedShovel(8007, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedShovel.png")).setItemName("DiamondEdgedShovel");
       DiamondEdgedPick = (new ItemDiamondEdgedPick(8008, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedPick.png")).setItemName("DiamondEdgedPick");
       DiamondEdgedHoe = (new ItemDiamondEdgedHoe(8009, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedHoe.png")).setItemName("DiamondEdgedHoe");
    }
    
    public void load()
    {
    //Pumpkin
      ModLoader.addName(PumpkinSpice, "Pumpkin Spice");
      ModLoader.addRecipe(new ItemStack(PumpkinSpice, 3), new Object[]{
       "xxx", Character.valueOf('x'), Block.pumpkin
      });
      ModLoader.addName(PumpkinCookie, "Pumpkin Cookie");
      ModLoader.addRecipe(new ItemStack(PumpkinCookie, 8), new Object[]{
       "wsw", Character.valueOf('s'), PumpkinSpice, Character.valueOf('w'), Item.wheat
      });
    
    //CoLoRs!
      ModLoader.addName(PurpleSword, "Purple Sword");
      ModLoader.addRecipe(new ItemStack(PurpleSword, 1), new Object[]{
       " p ", " p ", " s ", Character.valueOf('p'), Block.cloth, Character.valueOf('s'), Item.stick
      });
    
    //Diamond Edged Obsidian
      ModLoader.registerBlock(CompressedObsidian);
      ModLoader.addName(CompressedObsidian, "Compressed Obsidian");
      ModLoader.addRecipe(new ItemStack(CompressedObsidian, 1), new Object[]{
       "ooo", "ooo", "ooo", Character.valueOf('o'), Block.obsidian
      });
    
      ModLoader.registerBlock(PureObsidian);
      ModLoader.addName(PureObsidian, "Pure Obsidian");
      ModLoader.addSmelting(CompressedObsidian.blockID, new ItemStack(PureObsidian, 1));
    
      ModLoader.registerBlock(DiamondEdgedObsidian);
      ModLoader.addName(DiamondEdgedObsidian, "Diamond Edged Obsidian");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedObsidian, 1), new Object[]{
       "od", Character.valueOf('o'), PureObsidian, Character.valueOf('d'), Item.diamond
      });
    
      ModLoader.addName(DiamondEdgedIngot, "Diamond Edged Ingot");
      ModLoader.addSmelting(DiamondEdgedObsidian.blockID, new ItemStack(DiamondEdgedIngot));
    
      ModLoader.addName(DiamondEdgedSword, "Diamond Edged Sword");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedSword, 1), new Object []{
       " d ", " d ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
    
      ModLoader.addName(DiamondEdgedAxe, "Diamond Edged Axe");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedAxe, 1), new Object []{
       "dd ", "ds ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
    
      ModLoader.addName(DiamondEdgedShovel, "Diamond Edged Shovel");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedShovel, 1), new Object []{
       " d ", " s ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
    
      ModLoader.addName(DiamondEdgedPick, "Diamond Edged Pickaxe");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedPick, 1), new Object []{
       "ddd", " s ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
    
      ModLoader.addName(DiamondEdgedHoe, "Diamond Edged Hoe");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedHoe, 1), new Object []{
       "dd ", " s ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
    }
    public static Item PumpkinHelmet;
    public static Item PumpkinChest;
    public static Item PumpkinLegs;
    public static Item PumpkinBoots;
    public static Item DiamondEdgedHelmet;
    public static Item DiamondEdgedChest;
    public static Item DiamondEdgedLegs;
    public static Item DiamondEdgedBoots;
    
    public mod_everything()
    {
      ModLoader.registerBlock(CompressedObsidian);
      ModLoader.registerBlock(PureObsidian);
      ModLoader.registerBlock(DiamondEdgedObsidian);
    }
    static
    {
    
       PumpkinHelmet = (new ItemArmor(8000, EnumArmorMaterial.CLOTH, 5, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinHelmet.png")).setItemName("PumpkinHelmet");
       PumpkinChest = (new ItemArmor(8001, EnumArmorMaterial.CLOTH, 5, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinChest.png")).setItemName("PumpkinChest");
       PumpkinLegs = (new ItemArmor(8002, EnumArmorMaterial.CLOTH, 5, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinLegs.png")).setItemName("PumpkinLegs");
       PumpkinBoots = (new ItemArmor(8003, EnumArmorMaterial.CLOTH, 5, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinBoots.png")).setItemName("PumpkinBoots");
      
       ModLoader.addName(PumpkinHelmet, "Pumpkin Helmet");
       ModLoader.addName(PumpkinChest, "Pumpkin Chestplate");
       ModLoader.addName(PumpkinLegs, "Pumpkin Leggings");
       ModLoader.addName(PumpkinBoots, "Pumpkin Boots");
      
       ModLoader.addArmor("pumpkin");
      
       ModLoader.addRecipe(new ItemStack(PumpkinHelmet, 1), new Object[]{
    	"ppp", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinChest, 1), new Object[]{
    	"p p", "ppp", "ppp", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinLegs, 1), new Object[]{
    	"ppp", "p p", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinBoots, 1), new Object[]{
    	"p p", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
      
       DiamondEdgedHelmet = (new ItemDiamondEdgedArmor(8011, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedHelmet.png")).setItemName("DiamondEdgedHelmet");
       DiamondEdgedChest = (new ItemDiamondEdgedArmor(8012, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedChest.png")).setItemName("DiamondEdgedChest");
       DiamondEdgedLegs = (new ItemDiamondEdgedArmor(8013, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedLegs.png")).setItemName("DiamondEdgedLegs");
       DiamondEdgedBoots = (new ItemDiamondEdgedArmor(8014, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedBoots.png")).setItemName("DiamondEdgedBoots");
      
       ModLoader.addName(DiamondEdgedHelmet, "Diamond Edged Helmet");
       ModLoader.addName(DiamondEdgedChest, "Diamond Edged Chestplate");
       ModLoader.addName(DiamondEdgedLegs, "Diamond Edged Leggings");
       ModLoader.addName(DiamondEdgedBoots, "Diamond Edged Boots");
      
       ModLoader.addArmor("DiamondEdged");
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedHelmet, 1), new Object[]{
    	"ppp", "p p", Character.valueOf('p'), Block.dirt
       });
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedChest, 1), new Object[]{
    	"p p", "ppp", "ppp", Character.valueOf('p'), Block.dirt
       });
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedLegs, 1), new Object[]{
    	"ppp", "p p", "p p", Character.valueOf('p'), Block.dirt
       });
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedBoots, 1), new Object[]{
    	"p p", "p p", Character.valueOf('p'), Block.dirt
       });
    }
    @Override
    public String getVersion() {
      // TODO Auto-generated method stub
      return null;
    }
    }



    ItemDiamondEdgedArmor
    package net.minecraft.src;
    
    public class ItemDiamondEdgedArmor extends Item
    {
    	private static final int maxDamageArray[] =
    	{
    		11, 16, 15, 13
    	};
    
    	/**
    	 * Stores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots
    	 */
    	public final int armorType;
    
    	/** Holds the amount of damage that the armor reduces at full durability. */
    	public final int damageReduceAmount;
    
    	/**
    	 * Used on RenderPlayer to select the correspondent armor to be rendered on the player: 0 is cloth, 1 is chain, 2 is
    	 * iron, 3 is diamond and 4 is gold.
    	 */
    	public final int renderIndex;
    
    	/** The EnumArmorMaterial used for this ItemArmor */
    	private final EnumDiamondEdgedArmorMaterial material;
    
    	public ItemDiamondEdgedArmor(int par1, EnumDiamondEdgedArmorMaterial par2EnumArmorMaterial, int par3, int par4)
    	{
    		super(par1);
    		material = par2EnumArmorMaterial;
    		armorType = par4;
    		renderIndex = par3;
    		damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);
    		setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
    		maxStackSize = 1;
    	}
    
    	/**
    	 * Return the enchantability factor of the item, most of the time is based on material.
    	 */
    	public int getItemEnchantability()
    	{
    		return material.getEnchantability();
    	}
    
    	/**
    	 * Returns the 'max damage' factor array for the armor, each piece of armor have a durability factor (that gets
    	 * multiplied by armor material factor)
    	 */
    	static int[] getMaxDamageArray()
    	{
    		return maxDamageArray;
    	}
    }


    and the new EnumArmorMaterial
    package net.minecraft.src;
    
    public enum EnumDiamondEdgedArmorMaterial
    {
    
    	DIAMONDEDGED(40, new int[] {
    		3, 10, 8, 3
    	}, 0);
    
    	/**
    	 * Holds the maximum damage factor (each piece multiply this by it's own value) of the material, this is the item
    	 * damage (how much can absorb before breaks)
    	 */
    	private int maxDamageFactor;
    	private int damageReductionAmountArray[];
    
    	/** Return the enchantability factor of the material */
    	private int enchantability;
    
    	private EnumDiamondEdgedArmorMaterial(int par3, int par4ArrayOfInteger[], int par5)
    	{
    		maxDamageFactor = par3;
    		damageReductionAmountArray = par4ArrayOfInteger;
    		enchantability = par5;
    	}
    
    	/**
    	 * Returns the durability for a armor slot of for this type.
    	 */
    	public int getDurability(int par1)
    	{
    		return ItemArmor.getMaxDamageArray()[par1] * maxDamageFactor;
    	}
    
    	/**
    	 * Return the damage reduction (each 1 point is a half a shield on gui) of the piece index passed (0 = helmet, 1 =
    	 * plate, 2 = legs and 3 = boots)
    	 */
    	public int getDamageReductionAmount(int par1)
    	{
    		return damageReductionAmountArray[par1];
    	}
    
    	/**
    	 * Return the enchantability factor of the material.
    	 */
    	public int getEnchantability()
    	{
    		return enchantability;
    	}
    }
    Posted in: Modification Development
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    hmm, I'll do a link next time, that's quite long ...>.>
    Posted in: Tutorials
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    Adding new armor, and I made a new Enum and ItemArmor. What did I do wrong? The armor won't go into the armor slot in game
    package net.minecraft.src;
    public class ItemDiamondEdgedArmor extends Item
    {
        private static final int maxDamageArray[] =
        {
    	    11, 16, 15, 13
        };
        /**
    	 * Stores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots
    	 */
        public final int armorType;
        /** Holds the amount of damage that the armor reduces at full durability. */
        public final int damageReduceAmount;
        /**
    	 * Used on RenderPlayer to select the correspondent armor to be rendered on the player: 0 is cloth, 1 is chain, 2 is
    	 * iron, 3 is diamond and 4 is gold.
    	 */
        public final int renderIndex;
        /** The EnumArmorMaterial used for this ItemArmor */
        private final EnumDiamondEdgedArmorMaterial material;
        public ItemDiamondEdgedArmor(int par1, EnumDiamondEdgedArmorMaterial par2EnumArmorMaterial, int par3, int par4)
        {
    	    super(par1);
    	    material = par2EnumArmorMaterial;
    	    armorType = par4;
    	    renderIndex = par3;
    	    damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);
    	    setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
    	    maxStackSize = 1;
        }
        /**
    	 * Return the enchantability factor of the item, most of the time is based on material.
    	 */
        public int getItemEnchantability()
        {
    	    return material.getEnchantability();
        }
        /**
    	 * Returns the 'max damage' factor array for the armor, each piece of armor have a durability factor (that gets
    	 * multiplied by armor material factor)
    	 */
        static int[] getMaxDamageArray()
        {
    	    return maxDamageArray;
        }
    }


    package net.minecraft.src;
    public enum EnumDiamondEdgedArmorMaterial
    {
     
        DIAMONDEDGED(40, new int[] {
    	    3, 10, 8, 3
        }, 0);
        /**
    	 * Holds the maximum damage factor (each piece multiply this by it's own value) of the material, this is the item
    	 * damage (how much can absorb before breaks)
    	 */
        private int maxDamageFactor;
        private int damageReductionAmountArray[];
        /** Return the enchantability factor of the material */
        private int enchantability;
        private EnumDiamondEdgedArmorMaterial(int par3, int par4ArrayOfInteger[], int par5)
        {
    	    maxDamageFactor = par3;
    	    damageReductionAmountArray = par4ArrayOfInteger;
    	    enchantability = par5;
        }
        /**
    	 * Returns the durability for a armor slot of for this type.
    	 */
        public int getDurability(int par1)
        {
    	    return ItemArmor.getMaxDamageArray()[par1] * maxDamageFactor;
        }
        /**
    	 * Return the damage reduction (each 1 point is a half a shield on gui) of the piece index passed (0 = helmet, 1 =
    	 * plate, 2 = legs and 3 = boots)
    	 */
        public int getDamageReductionAmount(int par1)
        {
    	    return damageReductionAmountArray[par1];
        }
        /**
    	 * Return the enchantability factor of the material.
    	 */
        public int getEnchantability()
        {
    	    return enchantability;
        }
    }


    and the mod

    package net.minecraft.src;
    import java.util.Random;
    public class mod_everything extends BaseMod
    {
    public static Item PumpkinSpice;
    public static final Item PumpkinCookie = (new ItemFood(999, 1, 1F, false)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinCookie.png")).setItemName("PumpkinCookie");
    
    public static Item PurpleSword;
    
    public static final Block CompressedObsidian;
    public static final Block PureObsidian;
    public static final Block DiamondEdgedObsidian;
    public static Item DiamondEdgedIngot;
    
    public static Item DiamondEdgedSword;
    public static Item DiamondEdgedAxe;
    public static Item DiamondEdgedShovel;
    public static Item DiamondEdgedPick;
    public static Item DiamondEdgedHoe;
    
    
    static
    {
      
     
       PumpkinSpice = (new Item(1000)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinSpice.png")).setItemName("PumpkinSpice");
      
       PurpleSword = (new ItemPurpleSword(8010, EnumToolMaterial.STONE)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PurpleSword.png")).setItemName("PurpleSword");
      
       CompressedObsidian = (new BlockCompressedObsidian(200, ModLoader.addOverride("/terrain.png", "/mods/CompressedObsidian.png"))).setHardness(5F).setResistance(2000F).setStepSound(Block.soundStoneFootstep).setBlockName("CompressedObsidian");
       PureObsidian = (new BlockPureObsidian(201, ModLoader.addOverride("/terrain.png", "/mods/PureObsidian.png"))).setHardness(5F).setResistance(2000F).setStepSound(Block.soundGlassFootstep).setBlockName("PureObsidian");
       DiamondEdgedObsidian = (new BlockDiamondEdgedObsidian(202, ModLoader.addOverride("/terrain.png", "/mods/DiamondEdgedObsidian.png"))).setHardness(5F).setResistance(2000F).setStepSound(Block.soundGlassFootstep).setBlockName("DiamondEdgedObsidian");
       DiamondEdgedIngot = (new Item(8004)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedIngot.png")).setItemName("DiamondEdgedIngot");
      
       DiamondEdgedSword = (new ItemDiamondEdgedSword(8005, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedSword.png")).setItemName("DiamondEdgedSword");
       DiamondEdgedAxe = (new ItemDiamondEdgedAxe(8006, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedAxe.png")).setItemName("DiamondEdgedAxe");
       DiamondEdgedShovel = (new ItemDiamondEdgedShovel(8007, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedShovel.png")).setItemName("DiamondEdgedShovel");
       DiamondEdgedPick = (new ItemDiamondEdgedPick(8008, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedPick.png")).setItemName("DiamondEdgedPick");
       DiamondEdgedHoe = (new ItemDiamondEdgedHoe(8009, EnumDiamondEdgedToolMaterial.DIAMONDEDGED)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedHoe.png")).setItemName("DiamondEdgedHoe");
    }
    
    public void load()
    {
    //Pumpkin
      ModLoader.addName(PumpkinSpice, "Pumpkin Spice");
      ModLoader.addRecipe(new ItemStack(PumpkinSpice, 3), new Object[]{
       "xxx", Character.valueOf('x'), Block.pumpkin
      });
      ModLoader.addName(PumpkinCookie, "Pumpkin Cookie");
      ModLoader.addRecipe(new ItemStack(PumpkinCookie, 8), new Object[]{
       "wsw", Character.valueOf('s'), PumpkinSpice, Character.valueOf('w'), Item.wheat
      });
     
    //CoLoRs!
      ModLoader.addName(PurpleSword, "Purple Sword");
      ModLoader.addRecipe(new ItemStack(PurpleSword, 1), new Object[]{
       " p ", " p ", " s ", Character.valueOf('p'), Block.cloth, Character.valueOf('s'), Item.stick
      });
     
    //Diamond Edged Obsidian
      ModLoader.registerBlock(CompressedObsidian);
      ModLoader.addName(CompressedObsidian, "Compressed Obsidian");
      ModLoader.addRecipe(new ItemStack(CompressedObsidian, 1), new Object[]{
       "ooo", "ooo", "ooo", Character.valueOf('o'), Block.obsidian
      });
     
      ModLoader.registerBlock(PureObsidian);
      ModLoader.addName(PureObsidian, "Pure Obsidian");
      ModLoader.addSmelting(CompressedObsidian.blockID, new ItemStack(PureObsidian, 1));
     
      ModLoader.registerBlock(DiamondEdgedObsidian);
      ModLoader.addName(DiamondEdgedObsidian, "Diamond Edged Obsidian");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedObsidian, 1), new Object[]{
       "od", Character.valueOf('o'), PureObsidian, Character.valueOf('d'), Item.diamond
      });
     
      ModLoader.addName(DiamondEdgedIngot, "Diamond Edged Ingot");
      ModLoader.addSmelting(DiamondEdgedObsidian.blockID, new ItemStack(DiamondEdgedIngot));
     
      ModLoader.addName(DiamondEdgedSword, "Diamond Edged Sword");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedSword, 1), new Object []{
       " d ", " d ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
     
      ModLoader.addName(DiamondEdgedAxe, "Diamond Edged Axe");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedAxe, 1), new Object []{
       "dd ", "ds ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
     
      ModLoader.addName(DiamondEdgedShovel, "Diamond Edged Shovel");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedShovel, 1), new Object []{
       " d ", " s ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
     
      ModLoader.addName(DiamondEdgedPick, "Diamond Edged Pickaxe");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedPick, 1), new Object []{
       "ddd", " s ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
     
      ModLoader.addName(DiamondEdgedHoe, "Diamond Edged Hoe");
      ModLoader.addRecipe(new ItemStack(DiamondEdgedHoe, 1), new Object []{
       "dd ", " s ", " s ", Character.valueOf('d'), DiamondEdgedIngot, Character.valueOf('s'), Item.stick
      });
    }
    public static Item PumpkinHelmet;
    public static Item PumpkinChest;
    public static Item PumpkinLegs;
    public static Item PumpkinBoots;
    public static Item DiamondEdgedHelmet;
    public static Item DiamondEdgedChest;
    public static Item DiamondEdgedLegs;
    public static Item DiamondEdgedBoots;
    
    public mod_everything()
    {
      ModLoader.registerBlock(CompressedObsidian);
      ModLoader.registerBlock(PureObsidian);
      ModLoader.registerBlock(DiamondEdgedObsidian);
    }
    static
    {
     
       PumpkinHelmet = (new ItemArmor(8000, EnumArmorMaterial.CLOTH, 5, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinHelmet.png")).setItemName("PumpkinHelmet");
       PumpkinChest = (new ItemArmor(8001, EnumArmorMaterial.CLOTH, 5, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinChest.png")).setItemName("PumpkinChest");
       PumpkinLegs = (new ItemArmor(8002, EnumArmorMaterial.CLOTH, 5, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinLegs.png")).setItemName("PumpkinLegs");
       PumpkinBoots = (new ItemArmor(8003, EnumArmorMaterial.CLOTH, 5, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinBoots.png")).setItemName("PumpkinBoots");
      
       ModLoader.addName(PumpkinHelmet, "Pumpkin Helmet");
       ModLoader.addName(PumpkinChest, "Pumpkin Chestplate");
       ModLoader.addName(PumpkinLegs, "Pumpkin Leggings");
       ModLoader.addName(PumpkinBoots, "Pumpkin Boots");
      
       ModLoader.addArmor("pumpkin");
      
       ModLoader.addRecipe(new ItemStack(PumpkinHelmet, 1), new Object[]{
        "ppp", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinChest, 1), new Object[]{
        "p p", "ppp", "ppp", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinLegs, 1), new Object[]{
        "ppp", "p p", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinBoots, 1), new Object[]{
        "p p", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
      
       DiamondEdgedHelmet = (new ItemDiamondEdgedArmor(8011, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedHelmet.png")).setItemName("DiamondEdgedHelmet");
       DiamondEdgedChest = (new ItemDiamondEdgedArmor(8012, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedChest.png")).setItemName("DiamondEdgedChest");
       DiamondEdgedLegs = (new ItemDiamondEdgedArmor(8013, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedLegs.png")).setItemName("DiamondEdgedLegs");
       DiamondEdgedBoots = (new ItemDiamondEdgedArmor(8014, EnumDiamondEdgedArmorMaterial.DIAMONDEDGED, 6, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/DiamondEdgedBoots.png")).setItemName("DiamondEdgedBoots");
      
       ModLoader.addName(DiamondEdgedHelmet, "Diamond Edged Helmet");
       ModLoader.addName(DiamondEdgedChest, "Diamond Edged Chestplate");
       ModLoader.addName(DiamondEdgedLegs, "Diamond Edged Leggings");
       ModLoader.addName(DiamondEdgedBoots, "Diamond Edged Boots");
      
       ModLoader.addArmor("DiamondEdged");
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedHelmet, 1), new Object[]{
        "ppp", "p p", Character.valueOf('p'), Block.dirt
       });
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedChest, 1), new Object[]{
        "p p", "ppp", "ppp", Character.valueOf('p'), Block.dirt
       });
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedLegs, 1), new Object[]{
        "ppp", "p p", "p p", Character.valueOf('p'), Block.dirt
       });
      
       ModLoader.addRecipe(new ItemStack(DiamondEdgedBoots, 1), new Object[]{
        "p p", "p p", Character.valueOf('p'), Block.dirt
       });
    }
    @Override
    public String getVersion() {
      // TODO Auto-generated method stub
      return null;
    }
    }
    Posted in: Tutorials
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    Quote from diehard362

    webchat.esper.net/?channels=#risucraft there :D


    Cool, but nobody is on... :/
    Posted in: Tutorials
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    Quote from diehard362

    go on the #risucraft irc cause i had the same problem and now since if forgotten im not able to help once again but people on #risucraft will try there best to help ^-^


    risucraft irc? lol I feel like i should know what that means, but I don't
    Posted in: Tutorials
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    Quote from Chradke
    guys, this mod, it's not working AT ALL for me. I try doing everything you guys suggest, nothing works... can't figure it out. I'm resorting to reading the java for dummies page. (wherever that might be) Is it possible they updated JDK when 1.2.3 was released? and I need an update of that? or Mybe a new ModLoader? The last ModLoader I DL'd was with MCP for 1.2.3




    Nevermind, I Figured out my problem.
    but I have a new one. The Spice works, the armor works, they work together.

    when I try and add the cookie however, i get this



    Mods loaded: 1
    ModLoader 1.2.3

    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem.




    --- BEGIN ERROR REPORT bf8dd11a --------
    Generated 3/12/12 1:06 AM

    Minecraft: Minecraft 1.2.3
    OS: Windows 7 (amd64) version 6.1
    Java: 1.7.0_03, Oracle Corporation
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    LWJGL: 2.4.2
    OpenGL: GeForce 210/PCI/SSE2 version 3.3.0, NVIDIA Corporation

    java.lang.NullPointerException
    at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:386)
    at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:409)
    at net.minecraft.src.mod_everything.<init>(mod_everything.java:37)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at net.minecraft.src.ModLoader.addMod(ModLoader.java:284)
    at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1290)
    at net.minecraft.src.ModLoader.init(ModLoader.java:846)
    at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:154)
    at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
    at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:423)
    at net.minecraft.client.Minecraft.run(Minecraft.java:784)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT aabb0ec4 ----------


    package net.minecraft.src;
    import java.util.Random;
    public class mod_everything extends BaseMod
    {public static Item PumpkinSpice;
    
    public static final Item PumpkinCookie = (new ItemFood(999, 1, 1F, false)).setIconIndex(ModLoader.addOverride("/gui/Items.png", "/mods/PumpkinCookie.png")).setItemName("PumpkinCookie");
    
    
    static
    {
       PumpkinSpice = (new Item(1000)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinSpice.png")).setItemName("PumpkinSpice");
      
    }
    
    public void load()
    {
     
    
    }
    public mod_everything()
    {
     
       ModLoader.addName(PumpkinSpice, "Pumpkin Spice");
      
       ModLoader.addRecipe(new ItemStack(PumpkinSpice, 3), new Object[]{
        "xxx", Character.valueOf('x'), Block.pumpkin
       });  
       ModLoader.addName(PumpkinCookie, "Pumpkin Cookie");
      
       ModLoader.addRecipe(new ItemStack(PumpkinCookie, 8), new Object[]{
        "sws", Character.valueOf('s'), Item.PumpkinSpice, Character.valueOf('w'), Item.wheat
       });
      
    }
    
    
     
      public static Item PumpkinHelmet;
    public static Item PumpkinChest;
    public static Item PumpkinLegs;
    public static Item PumpkinBoots;
    
    
    static
    {
     
       PumpkinHelmet = (new ItemArmor(8000, EnumArmorMaterial.CLOTH, 3, 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinHelmet.png")).setItemName("PumpkinHelmet");
      
       PumpkinChest = (new ItemArmor(8001, EnumArmorMaterial.CLOTH, 3, 1)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinChest.png")).setItemName("PumpkinChest");
      
       PumpkinLegs = (new ItemArmor(8002, EnumArmorMaterial.CLOTH, 3, 2)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinLegs.png")).setItemName("PumpkinLegs");
      
       PumpkinBoots = (new ItemArmor(8003, EnumArmorMaterial.CLOTH, 3, 3)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/PumpkinBoots.png")).setItemName("PumpkinBoots");
      
       ModLoader.addName(PumpkinHelmet, "Pumpkin Helmet");
       ModLoader.addName(PumpkinChest, "Pumpkin Chest");
       ModLoader.addName(PumpkinLegs, "Pumpkin Legs");
       ModLoader.addName(PumpkinBoots, "Pumpkin Boots");
      
       ModLoader.addArmor("pumpkin");
      
       ModLoader.addRecipe(new ItemStack(PumpkinHelmet, 1), new Object[]
    	 {
        "ppp", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinChest, 1), new Object[]
    	 {
        "p p", "ppp", "ppp", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinLegs, 1), new Object[]
    	 {
        "ppp", "p p", "p p", Character.valueOf('p'), Block.pumpkin
       });
      
       ModLoader.addRecipe(new ItemStack(PumpkinBoots, 1), new Object[]
    	 {
        "p p", "p p", Character.valueOf('p'), Block.pumpkin
       });
    
    }@Override
    public String getVersion() {
      // TODO Auto-generated method stub
      return null;
    }
    }
    Posted in: Tutorials
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    guys, this mod, it's not working AT ALL for me. I try doing everything you guys suggest, nothing works... can't figure it out. I'm resorting to reading the java for dummies page. (wherever that might be) Is it possible they updated JDK when 1.2.3 was released? and I need an update of that? or Mybe a new ModLoader? The last ModLoader I DL'd was with MCP for 1.2.3
    Posted in: Tutorials
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    Quote from Chradke

    I have to guit the image in /gui? I didn't have to before when I did just PumpkinSpice. But alright, I'll give that a try when I get home from work tonight... And I never forget capitals haha. Hmm, there was an update for mcp yesterday I got. I just kinda thought "hmm I wonder if it needs an update" and It did. I haven't tried anything since I updated, but hopefully Things will work now.


    Still nothing. I don't know what is going wrong -.- put the images in gui, still freezes...
    Posted in: Tutorials
  • 0

    posted a message on Mrsal511's Modding Tutorials (With Video)
    Quote from Deepseadragon

    If you use the class files in the startclient.bat it will say it misses images.

    And i mean you have to put your image (.png) in the folder /gui/

    Oh yes alright, don't forget Capitals if you said that in the code.



    I have to guit the image in /gui? I didn't have to before when I did just PumpkinSpice. But alright, I'll give that a try when I get home from work tonight... And I never forget capitals haha. Hmm, there was an update for mcp yesterday I got. I just kinda thought "hmm I wonder if it needs an update" and It did. I haven't tried anything since I updated, but hopefully Things will work now.
    Posted in: Tutorials
  • To post a comment, please or register a new account.