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

Help!

Discussion in 'Facepalm' started by caibin, Jul 23, 2017.

  1. caibin

    caibin Creeper

    Messages:
    2
    GitHub:
    caibin
    public function onMove(PlayerMoveEvent $event) {
    $player = $event->getPlayer();
    $block = $player->getLevel()->getBlock($player->floor()->subtract(0, 1));
    These lines of code, how much range is detected?
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    $block variable is checking block under player
     
  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.