How to move a minecart

Discussion in 'Plugin Development' started by TheChinski, Oct 14, 2012.

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


    Ok, so I have a load of rails and their co-ords stored in a .yml, and i've set up the plugin so that when the cart comes within 3 blocks of them, they spawn, and when the cart has passed them by, they despawn again. But I needed to get the cart moving forward. But this is my problem.

    I have tried:
    1. Vector facing = nexttrack.getDirection();
    2. PlayerButtonEvent.minecart.setVelocity(facing);

    Which works along straights, but the cart seems to grind to a halt whenever it gets to a corner or upwards slope. I have tried various different solutions from around the place, but none of them seem to work... :(

    I'd really appreciate any help, and please bear in mind i'm fairly new to this! ;)

    C'mon, someone must know how to do this - I've managed to code the whole plugin but I can't get the carts to move x.x


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 29, 2016
  2. Offline


    Im no fan of repetitive bumping, but surely someone must know how to work a minecart...? :confused:
  3. Offline


    A bump for you my friend
  4. Offline


    To the top...
  5. Offline


Thread Status:
Not open for further replies.

Share This Page