So for about a month I have been trying to get these blockstats to work in my personal resource pack, the models for the blocks work if you have them by themselves and I have optifine, but there is something wrong with the codes.
No, I just open it with notepad because my computer can't open .json files.
Get Notepad++ (It's freeware) and set your computer to open them with that.
Also, make sure you have all file extensions visible to make sure it's "grass.json" and not "grass.json.txt". The added file extension WILL cause the file to simply fail.
Additionally, running your file through https://jsonlint.com/ to make sure that it's valid is a good idea. If it isn't, it might give you a hint as to where you made a mistake.
Beyond that, it would help if you'd post the files themselves and not screenshots. Likewise, post a session log from a session where you had the pack active. That'll help to narrow down the problem. I hope that helps.
The Meaning of Life, the Universe, and Everything.
Join Date:
2/18/2012
Posts:
42
Minecraft:
nongfu
Member Details
Sorry, I didn't see the pastebin post. I just threw the codes into JSONLint and the grass and pumpkin codes are not valid. I'd guess that the problem for the grass JSON is that you've got an extra comma at the end of the snowy=false variant. For the pumpkins you seem to be missing an end bracket for each variant. As for the end stone, I'm not sure what's going on there.
The grass works! (now I can enjoy an occasional ant nest.), but the jack o lanterns still don't work and I have re-put the .json file of it in after editing but it can't detect anything.
So for about a month I have been trying to get these blockstats to work in my personal resource pack, the models for the blocks work if you have them by themselves and I have optifine, but there is something wrong with the codes.
Yekul10
The blockstate codes look good, but if you're using notepad you might saving it as a .txt file instead of a .json file. That's all I can think of.ok
No, I just open it with notepad because my computer can't open .json files.
Yekul10
Get Notepad++ (It's freeware) and set your computer to open them with that.
Also, make sure you have all file extensions visible to make sure it's "grass.json" and not "grass.json.txt". The added file extension WILL cause the file to simply fail.
Additionally, running your file through https://jsonlint.com/ to make sure that it's valid is a good idea. If it isn't, it might give you a hint as to where you made a mistake.
Beyond that, it would help if you'd post the files themselves and not screenshots. Likewise, post a session log from a session where you had the pack active. That'll help to narrow down the problem. I hope that helps.
Sorry, I didn't see the pastebin post. I just threw the codes into JSONLint and the grass and pumpkin codes are not valid. I'd guess that the problem for the grass JSON is that you've got an extra comma at the end of the snowy=false variant. For the pumpkins you seem to be missing an end bracket for each variant. As for the end stone, I'm not sure what's going on there.
Edit: I guess Alvoria got on it before me
ok
The grass works! (now I can enjoy an occasional ant nest.), but the jack o lanterns still don't work and I have re-put the .json file of it in after editing but it can't detect anything.
Yekul10
Idk if you've fixed it, but for your original code you're missing a bracket at the end of each variant. Try this:
https://pastebin.com/0WZJVa07
ok