Move minecart to coordinates

Discussion in 'Spigot Plugin Development' started by Dr_Babyface, May 26, 2016.

Thread Status:
Not open for further replies.
  1. Hi,

    I'm working on a little project with minecarts. A small part of it is that a minecart moves from its current position to coordinates. What I would like to achieve is that if you, for an example execute a command, the minecart first turns into the right direction towards those coordinates and then moves to it(Without rails).

    I've already experimented with setVelocity, I was new with vectors so I followed this tutorial https://bukkit.org/threads/tutorial-how-to-calculate-vectors.138849/ . It helped me understanding vectors, but this wasn't enough for what I needed.

    I haven't worked much with minecarts yet so please don't be angry if I may say something stupid.
    I'm not asking for a whole code if I just could get a small part into the right direction that would be nice!
    Thanks for any help.
     
  2. A minecart is an entity, so maybe you could add/edit the pathfinding goals using NMS? Not sure if this works for minecarts though.
     
  3. That is the exact same link I've already tried to use(Read my post).

    Do you know more about that? Like how I can use it?
     
Thread Status:
Not open for further replies.