I have been making a mod with mod-loader. I have finally run out of image space and am having to use forge for the first time. Is there any way that I can use their Infinite Sprite Indexing without changing all of my code?
Thanks,
Kalman98
Rollback Post to RevisionRollBack
May the ores be with you.
Yes, I'm one of these guys: If I say something that offends you or just seems wrong, please let me know. I was almost certainly just making a joke or a pun, or something really dumb like that, and didn't mean anything by it. Don't take anything I say too seriously!
I have been making a mod with mod-loader. I have finally run out of image space and am having to use forge for the first time. Is there any way that I can use their Infinite Sprite Indexing without changing all of my code?
Thanks,
Kalman98
Yes and it is quite easy.
First off, open paint.net or whatever you use (MUST NOT BE MS PAINT!!!! IT SUCKS FOR TEXTURING!!!!!!!!) and make a new .png image, 256x256, then in each 16x16 square going horizontal add your textures, then save it. Next copy this file into your common folder and add this to a new method called "initRenderering" in your client proxy: (if you don't have a proxy system or you use "mod_modNameHere extends BaseMod" then search up how to switch to Forge, as that is pure ModLoader stuff and Forge has a cleaner, better alternative)
[code]MinecraftForgeClient.preloadTextureFile("/path/to/texture/here/texture_file_name_here.png");[/code]
Also add a method called initRendering in your common proxy.
Then in your mod file add this to your PreInit:
[code]proxy.initRenderering();[/code]
Next I will show you how to set the index for your texture.
Items
Add ".setIconIndex(0 /* Texture index here */" to your item registration, but before you set your items code-based name.
Blocks
Set up your blocks class arguments like this:
[code
BlockClassHere(1234 /* ID here */, 0 /* Index here */, Material.rock /* Material here */)
[/code]
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Yes, I'm one of these guys: If I say something that offends you or just seems wrong, please let me know. I was almost certainly just making a joke or a pun, or something really dumb like that, and didn't mean anything by it. Don't take anything I say too seriously!
Thanks,
Kalman98
May the ores be with you.
Yes, I'm one of these guys: If I say something that offends you or just seems wrong, please let me know. I was almost certainly just making a joke or a pun, or something really dumb like that, and didn't mean anything by it. Don't take anything I say too seriously!
Yes and it is quite easy.
First off, open paint.net or whatever you use (MUST NOT BE MS PAINT!!!! IT SUCKS FOR TEXTURING!!!!!!!!) and make a new .png image, 256x256, then in each 16x16 square going horizontal add your textures, then save it. Next copy this file into your common folder and add this to a new method called "initRenderering" in your client proxy: (if you don't have a proxy system or you use "mod_modNameHere extends BaseMod" then search up how to switch to Forge, as that is pure ModLoader stuff and Forge has a cleaner, better alternative)
[code]MinecraftForgeClient.preloadTextureFile("/path/to/texture/here/texture_file_name_here.png");[/code]
Also add a method called initRendering in your common proxy.
Then in your mod file add this to your PreInit:
[code]proxy.initRenderering();[/code]
Next I will show you how to set the index for your texture.
Items
Add ".setIconIndex(0 /* Texture index here */" to your item registration, but before you set your items code-based name.
Blocks
Set up your blocks class arguments like this:
[code
BlockClassHere(1234 /* ID here */, 0 /* Index here */, Material.rock /* Material here */)
[/code]
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
May the ores be with you.
Yes, I'm one of these guys: If I say something that offends you or just seems wrong, please let me know. I was almost certainly just making a joke or a pun, or something really dumb like that, and didn't mean anything by it. Don't take anything I say too seriously!