Solved Furnace Recipes

Discussion in 'Plugin Development' started by Junrall, Apr 5, 2013.

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

    Junrall

    I'm trying to figure out furnace recipes.

    As a test, i'm trying to cook dirt into grass.
    I am using the code below and have it referenced in OnEnable. (I also have some craft recipes referenced there as well and they are working)
    So, when I toss dirt and coal into my furnace, nothing happens. Any ideas?


    Code:
    public static void BakedDirt() {
            Bukkit.getServer().addRecipe(new FurnaceRecipe(new ItemStack(Material.GRASS), Material.DIRT));
        }
     
  2. Offline

    ZeusAllMighty11 Retired Staff

    Um.. you said iron ingot turns into iron ingot...
     
  3. Offline

    Junrall

    TheGreenGamerHD
    Yes... that was a mistake... it has been corrected.:rolleyes:
     
  4. Offline

    ZeusAllMighty11 Retired Staff

    Sometimes you have to restart the server, did you try that?
     
  5. Offline

    Junrall

    TheGreenGamerHD
    I shut the server down
    Edit code
    Compile
    Move new jar plugin to plugins folder
    Then restart the server.

    'Sigh'.... I know I'm tired when I don't think to look for errors in the console.:(
    Turns out my plugin was not loading.
    It is fixed now.

    Thanks for the help.

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

Share This Page