NNOF

Untitled

Jul 9th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. @EventHandler
  2. private void addRecipies(){
  3. ItemStack is = new ItemStack(Material.POTION);
  4. ItemMeta im = (ItemMeta) is.getItemMeta();
  5. im.setDisplayName(ChatColor.AQUA + "Mikstura teleportacjii");
  6. is.setItemMeta(im);
  7. ShapedRecipe POTKA = new ShapedRecipe(new ItemStack(Material.POTION)).shape("%#%", "%$%", "%#%").setIngredient('#', Material.ENDER_PEARL).setIngredient('$', Material.POTION).setIngredient('%', Material.GOLD_INGOT);
  8. ShapelessRecipe recipe = new ShapelessRecipe(is).addIngredient(Material.POTION).addIngredient(Material.ENDER_PEARL).addIngredient(Material.GOLD_INGOT);
  9. getServer().addRecipe(POTKA);
  10. getServer().addRecipe(recipe);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment