Tough As Nails

Tough As Nails

21M Downloads

ToughAsNails assets not loading correctly

CrowsOfWar opened this issue ยท 2 comments

commented

Hello, unfortunately ToughAsNails items/blocks don't load correectly.

Here is a sample from the startup: gist

Tested with no other mods.
Other blocks/models/icons loaded fine, except for the torch...

Running Mc 1.10.2, Forge 12.18.1.2011.

Edit: Also, log contained:
Unexpected hash 27d7d5a4968efe0ef47f786f6e5f72f8 detected for class World. Crashes or bugs may occur!

commented

After messing with the JSON model files, I seem to have found a fix. PR will come soon...

Changing each line like this
"facing=up,age=1,burning=true": { "model": "normal_torch" },
to this
"age=1,burning=true,facing=up": { "model": "normal_torch" },
seems to fix the problem!

commented

Since I'm lazy, I'll make the PR tomorrow.

Corrected JSON code (I used a regex for this):

{
  "variants": {
    "age=0,burning=true,facing=up": { "model": "normal_torch" },
    "age=1,burning=true,facing=up": { "model": "normal_torch" },
    "age=2,burning=true,facing=up": { "model": "normal_torch" },
    "age=3,burning=true,facing=up": { "model": "normal_torch" },
    "age=4,burning=true,facing=up": { "model": "normal_torch" },
    "age=5,burning=true,facing=up": { "model": "normal_torch" },
    "age=6,burning=true,facing=up": { "model": "normal_torch" },
    "age=7,burning=true,facing=up": { "model": "normal_torch" },
    "age=8,burning=true,facing=up": { "model": "normal_torch" },
    "age=9,burning=true,facing=up": { "model": "normal_torch" },
    "age=10,burning=true,facing=up": { "model": "normal_torch" },
    "age=11,burning=true,facing=up": { "model": "normal_torch" },
    "age=12,burning=true,facing=up": { "model": "normal_torch" },
    "age=13,burning=true,facing=up": { "model": "normal_torch" },
    "age=14,burning=true,facing=up": { "model": "normal_torch" },
    "age=15,burning=true,facing=up": { "model": "normal_torch" },
    "age=0,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=1,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=2,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=3,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=4,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=5,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=6,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=7,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=8,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=9,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=10,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=11,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=12,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=13,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=14,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=15,burning=true,facing=east": { "model": "normal_torch_wall" },
    "age=0,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=1,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=2,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=3,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=4,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=5,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=6,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=7,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=8,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=9,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=10,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=11,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=12,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=13,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=14,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=15,burning=true,facing=south": { "model": "normal_torch_wall", "y": 90 },
    "age=0,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=1,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=2,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=3,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=4,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=5,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=6,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=7,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=8,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=9,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=10,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=11,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=12,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=13,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=14,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=15,burning=true,facing=west": { "model": "normal_torch_wall", "y": 180 },
    "age=0,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=1,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=2,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=3,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=4,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=5,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=6,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=7,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=8,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=9,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=10,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=11,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=12,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=13,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=14,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=15,burning=true,facing=north": { "model": "normal_torch_wall", "y": 270 },
    "age=0,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=1,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=2,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=3,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=4,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=5,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=6,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=7,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=8,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=9,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=10,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=11,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=12,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=13,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=14,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=15,burning=false,facing=up": { "model": "toughasnails:new_torch" },
    "age=0,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=1,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=2,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=3,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=4,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=5,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=6,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=7,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=8,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=9,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=10,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=11,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=12,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=13,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=14,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=15,burning=false,facing=east": { "model": "toughasnails:new_torch_wall" },
    "age=0,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=1,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=2,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=3,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=4,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=5,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=6,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=7,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=8,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=9,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=10,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=11,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=12,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=13,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=14,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=15,burning=false,facing=south": { "model": "toughasnails:new_torch_wall", "y": 90 },
    "age=0,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=1,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=2,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=3,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=4,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=5,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=6,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=7,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=8,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=9,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=10,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=11,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=12,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=13,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=14,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=15,burning=false,facing=west": { "model": "toughasnails:new_torch_wall", "y": 180 },
    "age=0,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=1,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=2,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=3,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=4,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=5,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=6,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=7,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=8,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=9,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=10,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=11,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=12,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=13,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=14,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 },
    "age=15,burning=false,facing=north": { "model": "toughasnails:new_torch_wall", "y": 270 }
  }
}