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

Jumpscares on Pocketmine

Discussion in 'General discussion' started by czharinaaaa, Dec 26, 2021.

  1. czharinaaaa

    czharinaaaa Creeper

    Messages:
    1
    GitHub:
    ohitszenqi
    Is making jumpscare is possible on pmmp?
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    Fear is a subjective thing. Your question makes no sense.
     
    minijaham likes this.
  3. BroGuysGay

    BroGuysGay Creeper

    Messages:
    2
    Code:
    public function onMove(PlayerMoveEvent $event){
        $player = $event->getPlayer();
        if($event->getTo()->getX() === $x){
          if($event->getTo()->getY() === $y){
            if($event->getTo()->getZ() === $z){
              $player->addEffect(new EffectInstance(Effect::getEffect(2), 10*20, 2, false));
              $player->addEffect(new EffectInstance(Effect::getEffect(15), 10*20, 2, false));
            }
          }
        }
      }
    can use PlayerMoveEvent so that when the player goes to a position addEffect() to the player
     
  4. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    With some help from Addon: yes
     
  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.