Weird issue when adding a new recipe.

Discussion in 'Plugin Development' started by Josvth, Mar 11, 2012.

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

    Josvth

    I'm having issues with adding a custom recipe for mossy cobblestone. This is my code:

    Code:
    package me.Josvth.MossyRecipe;
     
    import org.bukkit.Material;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.inventory.ShapedRecipe;
    import org.bukkit.plugin.java.JavaPlugin;
     
    public class MossyRecipe extends JavaPlugin{
           
        @Override
        public void onEnable(){
            ShapedRecipe mossyRecipe = new ShapedRecipe(new ItemStack(Material.MOSSY_COBBLESTONE,1)).shape("vvv","vcv","vvv").setIngredient('v', Material.VINE).setIngredient('c', Material.COBBLESTONE);
            getServer().addRecipe(mossyRecipe);
        }
    }
    It will add the recipe. However you can't use shift click to make the max amount of mossy cobblestone. When you try to, it will put 1 mossy cobblestone in your inventory and use 1 set of ingredients. If you then click on on of the ingredients in the crafting grid you will get the maximum amount and the ingredients will be used up accordingly.

    Is this a bukkit issue or am I doing something completely wrong?
     
  2. Offline

    Josvth

    Seems like it's a bukkit bug and it's already reported on leaky. Closing this one.
     
Thread Status:
Not open for further replies.

Share This Page