1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to I create custom item?

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

  1. Alican Çopur

    Alican Çopur Silverfish

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

    GamakCZ Zombie Pigman

    Messages:
    598
    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 Silverfish

    Messages:
    17
    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));
     
    Taco likes this.
  4. Destroyer57

    Destroyer57 Zombie

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

    Wertzui123 Spider

    Messages:
    11
    GitHub:
    wertzui123
    But it adds a new item (without special texture)?
     
  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.