drackiseries

Minecraft Pickaxe Code

Apr 30th, 2012
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. MOD_FILE CONTENTS :
  2.  
  3.  
  4. package net.minecraft.src;
  5.  
  6. import java.util.Random;
  7.  
  8. public class mod_tutorial extends BaseMod
  9. {
  10.    
  11.     //Blocks
  12.    
  13.     //Items
  14.    
  15.     public static final Item LSPickaxe = (new ItemPickaxe(1003,EnumToolMaterial.IRON).setItemName("LSPickaxe"));
  16.    
  17.  
  18.     public void load()
  19.     {
  20.         LSPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png","/Tools/lavastonepick.png");
  21.        
  22.         //Registering
  23.        
  24.         //Adding names
  25.  
  26.         ModLoader.addName(LSPickaxe, "Lava Stone Pickaxe");
  27.        
  28.         //Crafting Recipes
  29.        
  30.         ModLoader.addRecipe(new ItemStack(mod_tutorial.LSPickaxe, 1), new Object[]
  31.                 {
  32.                     "XXX"," Y "," Y ", 'X', mod_tutorial.LavaStone  , 'Y', Item.stick       //Crafting Line
  33.                 });
  34.        
  35.         //Smelting Recipes
  36.        
  37.         //Shapeless Recipes
  38.        
  39.     }
  40.    
  41.     public String getVersion()
  42.     {
  43.         return "1.2.5";
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment