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

Setting mobs heigth & Mob AI

Discussion in 'Development' started by RoyalMCPE, Apr 16, 2017.

  1. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    I have been looked all over the forums for 2 days, and I can't get the mob to move. I also want to know if it's possible to set a mobs height.
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    This will set an entity's height
    $entity->setScale(float larger than 0);

    To make a mob move, you have to add movement calculations to the onTick() function
     
  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.