New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make NPCs names hide when behind blocks (like when sneaking) without sneaking #1676

Open
madtomic opened this Issue Jan 22, 2019 · 11 comments

Comments

Projects
None yet
3 participants
@madtomic
Copy link

madtomic commented Jan 22, 2019

How can I make citizens names hidden if the NPC is behind a block?

@mcmonkey4eva

This comment has been minimized.

Copy link
Member

mcmonkey4eva commented Jan 22, 2019

/npc sneak if you have Denizen installed ( https://www.spigotmc.org/resources/denizen.21039/ ) per the standard Minecraft functionality on that.

Not sure offhand if there's a way to make names hide like sneaking without actually making the NPC sneak.

@madtomic

This comment has been minimized.

Copy link
Author

madtomic commented Jan 22, 2019

I will try this Denizen. Thanks for getting back. I thought about using /npc name but it just a toggle to turn the nameplate on and off.

@madtomic

This comment has been minimized.

Copy link
Author

madtomic commented Jan 22, 2019

Well, sneak is is not what I am looking for. What I need is to hide the NPC names if they are no in line of sight with a player. So if a NPC is behind a wall of stones, their nameplate would be hidden. When the player come in line of sight with the NPC. NPC nameplate would be visual relative to the player looking at it.

@madtomic

This comment has been minimized.

Copy link
Author

madtomic commented Jan 22, 2019

I wonder if /npc name can be schedule to toggle based on line of sight with NPC and player? So, if they aren't in line of sight, it will set npc nameplate off by default and toggle on if they are in line of sight.

@mcmonkey4eva

This comment has been minimized.

Copy link
Member

mcmonkey4eva commented Jan 22, 2019

So if a NPC is behind a wall of stones, their nameplate would be hidden. When the player come in line of sight with the NPC. NPC nameplate would be visual relative to the player looking at it.
That's how minecraft handles nameplates of players that are sneaking, isn't it?

@madtomic

This comment has been minimized.

Copy link
Author

madtomic commented Jan 22, 2019

Yes but if the NPC isn't sneaking. Their nameplates can be seen through walls. I would like be hidden and not make the NPC sneaking but rather standing like normal.

image

@madtomic

This comment has been minimized.

Copy link
Author

madtomic commented Jan 22, 2019

As you can see there are other NPC nameplates in the background further out from where I am looking at. It's annoying.

@madtomic

This comment has been minimized.

Copy link
Author

madtomic commented Jan 23, 2019

Is there anything can be done to achieve this? Maybe using ProtocolLib?

@mcmonkey4eva

This comment has been minimized.

Copy link
Member

mcmonkey4eva commented Jan 23, 2019

I'm going to change this to a feature request for a way to make NPC nameplates hide (as though they were sneaking, but without actually sneaking)


We don't currently have a way to do what you're asking, but perhaps it can be added as a feature.

As a placeholder/workaround until then, you can hide nameplates that way by using /npc sneak (with the side effect that they will actually crouch down)

@madtomic

This comment has been minimized.

Copy link
Author

madtomic commented Jan 24, 2019

Thank you and I really hope this feature will get added in future release.

@axemwa

This comment has been minimized.

Copy link

axemwa commented Jan 26, 2019

this would be a cool feature to add

@mcmonkey4eva mcmonkey4eva changed the title Question: How can I make citizens names hidden if the NPC is behind a block? Make NPCs names hide when behind blocks (like when sneaking) without sneaking Jan 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment