Solved 1.5 Name tags

Discussion in 'Plugin Development' started by MissGaby, Mar 20, 2013.

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

    MissGaby

    Hey peeps,
    I have a question regarding the new 1.5 update. I'd like to create wait points (like COD etc...), but so far I couldn't figure out how to do this. I know you can give mobs custom names, but then you have the animal sticking out of the block (I'd like to have a block with a name tag on top of it). So can you give arrows name tags? That'd be great! Please let me know if there are other options than spawning in a mob and having it sticking out of the block (or hide the mob). Thank yaw :D

    - Gaby

    Anyone? On another note: I found this picture:
    [​IMG]
    Maybe this will help? I'm looking for a way to do this.

    Thank you

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  2. Offline

    MCForger

    Looks interesting...I could not find any packet way of doing this. Then again I could have missed it =P
    nisovin
    Want to take a look at this?
     
  3. Offline

    HeyShibby

    It could possible be a chicken or a small mob spawned in the block with an invisibility potion.
     
  4. Offline

    nisovin

    It doesn't seem to be possible to add the nameplate to any entity that is not a LivingEntity. The client just ignores it.
     
  5. Offline

    MCForger

    Thats exactly what I was thinking. It is possible to make your own entity that has a player name tag but no texture and then spawn it?
     
  6. Offline

    nisovin

    You can't just make your own type of entity, the client won't know what it is.
     
  7. Offline

    skipperguy12

    nisovin
    And then it'd be invisible, right?
    Or would it just crash the client?
     
  8. Offline

    chasechocolate

    I think they may have spawned some sort of entity, made it invisible, and then set it's tag there. IDK if making it invisible will remove the tag, though.

    EDIT: Just read what you said, but afaik that is the only way you can achieve this currently.
     
  9. Offline

    MissGaby

    Uhm, giving an invisibility potion to the mob removes the name tag. Any other solutions? Thanks for the help! Oh, and spawning in a baby mob, makes the name tag 50% visible (the other part sticks in the block).
     
  10. Offline

    wacossusca34

    This is an interesting idea. You could spawn a small entity, like a silverfish, which could fit inside of a block, remove it's pathfinding, and make it remain glitched inside of the block. Then the entity would practically remain out of sight, inside the block.

    I might look into this later.
     
  11. Offline

    Cjreek

    Which entities can have nametags? Because maybe you could use item entities (that don't decay?).
    A silverfish would make annoying noises I guess..
     
  12. Offline

    fireblast709

    LivingEntity#setCustomName(String), LivingEntity#setCustomNameVisible(true). So LivingEntity and nothing else :p
     
  13. Offline

    MissGaby

    Do you maybe know how to accomplish this goal? I know how to set a custom name to an entity and such, just not how to make this actually work (if you know what I mean :/)
     
  14. Offline

    MCForger

    MissGaby
    I made this work except I used a custom bat entity and overrided every function. Solo purpose was just to show a name. But then on reload it became a real bat. Also we're did you get this picture from? I would like to inspect the server and see how they did it.
     
  15. Offline

    Barinade

    Save the location where it's needed, remove the bat when the server stops, respawn it when it reloads (with the saved location)
     
  16. Offline

    MCForger

    That's what I ended up doing forgot to mention that
     
  17. Offline

    fireblast709

    MCForger Why did you need a custom bat entity?
     
  18. Offline

    Rprrr

    fireblast709
    In order to override all of its methods with empty methods, so it won't do anything.
     
  19. Offline

    MissGaby

    Got it from DungeonRealms...
     
  20. Offline

    turqmelon

    I've seen how DungeonRealms does it. At least, before 1.5. If you broke a chest that wasn't yours, you'd see a player entity spawned within the ground, giving the appearance that the chest had a nametag.

    MissGaby
     
  21. Offline

    MCForger

    That is very cleaver
     
  22. Offline

    MissGaby

    Thank yaw! I got it working now... Yay
     
  23. Offline

    fireblast709

    mmk forgot about that :3
     
  24. Offline

    xigsag

    I get tonnes of lag when i join dungeonrealms, so I used that to my advantage and broke one of the named chests.
    True enough, player entity. Little creepy though D:
     
Thread Status:
Not open for further replies.

Share This Page