Hey ever want to make your own custom crafting recipes! Will today am going to show you how so open up that eclipse and lets get started! But first of all there are 2 kinds of recipes Shapeless and Shaped recipes. I will be showing you only shapeless for today! Making Shapeless Recipes: 1. So hopefully you know the basics already and have your onEnable and onDisable it will be needed and extend JavaPlugin. If you don't how to do that go here. http://wiki.bukkit.org/Plugin_Tutorial#onEnable.28.29_and_onDisable.28.29 . 2. Under onEnable your going to type: Code:java ShapelessRecipe NameOfRecipe = new ShapelessRecipe(new ItemStack( 3. Under that you want to type: Code:java Material.STRING)).addIngredient(Material.WOOL); Alright pay attention here it goes a bit weird. (String) represents the material am going to get. In this case when i put wool anywhere in the crafting table inventory ill get a string back. So as you can see this is backwards. So first its the item you want to get. Then the item your going to use to get the item you want to get. Sorry if its a bit confusing but that's how it works. 4. When your done with that you want to hit return 2 times and then type this: Code:java getServer().addRecipe(THENAMEOFYOURRECIPE); In between the parentheses you put the name of your recipe . 5. Under onDisable you want to put this: Code:java getServer().clearRecipes(); This is to clear the recipe so you people wont dupe. 7. Make your plugin.yml 8. You should have this ready to export with plugin.yml and no errors: Code:java package me.cruz2000; import org.bukkit.Material;import org.bukkit.inventory.ItemStack;import org.bukkit.inventory.ShapelessRecipe;import org.bukkit.plugin.java.JavaPlugin; public class customcrafting extends JavaPlugin{ @Overridepublic void onEnable(){ShapelessRecipe wool = new ShapelessRecipe(new ItemStack(Material.STRING)).addIngredient(Material.WOOL); getServer().addRecipe(wool);} @Overridepublic void onDisable(){getServer().clearRecipes();} } Now your all done If you need help pm! Ill be glad to help you ! Sorry if step 3 was confusing please pm if you need help ill get back to you quickly as possible!
You might want to change the string in your recipe with something else, as people may confuses it with a String (the Java object)