Skip to content
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

Suggestion: entity names conditionally display #445

Closed
1 task
davidjjung opened this issue Aug 1, 2024 · 2 comments
Closed
1 task

Suggestion: entity names conditionally display #445

davidjjung opened this issue Aug 1, 2024 · 2 comments

Comments

@davidjjung
Copy link

Mod loader

Forge

Minecraft version

1.19.2

Mod version

8.9.2

Modloader version

Forge 43.3.0

Modpack info

No response

[IMPORTANT] If bug:

  • I have confirmed this bug is reproducible on a minimal setup, not a modpack with many other mods.

[IMPORTANT] If bug: The latest.log file, not the crash report

No response

Issue description

I'd like to suggest that entities/players do not display their names/EntityType/username if Entity.shouldShowName()/Entity.isCustomNameVisible is false, or if (specifically for Forge) something like a hook into RenderNameTagEvent would return Event.Result.DENY.

The version isn't particularly important (assuming this feature hasn't been implemented in later versions, in that case whoops my bad haha). I was mostly asking to tackle this issue and perhaps others in one fell swoop via a sensible-enough feature suggestion. I did want to try mixin-ing before names are rendered in a separate workspace, but I haven't found the specific Jade method for showing the entity's username/entitytype😅. Thanks for your time

@Snownee
Copy link
Owner

Snownee commented Aug 2, 2024

The methods you mention only control how the name tag is rendered. It will still appear somewhere else. For Jade, you can replace the entity name with anything else in a plugin

@davidjjung
Copy link
Author

Just figured out how to do it (currently via a mixin to ObjectNameProvider's appendTooltip). thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants