Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. protected static Minecraft mc = Minecraft.getMinecraft();
  2.  
  3. public static boolean createItemFromRecipe(Recipe r) {
  4. ItemStack[] inventory = mc.thePlayer.inventory.mainInventory;
  5.  
  6. ItemStack[] recipeItems = r.getRecipeItems();
  7. ItemStack itemToMake = r.getItemStack();
  8.  
  9. //check if player has the items required for the recipe in his/her inventory
  10.  
  11.  
  12. return false;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement