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

I have a weird system for texturing in my mod and I'd like to make it so that if texture packers include a png file with a certain name it will override my weird texturing system. I know in java there's a file.exists() function but that doesn't seem to work in a compiled jar.

in a compiled jar.

<the more you know :D>jar files are only zipped file with a different extension btw</the more you know :D>

but, you can use JarEntry or ZipEntry class to check the content of your jar

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author
Why would a texture maker put his png file in a jar ?

 

Good point. But hopefully you kinda know what I mean. I want my mod to check he current texture pack and if there is a png file with a certain name than overwrite my weird texturing system and use that png instead. How could I do this?

isnt it the same thing as a texture pack ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

Not really. What I'm doing currently is that each of my items has two different textures that are recolored depending on different variables. I have gotten requests from texture packers that I have an option for them to not use the default coloring system and instead use there own textures.

well you can always use JarEntry or ZipEntry to check the content of a jar

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

well you can always use JarEntry or ZipEntry to check the content of a jar

 

But as GotoLink mentioned earlier, which I completely forgot, texture packers don't use jars.

I have a weird system for texturing in my mod and I'd like to make it so that if texture packers include a png file with a certain name it will override my weird texturing system. I know in java there's a file.exists() function but that doesn't seem to work in a compiled jar.

yeah ok, sooo .. whats the problem now xD ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Not really. What I'm doing currently is that each of my items has two different textures that are recolored depending on different variables. I have gotten requests from texture packers that I have an option for them to not use the default coloring system and instead use there own textures.

I thought this issue was already handled by Minecraft due to 1.6 changes ?

All a texture maker would have to do is make a resource pack with the same folder system as your mod: assets/modid/textures...

  • Author

Well as I mentioned earlier I have a weird texture system so if a texturer packer wanted to support my mod they'd have to work with that. Maybe what I need to do is add a mcmeta file similar to how mojang does it. How might I do that?

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.