Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void addRecipies(){
- ItemStack is = new ItemStack(Material.POTION);
- ItemMeta im = (ItemMeta) is.getItemMeta();
- im.setDisplayName("Ender Potion");
- is.setItemMeta(im);
- ShapedRecipe recipe1 = new ShapedRecipe(new ItemStack(Material.POTION)).shape("%#%", "%$%", "%#%").setIngredient('#', Material.ENDER_PEARL).setIngredient('$', Material.POTION).setIngredient('%', Material.GOLD_INGOT);
- ShapelessRecipe recipe = new ShapelessRecipe(is).addIngredient(Material.POTION).addIngredient(Material.ENDER_PEARL).addIngredient(Material.POTION).addIngredient(Material.GOLD_INGOT);
- this.getServer().addRecipe(recipe1);
- this.getServer().addRecipe(recipe);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment