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

addEntityMovement

Discussion in 'Development' started by #A6543, Jun 14, 2017.

  1. #A6543

    #A6543 Zombie

    Messages:
    267
    I use this code to move a entity. But my entity always gets invisible after the movement. How can I fix that?
    PHP:
    $this->level->addEntityMovement(/*THE NEW POSITION*/);
     
  2. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
  3. #A6543

    #A6543 Zombie

    Messages:
    267
  4. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
  5. #A6543

    #A6543 Zombie

    Messages:
    267
  6. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
  7. #A6543

    #A6543 Zombie

    Messages:
    267
  8. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    You have to learn how the code works. Simply copy pasting code is not going to work. For the ender dragon, simply set the yaw += 180.
     
  9. #A6543

    #A6543 Zombie

    Messages:
    267
    Ok thanks. Do I need to update the position if I teleport the pet? I don't know what I'm doing wrong :/
     
  10. #A6543

    #A6543 Zombie

    Messages:
    267
    What would be the best way to ride a entity? If I use the code from the pmmp API (boat) it crashes the game
     
  11. #A6543

    #A6543 Zombie

    Messages:
    267
    Any idea?
     
  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.