Development Assistance Armor stands faster than player?

Discussion in 'Plugin Help/Development/Requests' started by goodstuff20, Jun 9, 2015.

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

    Ive been having a rough time looking for the armor stand velocity or any fix. I havent found anything for nms & craftbukkit armorstands src isnt rly helping

    Anyways the armorstands seem to fly a bit faster than the player when I have a steady velocity i.e location.getDirection for both player & armor stand (just want the armorstand to follow me)

    Cheers guys
  2. Offline


    Do you mean Entity#getVelocity()? Because Location#.getDirection() is just what direction the entities head is looking. A player can stand still, yet if he looks up the getDirection's Y will be 1.

    Use .Entity#getVelocity(); instead of where the entity is looking.
  3. @Zombie_Striker haha tru thanks... but same result (with custom/nms fallingblocks ignoring gravity as well as armor stands) :/

    any other ideas?
  4. Online

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
  5. Offline

    I Al Istannen

    @goodstuff20 What do you want to do? Would teleporting be an option?
  6. No sorry - im trying to move blocks smooth (I.e. in hypixel galaxy war or so) (make them follow a player)
  7. Offline

    I Al Istannen

    @goodstuff20 Calculate the vector to the players location, multiply it with a speed you want, and apply that to the block. The block will now follow you. I make flying slimes follow me the same way for a quidditch plugin. And that is smooth.
    Vector vec = play.getLocation().toVector().subtract(slime.getLocation().toVector());
    That will be the vector from the slime to the player.
    goodstuff20 likes this.
Thread Status:
Not open for further replies.

Share This Page