Named Items in Custom Crafting Recipes

Discussion in 'Plugin Development' started by ryr11, Jan 28, 2014.

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

    ryr11

    Is there a way to make custom crafting recipes that require certain permissions and items with a certain name & lore, possibly without InventoryClickEvent?
     
  2. Offline

    Windy Day

    I believe you have to listen for when someone starts crafting an item for permissions. However to make a recipe with lore just do:
    Code:
    ItemStack item = new ItemStack(Material.SOMETHING);
    //set the metadata
    ShapedRecipe disk = new ShapedRecipe(item);
    //set recipe shape
    Bukkit.getServer().addRecipe(disk); //add recipe
    
     
Thread Status:
Not open for further replies.

Share This Page