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

Solved Make player sit in minecart

Discussion in 'Development' started by Kyd, Jan 19, 2018.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I'm trying to make player sit in minecart, but when I send the packet it's not doing anything. Is action number 2 bad for this? I'm not sure because there is not any documentation :p
    PHP:
    $pk = new SetEntityLinkPacket();
    $pk->link = new EntityLink($minecart->getId(), $player->getId(), 2false);
    $player->dataPacket($pk);
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Solved. Action number 2 is for those who want to do this..
     
    Last edited: Jan 19, 2018
  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.