Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static ItemStack Item_Enchantment(Material Material, int Anzahl, int shortID, String Description, String Displayname) {
- short s = (short) shortID;
- ItemStack is = new ItemStack(Material, Anzahl, s);
- ItemMeta meta = is.getItemMeta();
- meta.addEnchant(Enchantment.DURABILITY, 0, false);
- ArrayList<String> lore = new ArrayList<String>();
- lore.add(Description);
- meta.setDisplayName(Displayname);
- meta.setLore(lore);
- is.setItemMeta(meta);
- is.removeEnchantment(Enchantment.DURABILITY);
- return is;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement