Solved Item Attributes ( Custom )

Discussion in 'Spigot Plugin Development' started by MrFrozen, Jun 8, 2016.

  1. Hey,

    Im wondering if I can set a custom item arrtribute to a item that will not been shown as a Lore. Is this possible? So yea how? Cause I couldnt really find it
  2. I do use it but how to set a Item Attribute, Dont get it.

    I want to add a custom Item Attribute to this:
    Code (Text):
            ItemStack item = new ItemStack(Material.IRON_FENCE, 1);
            ItemMeta meta = item.getItemMeta();
            meta.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD + "=>");
            return item;
  3. MiniDigger


    rip, the ItemStack is not metadatable ^^
    my bad, sorry.
  4. Is there any way to do this?
    Im familiar with BukkitAPI but not that familiar.
  5. Have you tried searching on google?
  6. Hey yea I did! But Im not a Minecraft nerd since Im normally a C# / PHP developer and I think for some1 that only played MC ages ago I came quite for if you saw what I made. So I didnt know about NBT. I will take a look at it and see if I understand that.

  7. > Asks for help
    > insults developers by calling them "Minecraft nerds"

    10/10 logic
  8. use item attributes api resource. you can find it on spigot
  9. I said Im not a Minecraft nerd, so I try to do say Im more a nerd in C# / PHP so it isnt a direct insult to any Minecraft dev since Im also one. I try to say I do not know a lot of Minecraft and related classes. But I forgot a lot of people in the Minecraft community are young so I forgot to explain it.

    My bad my fault. No worries bro