Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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/

  • Author

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

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

  • Author

Yeah, I just messed up writing the path from memory. Dumb mistake on my part.

 

But yes, that works. Thank you, so much.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.