Open njt1982 opened 4 years ago
Hmm that and it should be looking in blocks
, not block
...
That pluralisation issue seems to be an issue upstream?
{
"name": "acacia_planks",
"model": "acacia_planks",
"texture": "block/acacia_planks"
},
That file is in blocks
Interestingly, the blocks_textures file defines it correctly?
So my "fix" has been to use mcAssets.textureContent[k].texture
instead of mcAssets.getImageContent(k)
(where k
is something like acacia_planks
)
https://github.com/PrismarineJS/node-minecraft-assets/blob/6af1e492393890dca6ddc7885930d9c83f55bba6/lib/loader.js#L36
I'm getting this error:
Error: ENOENT: no such file or directory, open '/Users/nthompson/Sites/minecraft-browser/node_modules/minecraft-assets/minecraft-assets/data/1.16.1/block/acacia_planks/.png'
Should it be
texture + '.png'
?