MC Modding
Please register and join the community!

[1.1] tools set

View previous topic View next topic Go down

[1.1] tools set

Post by pv9avenger on Tue Jan 31, 2012 5:19 pm

Spoiler:

Code:

package net.minecraft.src;
import java.util.Random;

public class mod_Namehere extends BaseMod
{

   public static final Item Pick = new ItemPickaxe(2001, EnumToolMaterial.EMERALD).setItemName("Pick");
   public static final Item Spade = new ItemSpade(2002, EnumToolMaterial.EMERALD).setItemName("Spade");
   public static final Item Axe = new ItemAxe(2003, EnumToolMaterial.EMERALD).setItemName("Axe");
   public static final Item Hoe = new ItemHoe(2004, EnumToolMaterial.EMERALD).setItemName("Hoe");
   public static final Item Sword = new ItemSword(2005, EnumToolMaterial.EMERALD).setItemName("Sword");

   public mod_Namehere()
   {

      Pick.iconIndex = ModLoader.addOverride("/gui/items.png", "/Namehere.png");
      Spade.iconIndex = ModLoader.addOverride("/gui/items.png", "/Namehere.png");
      Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Namehere.png");
      Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Namehere.png");
      Sword.iconIndex = ModLoader.addOverride("/gui/items.png", "/Namehere.png");

      ModLoader.AddName(Pick, "Namehere");
      ModLoader.AddName(Spade, "Namehere");
      ModLoader.AddName(Axe, "Namehere");
      ModLoader.AddName(Hoe, "Namehere");
      ModLoader.AddName(Sword, "Namehere");

      ModLoader.AddRecipe(new ItemStack(Pick, 1), new Object[] {
      "***", " * ", " * ", Character.valueOf('*'), Block.dirt
      });
      ModLoader.AddRecipe(new ItemStack(Axe, 1), new Object[] {
      "** ", "** ", " * ", Character.valueOf('*'), Block.dirt
      });
      ModLoader.AddRecipe(new ItemStack(Spade, 1), new Object[] {
      "* *", " * ", " * ", Character.valueOf('*'), Block.dirt
      });
      ModLoader.AddRecipe(new ItemStack(Hoe, 1), new Object[] {
      "** ", " * ", " * ", Character.valueOf('*'), Block.dirt
      });
      ModLoader.AddRecipe(new ItemStack(Sword, 1), new Object[] {
      " * ", " * ", " * ", Character.valueOf('*'), Block.dirt
      });
   }

        public void load()
        {
        }

   public String getVersion()
   {
      return "1.1";
   }
}

help: mod_Namehere change all the Namehere's to whatever you want and if you are adding more then one tool set then also change Pick/Spade/Axe/Hoe/Sword to whatever you want and done

no itemPick/Spade/Axe/Hoe/Sword required


Last edited by pv9avenger on Tue Jan 31, 2012 11:35 pm; edited 4 times in total (Reason for editing : forgot load method)

pv9avenger
Member

Posts : 8
Join date : 2012-01-31
Age : 18
Location : Iceland

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum