Adding names / holograms above zombies

Discussion in 'Spigot Plugin Development' started by NaJated, May 28, 2015.

  1. I'm asking for a bit of help to get steard in the right direction. I want to make each mob / zombie or whatever have a name when I spawn it e.g. spawnEntity but with a name a bit like http://www.spigotmc.org/resources/itemholo-original.3838/ but for mobs and then do something different according to the mob's 'name'
     
  2. Inkzzz

    Resource Staff

    Spawn a Armour stand, set custom name, make the custom name visible, then make the armour stand invisible.
     
  3. If you are on 1.8 do what @Inkzzzmc said, if not then search for HologramAPI on @libraryaddict github.
     
  4. Or what you can do is catch the EntitySpawnEvent or something like that, and just change the entities name from that.
     
  5. Can't i just use holographic displays?
     
  6. Inkzzz

    Resource Staff

    It's really simple to do the armour stands, and saves time!
     
  7. but don't I have to teleport I every time mob moves?
     
  8. Inkzzz

    Resource Staff

    If the mobs always moving, just set a custom name?
     
  9. Inkzzz

    Resource Staff

    or set the armour stand passenger of the mob?
     
  10. Custom names as of 1.8 are no longer Visible in the sense they used to be. You have to be right next to the entity and targeting it. (as if the CustomNameVisible flag is not set at all)
     
  11. I k I'll just do whay inkzzz says tho. Thanks a ton!

    @Inkzzzmc can you help tomoz ?
     
  12. Inkzzz

    Resource Staff

    Sure, and you're welcome.