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

Solved How do you get the pos of a block

Discussion in 'Help' started by esh123cookie, May 1, 2020.

  1. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    How do you get the position of a block?

    This is the issue I get when I try using getPosition();
    "Call to undefined method pocketmine\block\Bricks::getPosition()"

    How do I fix this?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Block already extends position, just use it as if it was one.
     
  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.