Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- private void addRecipies(){
- ItemStack is = new ItemStack(Material.POTION);
- ItemMeta im = (ItemMeta) is.getItemMeta();
- im.setDisplayName(ChatColor.AQUA + "Mikstura teleportacjii");
- is.setItemMeta(im);
- ShapedRecipe POTKA = 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.GOLD_INGOT);
- getServer().addRecipe(POTKA);
- getServer().addRecipe(recipe);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment