Json files not working  [Solved]

Get help and support for using Cubik Studio.
Post Reply

Json files not working

Post by Parker_0504 » 06 Nov 2016, 21:23

I'm pretty new to both Minecraft resource packs and Cubik (I just bought it yesterday), so I'm sure this is just a silly little detail that I'm overlooking. Anyway, I made a basic dagger to try and get a feel for the controls and all of the gadgets and gizmos and whatnot, and I'm progressing nicely, but when I tried to import this into my texture pack, it paid no heed to the json file. It just used the png file as the texture. I tried this as both a block and an item, and neither worked.

I put both of the files in the blocks folder (for the iron block I used) and the items folder (for the apple I used). Both of the files had the same name. Can someone help me with this?
x
User avatar
Parker_0504
Supporter
Posts: 5
Joined: 06 Nov 2016, 13:52

Re: Json files not working

Post by Profyle » 06 Nov 2016, 21:29

I think your issue is that you're putting the model in the wrong folder. You're putting it in the textures folder rather than the models folder.

How it should be set up:
Your .json file for your dagger should go into either the blocks or items folder that is inside the models folder, so:
<resourcepack name> -> assets -> minecraft -> models -> item OR block -> <name of item or block you are replacing>.json

Tell me if this works :)
x
User avatar
Profyle
Early Adopter
Posts: 39
Joined: 28 Feb 2015, 22:59

Re: Json files not working

Post by Parker_0504 » 06 Nov 2016, 23:25

It didn't work. O_o

Edit: WAIT is the .json file's name supposed to say apple.png.mcmeta? I have file extensions on by the way.
...Nope.
x
User avatar
Parker_0504
Supporter
Posts: 5
Joined: 06 Nov 2016, 13:52

Re: Json files not working

Post by Profyle » 06 Nov 2016, 23:38

Parker_0504 wrote: 06 Nov 2016, 23:25 It didn't work. O_o

Edit: WAIT is the .json file's name supposed to say apple.png.mcmeta? I have file extensions on by the way.
...Nope.
No, it shouldn't. If you want the .json to work, make sure the .json has the .json extension as it's primary extension (which means that it's using .json instead of anything else like .png or whatever) and make sure it is named apple, in your case. So, it should be apple.json.
x
User avatar
Profyle
Early Adopter
Posts: 39
Joined: 28 Feb 2015, 22:59

Re: Json files not working

Post by Parker_0504 » 07 Nov 2016, 01:18

I have the right file structure... the name is apple.json... what else could be wrong?
Edit: I tried the new file structure with yet another iron block and it didn't work either.
x
User avatar
Parker_0504
Supporter
Posts: 5
Joined: 06 Nov 2016, 13:52

Re: Json files not working

Post by Profyle » 07 Nov 2016, 01:58

Parker_0504 wrote: 07 Nov 2016, 01:18 I have the right file structure... the name is apple.json... what else could be wrong?
Edit: I tried the new file structure with yet another iron block and it didn't work either.
It's obvious that you are doing something wrong, as no one else has this problem.

What version of MC are you trying to export this .json to? (Like are you trying to make it work in 1.8 or 1.9 - 1.10.2?)
x
User avatar
Profyle
Early Adopter
Posts: 39
Joined: 28 Feb 2015, 22:59

Re: Json files not working

Post by zhaoyingtong » 07 Nov 2016, 02:21

If the game ever finds the model at all but can't load them, it would display a missing textures model. If it's acting like the .json file doesn't exist (like your case), then the .json file probably wasn't found by the game at all.

For an apple, make sure to place it like

assets/minecraft/models/item/apple.json

Note that it's "item", not "items" as you would use for a texture file. That's the most likely reason why your model isn't working.
x
User avatar
zhaoyingtong
Early Adopter
Posts: 11
Joined: 01 Nov 2016, 19:32

Re: Json files not working

Post by Parker_0504 » 07 Nov 2016, 17:04

It worked... for the most part. It's a 3D missing texture icon, in the shape of the dagger. I specified an iron block as both the texture and the particle.
x
User avatar
Parker_0504
Supporter
Posts: 5
Joined: 06 Nov 2016, 13:52

Re: Json files not working  [Solved]

Post by Profyle » 07 Nov 2016, 20:50

Parker_0504 wrote: 07 Nov 2016, 17:04 It worked... for the most part. It's a 3D missing texture icon, in the shape of the dagger. I specified an iron block as both the texture and the particle.
That's either because you forgot to put the texture in the textures folder under blocks or items OR because the model doesn't target the texture correctly (needs to target the texture inside of the textures folder).

How to fix the 1st one:
Simply just copy the texture from wherever it was first kept and paste it into the blocks or items folder of the textures folder.

How to fix the 2nd one:
Either:
Go into Cubik Studio, import the json for the dagger, double click the texture in the manager for textures, and locate the texture in the textures folder of your resource pack.
Or:
Open the json file with notepad/notepad++/any other text editor and replace the existing texture(s) path with a path to the texture inside the blocks or items folder that is inside the textures folder of your resource pack.

Hope this helps :)
x
User avatar
Profyle
Early Adopter
Posts: 39
Joined: 28 Feb 2015, 22:59

Re: Json files not working

Post by Parker_0504 » 07 Nov 2016, 21:29

Do you mean that I need to target the png file of what the dagger is supposed to look like in the gui?
x
User avatar
Parker_0504
Supporter
Posts: 5
Joined: 06 Nov 2016, 13:52

Post Reply

Return to “Help Centre”