-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Comments
Not sure offhand if there's a way to make names hide like sneaking without actually making the NPC sneak. |
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. |
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. |
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. |
|
As you can see there are other NPC nameplates in the background further out from where I am looking at. It's annoying. |
Is there anything can be done to achieve this? Maybe using ProtocolLib? |
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 |
Thank you and I really hope this feature will get added in future release. |
this would be a cool feature to add |
So did you come up with something after a year of research? I came across this. Maybe it can help us here. Grauly seems to came up with a method using armorstands with Map. |
You could theoretically write a Denizen script that dynamically uses hide_entity/show_entity with holograms to achieve this |
Any chance you could write one? |
Alright I know I'm late, but here is my solution. make your npc stand and make a denizen script for whatever, it just has to have one line as the first action run from a trigger: |
Any updates on this? Now that citizens has holograms would be a cool functionality aswell. Its easier to do it with holograms then nameplates, perhaps make the nameplate a hologram then aswell. |
This is really late as I apparently forgot to post it here, but a system to hack fake-sneak into packets was added to Denizen, and there's a sample script to automatically apply it to an NPC @ https://forum.denizenscript.com/threads/tiny-sample-scripts-to-start-with.354/ |
Awesome I can't wait to check it out, you're a genius well done for achieving this :) |
How can I make citizens names hidden if the NPC is behind a block?
The text was updated successfully, but these errors were encountered: