Solved Giving an item a custom number that you can use

Discussion in 'Bukkit Help' started by Casperrr7, Sep 2, 2021.

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

    Casperrr7

    Hi, I'm making a plugin where u can place a block that opens in inventory, basically, i place a barrel and i want to use it. I want to give all blocks (that u can open) a name and id (so u can link an inventory). Giving it a name isn't hard but I can't find a way to give it some sort of 'custom id'. Thx in advance
     
  2. Offline

    Casperrr7

    I found a solution i added lore and made it invisible
     
    Last edited: Sep 4, 2021
  3. Offline

    chaniloko

    You can get the item with the lore? How did u do it?
    I'm trying to get items for id, but enchanted items I can't take by .getId();
    You think I can get with lore?
     
Thread Status:
Not open for further replies.

Share This Page