Give item

Discussion in 'Plugin Development' started by AddventureTime, Nov 6, 2020.

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

    AddventureTime

    Hello does anyone know the code to give items where you can specify: the item name, the enchantment, the lore and where it should be stored (inventory location)?

    and I don't need any unnecessary comments because I don't know!

    Thanks. [cake]
     
  2. Offline

    Kars

    1. Create ItemStack with custom ItemMeta (google it)
    2. player.getInventory().addItem(<slot number>, item);
    3. player.updateInventory()
     
  3. Offline

    AddventureTime

    Can u make a example please?
     
  4. Offline

    timtower Administrator Administrator Moderator

    @AddventureTime He literally said how you should do it.
    What don't you get?
     
    Kars likes this.
Thread Status:
Not open for further replies.

Share This Page