HomeJavaModsAttributeAPI
AttributeAPI
Having trouble finding the right code to remove attributes from items? here you go.

First off, this plugin is free. Because it doesn't makes sense to sell it, since it would be leaked. Anyway, I'm going to explain how to use this library.

For example, I have a menu and I want to remove the thing that's under your lore (see here) to remove it, you can use this code:
Code (Text):
public void open(Player paramPlayer) {
        Inventory inventory = Bukkit.createInventory(null, 3 * 9, "Inventory");
        {
            ItemStack itemStack = new ItemStack(Material.DIAMOND_SWORD);
            ItemMeta itemMeta = itemStack.getItemMeta();
            itemMeta.setDisplayName(ChatColor.GREEN + "You item name!");
            List<String> lore = new ArrayList<>();
            lore.add("  ");
            lore.add(ChatColor.GRAY + "Some lore here");
            lore.add(ChatColor.GRAY + "more here");
            itemStack.setItemMeta(itemMeta);
            inventory.setItem(15, AttributeAPI.removeAttrbutes(itemStack));
        }
    }
This will create an item and remove the attribute lore. See example here
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

AttributeAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11. Downloaded 175 times (via Spigot). Download it and open it directly in the game.

Explore more