How would force a player to move 1 block forward naturally?

Discussion in 'Spigot Plugin Development' started by ryguybuddy, Jun 22, 2015.

  1. Title says it all. I need to be able to force a player to simply press W on their keyboard. I cannot use teleporting at all. Is this possible in any way?
     
  2. Send packets to all other players that there is a player walking forward. Then teleport the player one block. I don't think you can fake it on the main players screen.
     
  3. let the players float over the ground and just give them vectors to move them
     
  4. This is a great idea. I do not need to force the player to see his screen "moving" just himself moving in 3rd person view.

    Would you happen to know how to do that..
     
    #4 ryguybuddy, Jun 22, 2015
    Last edited: Jun 22, 2015
  5. Just use player.setVelocity() and player.getLocation.getDirection to set their velocity forward. If you want to make them move less or more just multiply the vector by a value