drackiseries

Minecraft Axe Code

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