-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Save and read CustomNameAlwaysVisible tag #5122
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
base: stable
Are you sure you want to change the base?
Conversation
|
Do we follow Mojang's entity save format within PM? Just asking because a save key with a comparable functionality does not exist according to the wiki. |
That's precisely why I hesitated to merge it. |
|
I don't think this should be an obstacle to merge the PR. Could it have any impact on PM at some point? |
As long as we're sure Mojang won't introduce a tag with the same name and a different value type... |
|
I think we need to think about standard ways to store PM-specific data before merging this, so this doesn't become a problem in the future. (Really should've done this years ago before plugin devs were able to start injecting all kinds of crap into the NBT...) |
The first thing that comes to mind is to have a |
|
@ipad54 I agree with putting PM custom data inside a subtag. Not sure if it's necessary to add extra methods for it though since it won't be needed in most cases. |
|
Extra methods can be pretty useful in the future if we want to store more than one custom property, especially in different entity classes. |
|
I feel like it's redundant for one property. We can add more stuff later on if necessary. |
Introduction
The CustomNameAlwaysVisible tag is not being read/saved in the entities, causing data loss.
Relevant issues
Tests