Wither skeleton Spawn, float & rotate Help

Discussion in 'Spigot Plugin Development' started by TheSecretCandy, May 16, 2015.

  1. Hey,

    Does somebody know how to spawn an invisible rotating (by its own) wither skeleton and let it float 4/5 blocks above a player head?

    I want to make a (by it's own) rotating mob thats floating 4/5 blocks above your head and when you move, it moves to :)
  2. You would either have to make a runnable which constantly sets the mobs, location, pitch and yaw, or you could NMS, which is a bit a more advanced, but easily learnable.
  3. with a runnable the mob goes down by laggy minecrafters, i don't know what NMS is :p :(
  4. NMS is basically the characteristics of the mob.

    There are plenty of tutorials you can use ;)!
  5. If you don't know how to spawn a wither skeleton, it's something like:

    public static void spawnWitherSkeleton(Location loc){
    Skeleton skeleton = (Skeleton) loc.getWorld().spawnEntity(EntityType.SKELETON, loc);

    This probably isn't exactly the code, but it should be pretty similar to this. I wrote this on my phone.

    I think NMS would be the best way to make it float/rotate.