Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected static Minecraft mc = Minecraft.getMinecraft();
- public static boolean createItemFromRecipe(Recipe r) {
- ItemStack[] inventory = mc.thePlayer.inventory.mainInventory;
- ItemStack[] recipeItems = r.getRecipeItems();
- ItemStack itemToMake = r.getItemStack();
- //check if player has the items required for the recipe in his/her inventory
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement