Trying to create a texture/resource pack
PlatCat opened this issue ยท 2 comments
Issue description
Hello I am trying to create a texture/resource pack for securitycraft but ive run into a bit of a hurdle. I have created texture/resource pack for minecraft prior but never for mods.
Ive noticed that in many cases textures have been ripped directly from minecraft instead of creating original ones eg. Redstone & speed module, many machines use dispenser or iron block textures, crystal quartz are just quartz with a hue, etc, etc. But no matter how many files I read I cannot figure out how theyre ripped (not proficent with coding).
And since Im looking to change these textures that is a problem, how would one go to do so? Also where is the code that gives crystal quartz and reinforced blocks their hue?
I know that this isnt really a bug or anything like that aswell as an odd question but if someone could tell me what im doing wrong that would be deeply appreciated.
Thx in advance!
Steps to reproduce
No response
Minecraft version
1.20.1
Forge version
47.2.0
SecurityCraft version
v1.9.9
Other relevant versions
No response
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
No response
Creating resource packs for mods is no different than creating ones for Minecraft. SecurityCraft doesn't exactly rip the vanilla textures, it simply makes use of them. As you can see here, we reference the vanilla stone instead of our own in the reinforced stone's block model. This is the case for pretty much all the instances where you see vanilla textures being used. If you change the vanilla texture, the reinforced block's texture will also be changed. Of course you can also change the reinforced block's model to reference your own texture.
This is similar to the speed module. It just uses two texture layers; One for the module background, and one for the sugar. Again, you can simply change the item module to change the texture.
As for reinforced block tint: This uses the same system as for instance vanilla grass blocks and leaves use to change color based on the biome they're in. This is done in code here, and also needs a tintindex defined in the model files. This is done in the parent models of reinforced blocks, for example for reinforced stone this is done here. This is not the only file where this is done. Some blocks use different ones, but the method is always the same. If you do not want the tint, then you have two options:
- Disable it in the config file of the mod (not possible with the resource pack)
- Replace all the parent block models that define a tintindex with versions of themselves that have the tintindex removed. With this you have to watch out that you only remove the tintindex that defines reinforced block tinting, and not the one that for instance makes sure reinforced grass changes color based on biome.
And finally, as you've correctly noted, this is an issue tracker, not a place for suggestions or to get help. This is also shown to you when you create a new issue. If you need further assistance with this, feel free to join our Discord server and we'll be happy to continue there.