Set Yaw of minecart

Discussion in 'Plugin Development' started by olsyboy, Aug 19, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    olsyboy

    I want to set the direction this minecart is facing:
    Code:
            minecart.setYaw(28f);
            minecart = worldName.spawn(rideLocation, Minecart.class);
    I looked on the minecart spigot docs, but could not find anything about direction.

    This does not work. (setting the yaw of the location)
     
  2. Offline

    Zombie_Striker

    @olsyboy
    Pitch and Yaw are not applied to Minecarts.
     
  3. Offline

    olsyboy

    So do I change the yaw of the location? Because that does not work either

    The minecart always faces negative/positive x

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 11, 2016
  4. Offline

    Zombie_Striker

    @olsyboy
    If you want to change the direction of the minecart, you cant use pitch and yaw.

    Try getting the minecarts location, get its direction, and set it's direction(vector) to that of where you want it to be facing.
     
  5. Offline

    olsyboy

    So how do I do it?
     
  6. Offline

    drew6017

    Am I the only one that noticed he tried setting the yaw before assigning the variable?
     
Thread Status:
Not open for further replies.

Share This Page