Solved Make armorstand float in air using packets? (flying nametag)

Discussion in 'Plugin Help/Development/Requests' started by Unica, May 8, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Unica

    Good day,

    I'm trying to recreate a hologram using invisible armor stands; however, when I spawn the second one
    right under the first, it falls to the ground (because I spawned it in the air duhh).

    Is there a way to override some method to keep the armor stand in the air?

    Code:
    public class Nametag extends EntityArmorStand{
       
        public Nametag(org.bukkit.World world){
            super(((CraftWorld)world).getHandle());
           
        }
       
        public void spawn(Location loc){
           
        }
       
    }
     
  2. Offline

    mine-care

    @Unica mabe by setting the velocity of an invisible skull to 0 and then setting it as passenger :p
    (the trick was firstly sugested by @ChipDev , credit to him)
     
    ChipDev and Unica like this.
  3. Offline

    Unica

    @mine-care

    Would I need to override this by extending EntitySkull ?

    Or would I simply use spawnEntity(loc, EntityType.SKULL); ?
     
  4. Offline

    mine-care

    @Unica No and no xD
    you dont need to override the nms entity, you need to launch a projectile wither skull and set its velocity to 0
    @ChipDev has a resource and further info in the resources sectionm have a look.
     
  5. Offline

    Unica

    @mine-care
    Omg, haha. Thanks.
    I was trying to set the velocity to zero, but I was changing it from the Armor stand haha.

    Thanks man!
     
  6. Offline

    mine-care

    @Unica :D
    Anytime :- )
    If you need further help dont hesitate to ask.
     
  7. Offline

    ChipDev

    Yeah! But I thought there was a method to override velocity / flotation..
     
  8. Offline

    I Al Istannen

    El_Chupe and ChipDev like this.
  9. Offline

    ChipDev

Thread Status:
Not open for further replies.

Share This Page