Adding Attributes to an Item

Discussion in 'Plugin Development' started by mrCookieSlime, Oct 4, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    mrCookieSlime

    Hi, I know that adding the new Attributes isn't possible with Bukkit itself.
    But I'm bad in NMS code stuff, so can anyone please tell me how I can add Attributes to an ItemStack, basicly my goal is to make an Item, which after a specifiec amount of kills increases it's damage, so I basicly wanna get the Attribute generic.attackDamage and increase it's value by 1.
    So I basicly wanna know how to get and add Attributes to an ItemStack
     
  2. Offline

    adam753

    This should be possible without using NMS. Check out Bukkit's Metadata API.

    - Unless you mean adding enchantments, in which case that would be even easier.
     
  3. Offline

    GaaTavares

  4. Offline

    mrCookieSlime

    adam753
    I couldn't find anything that'd help me there

    GaaTavares
    I know that, but I was looking for a different way
     
Thread Status:
Not open for further replies.

Share This Page