Advertisement
Guest User

Minecraft Wiki: Adding a Shapeless Recipe

a guest
Jun 9th, 2012
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  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.         ModLoader.addShapelessRecipe(new ItemStack(Block.grass, 1), new Object[] { Item.seeds, new ItemStack(Block.wood, 1, 3) });
  9.     }
  10.    
  11.     public void load()
  12.     {
  13.         this.addRecipes();
  14.     }
  15.    
  16.     public String getVersion()
  17.     {
  18.         return "Version 1.0";
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement