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

i need help

Discussion in 'Facepalm' started by KYUMA, Aug 29, 2017.

  1. KYUMA

    KYUMA Silverfish

    Messages:
    16
    GitHub:
    Ky75
    if player Eat steak
    thanks
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    use PlayerItemConsumeEvent
     
  3. Enes5519

    Enes5519 Spider Jockey

    Messages:
    28
    GitHub:
    Enes5519
    PHP:
    public function eat(PlayerItemConsumeEvent $e){
            if(
    $e->getItem()->getId() == Item::STEAK){
                
    // code
            
    }
        }
     
  4. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    What's the problem? What have you tried so far? Have you read this:
     
    Muqsit, Rysieku and sharletsings123 like 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.