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

Solved More Edible Items

Discussion in 'Development' started by DonSpiderLord, Jan 22, 2020.

  1. DonSpiderLord

    DonSpiderLord Silverfish

    Messages:
    15
    Hi,
    I was wondering if it was possible to make more edible items to replace all the unneeded stuff like rails, levers etc.? I already have the textures for the items I just need to make them edible, fill the hunger bar and to not be placable.

    Big Thanks,
    Don
     
    DaisukeDaisuke likes this.
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    Yep, use completedusingitempacket to start eating. If you register this item as class with Consumable interface, pmmp will automatically handle it.
     
    jasonwynn10 and DaisukeDaisuke like this.
  3. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    .... I hope you can cancel blockplaceevent
     
    jasonwynn10 and DaisukeDaisuke like this.
  4. DonSpiderLord

    DonSpiderLord Silverfish

    Messages:
    15
    Got it working, now I can eat rails with banana texture :)
    Thanks!
     
    DaisukeDaisuke 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.