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

Hovered named tag

Discussion in 'Development' started by Mr174, Jan 22, 2020.

  1. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    I thought ive seen this before and i don't know if it was removed because i cant think of the code but wasn't there a way to make it where you had to hover over an NPC to make the name visible? Is there a way of doing this or maybe a way to make the name pop up when the player is a certain amount of blocks away
     
  2. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    PHP:
    $entity->setNameTagVisible(true);
    //This leaves the name tag visible only when the "mouse" is aimed at the entity
    &&
    PHP:
    $entity->setNameTagAlwaysVisible(true);
    //This always makes the nametag visible
     
    HimbeersaftLP and Mr174 like this.
  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.