Advertisement
ZornTaov

Mod_YOURMOD for items

Mar 11th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.08 KB | None | 0 0
  1. package net.minecraft.src;
  2. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  3. // Jad home page: http://www.kpdus.com/jad.html
  4. // Decompiler options: packimports(3) braces deadcode
  5.  
  6. public class mod_YOURMOD extends BaseMod
  7. {
  8.  
  9.     public mod_YOURMOD()
  10.     {
  11.         YOURITEM = new ItemYOURITEM(/*number between 256-32000*/).setIconIndex(/*numbers between 0,0 and 16,16 OR you can use ModLoader.addOverride("/gui/items.png", "/gui/YOURITEMTEXTURE.png") to use another 16x16 .png file*/).setItemName("YOURITEM");
  12.     ModLoader.AddName(YOURITEM, "YOURITEM"); //used for the popup that says what the item is
  13.     }
  14.  
  15.     public String Version()
  16.     {
  17.         return "1.3_01";
  18.     }
  19.  
  20.     public void AddRecipes(CraftingManager craftingmanager)
  21.     {
  22.         craftingmanager.addRecipe(new ItemStack(YOURITEM, 1), new Object[] {
  23.             " ##","#X#","###", Character.valueOf('X'), Block.stoneOvenIdle, Character.valueOf('#'), Item.ingotIron
  24.         });//check the Item file and the Block file for usable names
  25.     }
  26.  
  27.     public static Item YOURITEM;
  28.     static
  29.     {
  30.    
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement