Holograms

Discussion in 'Plugin Development' started by Areoace, Jan 10, 2016.

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

    Areoace

    Is there a good tutorial on holograms/packets on any forums? I've had a good look but can't find any.
     
  2. Offline

    ski23

  3. Offline

    Areoace

    @ski23 That doesn't work anymore, but how do I make them with holograms? I tried doing it once but it just didn't spawn. Do you have a link to a thread? Maybe I did something wrong.
     
  4. Offline

    ski23

    The closest thing I could find to a tutorial was here:
    https://bukkit.org/threads/1-8-holograms.317702/#post-2852598
    But, I know that to make a hologram you basically need to make an invisible armor stand with the text as setCustomName(). That is how Hypixel, Mineplex, and most other big servers do it.
     
  5. Offline

    Areoace

    @ski23 I guess so, I just don't know why mine didn't work when I tried it. I probably forgot to do something last time. I'll get back to you, thanks for the help bro.
     
  6. Offline

    ski23

    Try it again. If it still doesnt work, post your code and I'll take a look at it.
     
  7. Offline

    Areoace

    @ski23 I want to be able to have a slime with the hologram as its passanger then mount the slime with the hologram as its passanger onto an entity. Is it possible?

    Code:
    ArmorStand hologram = (ArmorStand) player.getWorld().spawnEntity(player.getLocation(), EntityType.ARMOR_STAND);
    
    hologram.setCustomName(chatcolor + special.toString() + text + "");
    
    hologram.setCustomNameVisible(true);
    
    hologram.setVisible(false);
    
    
    Slime slime = (Slime) player.getWorld().spawnEntity(player.getLocation(), EntityType.SLIME);
    
    slime.setSize(0);
    
    
    
    mount.setPassenger(slime);
    
    slime.setPassenger(hologram);
     
  8. Offline

    ski23

    I don't see why not. On Mineplex and Hypixel, all of the entities are names by an armor stand riding the entity.
     
  9. Offline

    Irantwomiles

    @Areoace pretty sure the author of Holograms has a API. not sure doe
     
  10. Offline

    Areoace

    @Irantwomiles I found a fix sorry for the late reply. I've just gotta find a way to keep it attatched to a mob if possible but for now it works.
     
  11. Offline

    Irantwomiles

    Oh didn't see the mob part, sorry
     
    Areoace likes this.
  12. Offline

    GamerzKing

    Actually, this isn't true at all. Mineplex and Hypixel both use their own custom methods, and their own custom hologram classes hat don't require armor stands. They use packets to send the packets, for individual holograms, and so do most large networks.
     
  13. Offline

    mcdorli

    Actually, no, they really use packets, but they just send a spawn packet to every player. There is no packet. To display a hologram, nor bossbar.
     
  14. Offline

    GamerzKing

    Well, that's what I meant. I didn't mean a "hologram" packet.
     
  15. Offline

    mcdorli

    Then yes, you're right.
     
  16. Offline

    AdityaTD

    +1
     
  17. Offline

    ski23

    @GamerzKing @mcdorli
    Actually, go on Mineplex or Hypixel with a mod that allows you to see invisible entities and you will see that every hologram is on top of a armor stand.
     
  18. Offline

    mcdorli

    A hologram can't be on top of an armor stand, a hologram is the armor stand's display name
     
  19. Offline

    ski23

  20. Offline

    GamerzKing

    Maybe on Hypixel, but there is proof that is not the case, by Mineplex's leaked code.
     
  21. Offline

    ski23

    @GamerzKing Mineplex uses armor stands as well. Go on with a invisible entities client. When the Mineplex code was leaked, they were not on 1.8 aka armor stands were not an option.
     
  22. Offline

    GamerzKing

    The code was from August. 8 since June or July.
     
  23. Offline

    ski23

  24. Offline

    mcdorli

    @ski23 @GamerzKing In 1.7, you simply needed a normal entity, most of the devs used slime because it's resizable, in 1.8, you can't see the custom name of a mob, excepz if you look at it directly, or it is an armor stand.
     
  25. Offline

    ski23

    Exactly. ^
     
  26. Offline

    Triviumist

    thanks all you guys for aswering on this post. i found all the information i need
     
Thread Status:
Not open for further replies.

Share This Page