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

Sign

Discussion in 'Development' started by fevio, Mar 27, 2020.

  1. fevio

    fevio Spider Jockey

    Messages:
    33
    Is it possible to create clickable signs?
     
  2. Xenophilicy

    Xenophilicy Spider Jockey

    Messages:
    31
    GitHub:
    xenophilicy
    use PlayerInteractEvent:

    PHP:
    use pocketmine\block\Block;
    use 
    pocketmine\event\player\PlayerInteractEvent;

    public function 
    onSignClick(PlayerInteractEvent $event){
        if(
    $event->getBlock()->getID() == Block::WALL_SIGN){
            
    // put crap here
        
    }
    }
     
    fevio 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.