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

Anvils texture broken #2

Open
0xTJ opened this issue Aug 7, 2016 · 1 comment
Open

Anvils texture broken #2

0xTJ opened this issue Aug 7, 2016 · 1 comment

Comments

@0xTJ
Copy link

0xTJ commented Aug 7, 2016

In 1.10, I am getting the anvil as having the black and purple squares broken texture.

@voltavidTony
Copy link

voltavidTony commented Dec 19, 2017

I have worked out how to fix the issue.

Here's what I found:

The JSON file that contains the actual model data (because there are 5 JSON files for the anvil) is
assets/minecraft/models/block/anvil/anvil.json
I used GRengine Modeler to try and import the JSON, but it gave me an error code (unexpected token at position ...). I quickly realized that a whole lot of opening braces (this --> { <--) were missing.
That's right, the JSON is unbalanced!

Fix:

Find every "from" (and that's with quotes) in the text. This "from" must have an opening brace in front of it. If it does not, just add it. I applied this to all cases, and when I loaded up Minecraft, the anvil displayed properly without any missing texture in sight!

Sample:

Broken:
...lt"}}},"from":[3.5,0....
Working:
...lt"}}},{"from":[3.5,0....

Bonus:

The string item has a missing texture. This is an easy fix. Edit the string's model file:
assets/minecraft/item_models/misc/string.json
Broken:
"textures":{"string":"items/bag/string/bright","wo...
Working:
"textures":{"string":"items/bag/string/silver","wo...

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