Solved Custom Crafting Recipes

Discussion in 'Plugin Development' started by 87pen, Dec 11, 2015.

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

    87pen

  2. Offline

    Zombie_Striker

    It has all the parts needed, but this way is better:
    Code:
    ItemStack bottle = new ItemStack(Material.EXP_BOTTLE, 1);
    //This allows you to make modifications to lore displayname and anything else
    
    ShapedRecipe expBottle = new ShapedRecipe(bottle).shape("*%*","%B%","*%*").setIngredient('*', Material.INK_SACK, 2).setIngredient('%', Material.SUGAR).setIngredient('B', Material.GLASS_BOTTLE);
    getServer().addRecipe(expBottle);
     
    87pen likes this.
  3. Offline

    87pen

    thanks a lot.
     
Thread Status:
Not open for further replies.

Share This Page