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

Update minecraft:icon for items #302

Closed
wants to merge 4 commits into from
Closed

Conversation

DinnerBeef
Copy link
Contributor

This updates the minecraft:icon item component to be how minecraft does it. See here

Changed minecraft:icon from
"minecraft:icon": "$2.${3:${TM_FILENAME/[\\.].*//}}"
to
"minecraft:icon": { "texture": "$2.${3:${TM_FILENAME/[\\.].*//}}" }

@DaanV2
Copy link
Contributor

DaanV2 commented Jul 24, 2024

@DinnerBeef You update the auto-generated file 😬

you want to look at: source/behavior/items/format/components/icon.json

@Xterionix
Copy link
Contributor

Also incorrect, both formats are allowed

@DinnerBeef
Copy link
Contributor Author

Will Fix :)

@DinnerBeef
Copy link
Contributor Author

Ok think i did that right this time

@Xterionix
Copy link
Contributor

That is the correct file but there's a reason that format isn't in the schemas. It's old. Used up to 1.20.50. The format changed after that. The schemas only contain the newest formats

@DinnerBeef
Copy link
Contributor Author

DinnerBeef commented Jul 24, 2024

I did not know that then. Will change how i do stuff then.

@DinnerBeef DinnerBeef closed this Jul 24, 2024
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

Successfully merging this pull request may close these issues.

3 participants