SHARE
TWEET

Minecraft Wiki: Adding a Simple Recipe

a guest Jun 2nd, 2012 511 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.minecraft.src;
  2.  
  3. public class mod_myMod extends BaseMod
  4. {      
  5.         public void addRecipes()
  6.         {
  7.                 ModLoader.addRecipe(new ItemStack(Item.diamond, 2), new Object[] { "DDD", "DDD", "DDD", 'D', Block.dirt});
  8.         }
  9.        
  10.         public void load()
  11.         {
  12.                 this.addRecipes();
  13.         }
  14.        
  15.         public String getVersion()
  16.         {
  17.                 return "Version 1.0";
  18.         }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top