Hologram lines

Discussion in 'Plugin Development' started by Daap, Aug 3, 2018.

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

    Daap

    Hello, I was looking for some help to create lines in a hologram.

    I started with this:

    private String holoName;

    ArmorStand s = (ArmorStand)p.getWorld().spawnEntity(p.getLocation(),EntityType.ARMOR_STAND);

    s.setGravity(false);
    s.setVisible(false);
    s.setCustomNameVisible(true);

    s.setCustomName(holoName);

    I'm kinda new in Java so I really need help.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Daap Do you have an example?
     
  3. Offline

    Daap

    2018-08-03_16.58.44.png

    I was trying to add a second line without doing "\n" which does not work.
     
    Last edited by a moderator: Aug 3, 2018
  4. Offline

    bowlerguy66

    @Daap That wont work. You're going to have to create another armorstand below the origional and then add your second line to that one
     
  5. Offline

    Daap

    how do I set a location with decimal numbers in the armor stand?
     
  6. Offline

    The_Spaceman

    new Location(world, 10.3D, 11.35D, 234,40D)

    teleport the ArmorStand to that location. just create a new location object with doubles
     
  7. Offline

    Daap

    Thank you.
     
    The_Spaceman likes this.
Thread Status:
Not open for further replies.

Share This Page