Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public static ItemStack Item_Enchantment(Material Material, int Anzahl, int shortID, String Description, String Displayname) {
  2.  
  3. short s = (short) shortID;
  4. ItemStack is = new ItemStack(Material, Anzahl, s);
  5. ItemMeta meta = is.getItemMeta();
  6. meta.addEnchant(Enchantment.DURABILITY, 0, false);
  7. ArrayList<String> lore = new ArrayList<String>();
  8. lore.add(Description);
  9. meta.setDisplayName(Displayname);
  10. meta.setLore(lore);
  11. is.setItemMeta(meta);
  12. is.removeEnchantment(Enchantment.DURABILITY);
  13. return is;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement