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

Minecart Entity Rotation

Discussion in 'Development' started by Eren5960, Jul 11, 2018.

  1. Eren5960

    Eren5960 Spider Jockey

    Messages:
    27
    GitHub:
    Eren5960
    How change Minecart Rotation??
     
  2. Driesboy

    Driesboy Spider Jockey

    Messages:
    34
    GitHub:
    driesboy
    By changing the yaw of the minecart.
     
  3. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Lol, he did not know how to do that, he needs the code...
    Here:
    PHP:
    /** @var MineCartEntityClass $minecart */
    $minecart->setRotation(mt_rand(1360), 90);
     
  4. Eren5960

    Eren5960 Spider Jockey

    Messages:
    27
    GitHub:
    Eren5960
    LoL, I did already know
     
  5. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Then why do you ask?
     
    RyanShaw likes this.
  6. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Oh my god why are u using mt rand
     
  7. Eren5960

    Eren5960 Spider Jockey

    Messages:
    27
    GitHub:
    Eren5960
    So I did not have to learn to do it with yaw.
     
  8. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    i am crying with these replies :confused::D:D
     
  9. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    To show him which values can be set there. From zero to three hundred sixty.
     
  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.