Solved Furnace Recipes?

Discussion in 'Plugin Development' started by hubeb, Jul 8, 2013.

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

    hubeb

    Hello, at the moment I have:
    Code:java
    1.  
    2. //== Main Class
    3. public void onEnable(){
    4. //Removes clay ball recipe up here
    5. Recipe.bread();
    6. }
    7. //== Recipe Class
    8. public static void bread(){
    9. new FurnaceRecipe(new ItemStack(Material.BREAD,1), Material.CLAY_BALL, 1);
    10. }
    11.  

    It enables the recipe, but i am not able to smelt the clay ball into bread.

    Any help would be appreciated.

    Thanks,
    Hubeb

    Forgot to actually add the recipe to the list.
    Code:java
    1. FurnaceRecipe bread = new FurnaceRecipe(new ItemStack(Material.BREAD,1), Material.CLAY_BALL, 1);
    2. Bukkit.addRecipe(bread);
    3.  


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
Thread Status:
Not open for further replies.

Share This Page