Also secretly working on a Sponge Version of Protocol Lib
Alright, thanks again for all your researches and your help, that’s greatly appreciated !
12. I made my own tests, and it appears that the name of an entity (and therefore the name tage above its head) has no limit of character. Indeed you can see below an Armor Stand with a 2000 characters long name, generated by a Lorem Ipsum thing.
Thankfully, Minecraft chat input has a limit of 100 characters. The player can only send a maximum of 100 characters at a time. Here’s the demonstration of a 100 characters input and a 100 characters name tag :
It’s manageable. It cleary is a bit wide, so if a plugin would do this, I’d recommend it to line break at 50 characters. I suppose 2 entities for a player isn’t too much.
Maybe the 16 characters limit was when trying to rename a Name Tag item in an Anvil ?
Oh, that’s interesting then. Thinking about it again I may have been thinking of scoreboards (entries have a hard limit at 16 chars, at least in 1.7).
They’ll stay there, too. Objects involving the player’s name seem to always require no more than 16 characters within a string, including a scoreboard prefix, suffix, playername on the tablist, etc. The player’s name itself has the same limit, too, I think. And that’s been there since 1.6, if memory serves.
In 1.7 the limit of a scoreboard object (Objective or Team) was limited to 16 character, but using a NBT Editor you could, once created add an un limited number of characters to it afterwards.
In 1.8 though, if you try to do the same thing with an NBT Editor, the name will shrink back to 16 characters on the world load.
@Xemiru The player name is indeed limited to 16 characters :
But the prefix and suffix can have an unlimited length :
100 character-long prefix and 100 character-long suffix. The colors is resetted on line break, so you would have to place a color marker before the word to correct that, but I guess nobody will ever do this.
That’s probably new; considering before 1.8 I always had trouble trying to deal with the 16 character limit on prefixes and suffixes. Usually I solve this problem by doing a marquee effect to show text longer than 16 characters.
It also could’ve been a bukkit-only thing.
I’m pretty sure the unlimited prefix/suffix length was introduced in 1.8, hence the existence of this commit.
I assume that this conversation is already over. but All of these questions are great and if they are able to be done in sponge or not is questionable but I personally have seen all of these used some way or another in mods, plugins, servers, API’s. I’m possitive that you’d be able to do almost every single one. if you wish I can try and find my sources for each one (I’m sure I’ve got them some where) And send you links and pictures to verify. but if it can be done in one case I’m sure there is a way to manipulate what is availabe to make it happen again. it just might take longer time then you feel like taking.