Solved Always show the entity custom name

Discussion in 'Plugin Development' started by WladHD, Mar 30, 2015.

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

    WladHD

    Hey!

    I have a problem: Im coding MobArena and I want to show an entity name always, not only when the player is looking at one, but I dont know how to do that :/
    At the moment Im using following methods:
    Code:
    Entity en = loc.getWorld().spawnEntity(loc, getRandomEntityType());
    Creature c2 = (Creature) en;
    c2.setCustomName(ChatColor.GREEN + "Level: " +ChatColor.DARK_RED + "[ " +  ChatColor.RED + getLevel(en.getType()) + ChatColor.DARK_RED + " ]" + ChatColor.GRAY + " - " + ChatColor.AQUA + "Welle " + ChatColor.DARK_AQUA + wave);
    c2.setCustomNameVisible(true);
    
    But as I said... the name is not showed all the time... only when you look at one you can see the name.
    Can anyone help me, please?
     
  2. Offline

    WeeSkilz

    This is an issue with the new version of minecraft rather than with your code. One way it has been combated by other developers is using holograms to make the names appear however with moving mobs this may be more challenging/less practical.
     
    WladHD likes this.
  3. Offline

    WladHD

    :/ okay. Thanks. I'll try to do it with holograms.
     
  4. Offline

    sablednah

    WladHD likes this.
Thread Status:
Not open for further replies.

Share This Page