Solved Getting and Removing Recipes

Discussion in 'Plugin Development' started by mrCookieSlime, Feb 11, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    mrCookieSlime

    Hey guys, I've got 2 little problems right now.

    1. How can I remove a Recipe?
    For example I want to make it so that you can no longer craft bread using 3 Wheat. How can I completely remove the Recipe for it?

    2. How can I get a Recipe from a Pattern?
    I've got a Dropper where the Crafting Pattern of Diamond Blocks is layed out. How can I get what this Pattern will give as its result when crafted like it?

    Forget about it, I found Solutions for both :)
     
  2. Offline

    mrCookieSlime

  3. Offline

    mrCookieSlime

  4. Offline

    SgtPunishment

    wish I could help you with issue 2, what code did you get to work for removing recipes? because the code I've been using doesn't appear to work anymore... or I'm missing something seriously obvious
     
  5. Offline

    mrCookieSlime

    SgtPunishment
    Sorry forgot to edit the Thread I already found a Solution for my second problem as well.

    Also I'm just iterating through all Recipes and call .remove() when the output equals new ItemStack(Material.BREAD)
     
Thread Status:
Not open for further replies.

Share This Page