Solved [1.9] Moving a ArmorStand.

Discussion in 'Spigot Plugin Development' started by tokyojack, May 15, 2016.

  1. Hello all!
    So, i'm just trying to make an armor stand move, but its not liking me and not moving. :(
    Heres a what I got:
    Code (Text):

            this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {

                @Override
                public void run() {
                    stand.setVelocity(new Vector(stand.getVelocity().getX() + 1, 0 , stand.getVelocity().getZ() + 1));
                }

            }, 0, 20);
               
    Corrections/additions are very much welcomed!
     
  2. Never mind! Just figured it out. For people who are looking for this, this was my mistake:
    Code (Text):
    stand.setGravity(false);
    You have to set it to true or just remove it:
    Code (Text):
    stand.setGravity(true);
     
  3. Great, please change the prefix to solved, so other dont reply to your thread.
     
  4. Thanks, almost forgot!