mcy / 1.8-Models

Various model experiments.
Creative Commons Attribution Share Alike 4.0 International
29 stars 4 forks source link

Anvils texture broken #2

Open 0xTJ opened 8 years ago

0xTJ commented 8 years ago

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

voltavidTony commented 6 years ago

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...