Add attributes to items

Discussion in 'Plugin Development' started by Kitt3hGFX, Jul 29, 2014.

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

    Kitt3hGFX

    Code:java
    1. ItemStack iStack = new ItemStack(Material.ENDER_PORTAL, 2304);
    2. PlayerInventory playerInv = player.getInventory();
    3. playerInv.clear();
    4. playerInv.addItem(iStack);


    Is there a simple way for me to add an attribute to the item? For example, I just want the player to receive a full inventory of a -speed item, so the player is frozen. I'd rather use this than potions, since it can only be removed by dropping the item, and I can disable that.
     
  2. Offline

    Kitt3hGFX

    Honestly, is just a generic question. I just wanna know how to add attributes to items :)
     
  3. Offline

    Totom3

Thread Status:
Not open for further replies.

Share This Page