Show recipe

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

Thread Status:
Not open for further replies.
  1. Hi, I am doing a new plugin and I need some help. When the minecart is clicked in a gui I want to show the minecarts recipe in a crafting table gui. Is i possible? How can I do it?

    Code:java
    1. if(event.getCurrentItem().getType() == Material.MINECART){
    2.  
    3. //SHOW RECIPE
    4.  
    5. }


    Thanks
     
  2. Offline

    xXSniperzzXx_SD

  3. Offline

    xXSniperzzXx_SD

    galaipa

    The code is there, Bukkit .getReceipe
     
  4. Sorry but I am a little bit noob in this. Bukkit.getRecipe gets the recipe but it dosn't show it no?
     
  5. Offline

    BillyGalbreath

    Welcome to Object Oriented Programming. Get the recipe you want like metioned above, and thats the object. From the object you can get the ingredients, or name, or lore, or anything you want to know (or change) about it.
     
    galaipa likes this.
  6. xD I think I will need to see more tutorials because I am not eable to do nothing.
    Thank You
     
Thread Status:
Not open for further replies.

Share This Page