How to I create custom item?

Discussion in 'Plugin Help' started by Alican Çopur, May 4, 2019.

  1. Alican Çopur

    Alican Çopur Creeper

    Messages:
    2
    Hello, how to I create a custom item? And how to I set texture it?
     
  2. GamakCZ

    GamakCZ Zombie

    Messages:
    225
    GitHub:
    GamakCZ
    I don't think that's possible to create new item. However you can change texture of existing item using resource packs.
     
  3. BayAlper10

    BayAlper10 Spider

    Messages:
    14
    GitHub:
    BayAlper10
    PHP:
    #The id of the item to create
    $id 700;
    $name "New Item Name";
    #If you want to override a item set to true
    #Do it on the OnEnable() or where you want
    ItemFactory::registerItem(new Item($id,0,$name), false);
    #To see that item in the inventory creative
    Item::addCreativeItem(Item::get($id));
     
  4. Destroyer57

    Destroyer57 Zombie

    Messages:
    259
    This doesnt show texture on it
     
  5. Wertzui123

    Wertzui123 Creeper

    Messages:
    5
    GitHub:
    wertzui123
    But it adds a new item (without special texture)?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.