drackiseries

Minecraft Shovel Code

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