Jump to content

Recommended Posts

Posted

So I'm trying to make a JSON file for a specific item in a mod I'm working on, but it's not rendering the textures in game, though the texture files are in the right folders that the file is set to look through. Below is the JSON file.

 

itemrevolver.json

Posted
5 minutes ago, Camellias said:

though the texture files are in the right folders that the file is set to look through

"0": "blocks/gunhilt",
"1": "blocks/gunbarrel",
"2": "blocks/merp",
"3": "blocks/revolver"

No they are not. You need to have a modid as a domain for your textures locations otherwise the game is going to look for them at assets/minecraft/textures/

Posted (edited)

Oh. Well, I'll see what that does. I'm assuming I just set it as camfm/resources/textures/blocks/(insert texture name here), correct?

 

camfm is the mod id

 

Never mind. I either assumed wrong, or that doesn't fix it.

Edited by Camellias
Posted (edited)

No, you set it as %modid%:%path%. In your case it would be camfm:blocks/%name%.

 

Also, if this

3 minutes ago, Camellias said:

camfm/resources/textures/blocks/(insert texture name here)

is your folder structure then it is incorrect. The folder structure for resources is assets/modid/. Any other folders(including the textures one) must be located in a folder with a name of your modid. From there you can structure it as you want.

Edited by V0idWa1k3r

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.