Scoreboard below_name for entities

Discussion in 'Plugin Development' started by Lickymoo, Sep 6, 2019.

  1. Offline

    Lickymoo

    Hey guys, So previously i had health bars within the entity's customName eg: (level) Name (h/mh). But due to in continuity with the citizens library i had to move the health bar to a scoreboard that was below_name. But unfortunately i cannot apply scoreboards to Entities, so what is an alternative to displaying a healthbar below the name? I was thinking make an armour stand, which is mounted on the entity and rename that to the entity's custom name, and make the actual entity's custom name their health bar but the armourstand's nametag is very offset on the y axis.
    Does anyone have ideas for other methods?
     
  2. Offline

    DerDonut

    I could imagine using other entities than armor Stands to gain a different y offset. Witherskulls or endermites are pretty small, just give it a try
     
  3. Offline

    Lickymoo

    I just tried doing, but the passenger hides the actual entitiy's custom name even if is set to visible
     
  4. Offline

    DerDonut

    Hm okay,
    then you probably have to spawn an armorStand and teleport it to the entity every tick..it's quite inefficient and I don't know how it looks but yeah try it
    Also, I found the MultiLineAPI which seems to solve your issue but requires PacketEntityAPI and ProtocolLib to work
     

Share This Page