1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do you add a 'tag' above a display name?

Discussion in 'Skript' started by McAcrylic, Mar 9, 2019.

  1. M

    McAcrylic Active Member

    Joined:
    Oct 21, 2017
    Messages:
    42
    Likes Received:
    0
    I am looking for something like this whereby I can add multiple lines above the player's name.

    No, armor stands do NOT work because teleporting them directly to the entity have a slight delay, unless there is someway to resolve that, armor stands will not work.

    [​IMG]

    The second question is, how do I add it to an NPC so that it will be like a health bar for 'offlinme players'. Using the scoreboard display health only displays 0 health.

    [​IMG]

    How do I make it so it displays the ACTUAL health of the NPC?
     
  2. Yodaylay22

    Yodaylay22 Member

    Joined:
    Jul 24, 2018
    Messages:
    15
    Likes Received:
    1
    I do not have the code here now, but I'll tell you what you have to do!

    you will need to put armor stands without gravity and with her name showing the text, bet this you must teleport to the player every 1 tick !

    for the player will appear a small delay for other people no, I have already tested with this and works very well

    I recommend a while system that verifies if the player is online and is pulling the armor stand for him, and soon in the line you already delete the armor stand

    I find an old print is exactly what you have to do !

    upload_2019-3-11_3-4-22.png
     
  3. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    777
    Likes Received:
    50
    Medals:
    You could try an armorstand riding the player, it would probably be less laggy
     
  4. M

    McAcrylic Active Member

    Joined:
    Oct 21, 2017
    Messages:
    42
    Likes Received:
    0
    Your idea sounds interesting. How would you go about doing it?
     
  5. Vrganj

    Vrganj Well-Known Member

    Joined:
    Dec 1, 2018
    Messages:
    62
    Likes Received:
    1
    I did a little testing, and I couldn't get the armor stand to ride the player, I think it's got something to do with the size of the armor stand, tried small, normal, with and without marker, all would be either too low or too high. I think you should experiment with other mobs with different sizes. {Silent:1,Invisible:1,CustomName:""Hello"",CustomNameVisible:1} - You should use something like this, but modified.
    --- Double Post Merged, Mar 12, 2019, Original Post Date: Mar 12, 2019 ---
    Well, I got it to ride the player, but the name was either too high or too low.
     
  6. novastosha

    novastosha Active Member

    Joined:
    Jan 11, 2019
    Messages:
    34
    Likes Received:
    5
    Hey! what addon you used for "add 2 to y cord of {_var}"?
     
  7. Vrganj

    Vrganj Well-Known Member

    Joined:
    Dec 1, 2018
    Messages:
    62
    Likes Received:
    1
    You don't need an addon for that
     
  8. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    777
    Likes Received:
    50
    Medals:
    You don't need an addon, you need to type it the right way tho: coord, not cord
     
  9. novastosha

    novastosha Active Member

    Joined:
    Jan 11, 2019
    Messages:
    34
    Likes Received:
    5
    Lol, I did not notice that
     
  10. M

    McAcrylic Active Member

    Joined:
    Oct 21, 2017
    Messages:
    42
    Likes Received:
    0
    That's fine, Ill do more testings with what you have so far. Mind sending the code?
    --- Double Post Merged, Mar 17, 2019 ---
    Anyone with any idea with code provided?
     
  11. I

    Ierdyr Member

    Joined:
    Monday
    Messages:
    6
    Likes Received:
    0
    There is a plugin named nametag edit It should fix your problem :emoji_slight_smile:
     
  12. M

    McAcrylic Active Member

    Joined:
    Oct 21, 2017
    Messages:
    42
    Likes Received:
    0
    You should read the purpose of this post. It is not what I need, but thanks though.
     
  13. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    692
    Likes Received:
    52
    Generally, people don’t spoonfeed here. I suggest checking the docs (docs.skunity.com)
     
Loading...