Removing a Custom Entity's Name

Discussion in 'Plugin Development' started by ZonalYewHD, Jun 3, 2015.

Thread Status:
Not open for further replies.
  1. Afternoon, all. I've been feverishly working on an update to one of my plugins, but I can't seem to remove a LivingEntity's custom name. I've tried setting it to null, I've tried setting it to an empty String, but the name is set to the name of the mob (i.e. a villager is set to 'Villager'). How am I supposed to remove it?
     
  2. Offline

    Zombie_Striker

    @ZonalYewHD
    Set the viability to false, so players cant see it. Besides that, once you name it, you would have to rename it to what it is:
     
  3. Setting the visibility to false only removes the name if the player isn't directly looking at the mob
     
  4. Offline

    Zombie_Striker

    @ZonalYewHD
    You may need to look at casting it to a LivingEntity/getting the handle and see if there are any methods for that.
     
Thread Status:
Not open for further replies.

Share This Page