Unstack unstackable items

Discussion in 'Plugin Development' started by pt1448, Apr 5, 2014.

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

    pt1448

    I'm creating a recipe, and I want to make it give 4 mushroom stews individually.
    Code:java
    1. ShapedRecipe bfstew = new ShapedRecipe(new ItemStack(Material.MUSHROOM_SOUP, 4));
    2. bfstew.shape(new String[]
    3. {"CSP",
    4. "S",
    5. "B"}).setIngredient('P', Material.POTATO).setIngredient('C', Material.CARROT).setIngredient('S', Material.COOKED_BEEF).setIngredient('S', Material.BOWL);
    6. Bukkit.getServer().addRecipe(bfstew);


    Any help would be appreciated.
     
  2. Offline

    HariHD

    Edit: You saw nothing..
     
  3. Offline

    pt1448

    HariHD That wouldn't work, because it would create bfstew 4 times... and would add the recipe 4 times...
     
  4. Offline

    HariHD

    @pt1448c Wait yeah. (facepalm)
     
Thread Status:
Not open for further replies.

Share This Page