Hello,
Hello, I’m looking for the way to change entity visibility for players.
I know that there’s a method in spigot for that but I can’t find any sponge equivalent.
Do you have any idea about how to do that?
Thanks
Hello,
Hello, I’m looking for the way to change entity visibility for players.
I know that there’s a method in spigot for that but I can’t find any sponge equivalent.
Do you have any idea about how to do that?
Thanks
Entity entity;
entity.offer(Keys.INVISIBLE, true);
That will set that entity invisible to all players
Hey, thanks for your answer !
My ask was not very specific. I mean, I’m looking for the way to hide people for only player who want to don’t see other people.
I know that in spigot there’s the hidePlayer method wich do that but I can’t figure how to do that in sponge.
Ah. I see what you mean.
Its currently not possible, i made a issue request a long time ago to add such a thing in, my response was “wait until the context update was released” which as far as im aware got abandoned.
By all means make a new github request to add that ability in, may get further then myself. Ill try to find my old github issue.
Edit:
Found it. There is also a linked issue on that page too which may give you more info on the idea of client specific data.
Okay thanks you for your answer
Will look the github.