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

Custom Item

Discussion in 'Development' started by Vincent, Feb 3, 2018.

  1. Vincent

    Vincent Silverfish

    Messages:
    16
    GitHub:
    vincent
    Im making a custom item... I want to use a preexisting item as its texture but want it to have a custom id how do i go about this
     
  2. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    PHP:
    $item Item::get(111); // gets stone with a meta of 1
    $player->getInventory()->addItem($item); // gives player the stone
     
    xXNiceAssassinlo YT likes this.
  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.