-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Allow setting item texture from stack metadata #9354
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
Conversation
|
Correct me if I'm wrong, but doesn't this have the potential to break mods that already use the "texture" field of itemstack metadata? As more and more specialized fields like this are added, I'm concerned that this will cause conflicts down the road. Perhaps it should have been decided that specialized fields be denoted using a underscore prefix or some other convention so that there's never any risk of naming collisions when the API is changed. |
While I don't expect that many (any?) mods use this particular field, I definitely support adopting a standard naming convention for metadata fields used by the engine. |
|
I can make this use "_texture", it shouldn't be difficult to change description to "_description" as well. |
|
That is great news, and thanks for the clarification! I am very much looking forward to this PR. I can't even imagine all the potential applications. Once this is merged, hopefully it sets a precedent for the long awaited ability to dynamically change textures of nodes using the same methodology. One step at a time, but at least this is a great step in that direction :) |
|
I believe it is worth noting that the documentation on item definitions encurages modders to use an underscore for custom item/node definition fields. |
|
Thanks for the heads up. To be clear, those are item definition fields, which are separate and distinct from metadata fields that are serialized within the itemstack or node. |
|
PR is WIP but no progress for 4 months, is @lisacvuk still interested in continuing work? |
|
I would like to respectfully retract my earlier suggestion of using underscores for reserved fields in consideration of the fact that My secondary impetus, however, is that I've been considering opening a PR to streamline private node meta by prefixing an underscore to the name, rather than having to use the somewhat obfuscated method |
|
I will close this for now, as I don't have time (or interest) to work on it right now. Feel free to take over if you wish. |
|
if there's still interest in this (read "it's likely to eventually be merged") i'd be willing to take it over |
|
There's definitely interest in this feature, haven't checked this specific implementation though |
Solves #5686
To do
This PR is a Work in Progress
How to test