Hello, I'm trying to get a scoreboard under the name of an entity. I can't seem to get it to work. I hope some of you guys can help me Thanks, Stan
To be honest I didn't have much, since I do not know where to start. This is what I had: Code (Text): ScoreboardManager manager = Bukkit.getScoreboardManager(); Scoreboard board = manager.getNewScoreboard(); Team team = board.registerNewTeam(ownerName); team.addEntry(entity.getUniqueId().toString()); team.setDisplayName("I'm a villager");
What does it do instead? (That should, if anything. Set the actual name of the villager to "I'm a villager", not below it.) You may also find you'll need to flag it so things like this appear as villagers don't usually have a 'scoreboard' above their head.
You're probably taling about the "DisplaySlot.BELOW_NAME", which can be used to display the health or some kind of info below a player's name, but if i'm not wrong, it can't be used on Entities, if you have seen something like a line below the entity name on a server it's because they're using a hologram.