NNOF

aaa

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