SetCustomNamevisible zombie.class

Discussion in 'Plugin Development' started by Profan, Jun 7, 2014.

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

    Profan

    Code:java
    1. ((Zombie)event.getLocation().getWorld().spawn(event.getLocation(), Zombie.class)).setCustomName("Zombie");
    2. Zombie z = (Zombie)event.getEntity();
    3. z.setCustomNameVisible(true);

    this ins't working, the zombie dont spawn with the name visible, only the name, anyone know how to fix this?
     
  2. Offline

    Bavestry

    Profan What exactly is wrong with this? Your post doesn't make much sense.. Are you saying that the name doesn't come up, or that it just comes up with "Zombie"?
     
  3. Offline

    thepaperboy99

    Profan
    Try:
    z.setCustomName("Zombie Name");
    z.setCustomNameVisable(true);
     
  4. Offline

    Profan

    if you look into a mob with name it will appear the name, if you do setcustomnamevisible, it will appear every time instead of looking on the mob

    i make this:
    Code:
    event.getLocation().getWorld().spawn(event.getLocation(), Zombie.class);
          Zombie z = (Zombie)event.getEntity();
          z.setCustomName("Zombie Name");
          z.setCustomNameVisible(true);
    dont work too

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 2, 2016
Thread Status:
Not open for further replies.

Share This Page