Solved Make minecart travel along rail when players are near it

Discussion in 'Spigot Plugin Development' started by Xsm0deus, Mar 22, 2020.

  1. Hi, I want to make a game like escort where you escort a minecart from point A to point B, so I'm wondering where to start from to get a minecart to move along a rail by itself when players are in the radius. Any ideas?
  2. Get entities near players.
    Check entity type is minecart.
    minecartEntity.setVelocity(new Vector(x, 0, z))
  3. thanks