1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to fix an armor_stand entity nametag?

Discussion in 'Development' started by LewBr, May 25, 2018.

  1. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    Hello everyone,

    Recently i have checked how to spawn an Projectile Entity "Armor Stand" based with code of @Muqsit says in this thread: (https://forums.pmmp.io/threads/is-there-away-to-make-throwing-sword.5797/#post-51683) and getting Slapper some nbt tags by @jojoe77777 code, but i have a problem setting an Armor Stand nametag, i have tryed everything but when i spawn the nametag it's not displaying, only if i look with the cursor on the entity, but i don't want that and i have already tried to do that:
    PHP:
    $entity->setNameTagVisible(true);
    $entity->setNameTagAlwaysVisible(true);
    but doesn't works, any idea how can i do that?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    #BlameMojang
    The DATA_FLAG_ALWAYS_SHOW_NAMETAG flag doesn't work at all since 1.2 or something.

    PocketMine's FloatingTextParticle class had to switch from using AddEntityPacket to AddPlayerPacket due to this issue.
     
  3. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    soo.. it's impossible to fix that? omg #BlameMicrojang
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.