Crafting Recipe in Bukkit Plugins

Discussion in 'Plugin Development' started by brian109, Apr 11, 2015.

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

    brian109

    I have attempted to make a crafting recipe for a custom potion, but it doesn't work. Can someone please help me?

    Code: http://pastebin.com/T2JuUS66

    *snip*

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 12, 2016
  2. Offline

    BrickBoy55

    @brian109

    You didn't add the recipe to the server.

    PS: You can only bump every 24 hours.
     
  3. Offline

    brian109

    Oops my mistake for the bump. Should I place the recipe part after the onEnable or what should I do to add it.
     
  4. Offline

    BrickBoy55

    @brian109

    After you created the recipe, getServer().addRecipe(<recipe>);
     
Thread Status:
Not open for further replies.

Share This Page