I have a resource pack which accompanies a datapack. All the textures in the resource pack are 16x16 in the style of default Minecraft, but I have created 32x32 textures in the style of 32xFaithful to replace many of the textures in the pack. For some items, the my new texture is accepted without any issue.
For several textures, there is a strange issue where it seems like the original 16x16 texture is being rendered right on top of the new 32x32 texture. This leads to very glitchy looking items.
The one thing all of the items have in common is what is in their respective json files. Glitched items have this formula:
If I simply change the affected item's files to mirror the good ones, the glitchy texture issue goes away but instead the item appears much darker than it should be. Images of these phenomena are attached.
I don't have specific knowledge of json and cannot seem to find any relevant documentation online for resource packs. Has anyone experienced similar issues and found a fix?
Edit: I've generated my new textures using some python code I wrote. It takes a texture from Faithful 32x as a template, and with some hard coded RGB color values, just does a color swap. My "Raw Titanium" texture is just the raw iron texture from Faithful 32x recolored to match the 16x16 texture given in the Ores and Alloys data pack's companion resource pack. Then I flipped the image horizontally. As described above, this works perfectly for some textures and produces the unwanted results for others.
I'm afraid there is no such directory in this resource pack. The pack accompanies a datapack called Ores and Alloys. All item textures are in assets/minecraft/textures/item
Here is a link to where said resource pack can be found:
There pack is pretty small and bare bones. I think I am missing some fundamental resource pack knowledge - I have returned to Minecraft after a long break and much has changed. I am confused what the text in the JSON files refer to. item/generated isn't a directory in the pack and neither is item/generated_alt. My assumption was that it's a kind of classification for textures I don't know about.
item/generated can be found in the original files at C:/Users/[Redacted]/Appdata/Roaming/.minecraft/versions/1.21.1/1.21.1.jar/assets/minecraft/models/item/generated.json.
item/generated_alt is, however, not a vanilla file, and therefore is the object that I want to know more of.
Oh well. The raw titanium texture replaces the bat spawn egg texture in game. Any texture I try to have replace the bat spawn egg always appears dark. I wonder if it's specific to the bat spawn egg. I am running out of things to try.
So generated_alt must've been an attempt to circumvent that. Thank you for that piece of information.
Is there some IDE or software people use to make texture packs? Or typically do people just bust out paint.net and throw stuff in a folder and call it a day.
The only frameworks you can trust are Resource Pack converters, that convert a Resource Pack from like 1.12 to 1.13, since some versions can break a lot and fixing all of it by hand can become tedious for some people.
Also, you're asking a forum that doesn't like such frameworks for such frameworks.
I have a resource pack which accompanies a datapack. All the textures in the resource pack are 16x16 in the style of default Minecraft, but I have created 32x32 textures in the style of 32xFaithful to replace many of the textures in the pack. For some items, the my new texture is accepted without any issue.
For several textures, there is a strange issue where it seems like the original 16x16 texture is being rendered right on top of the new 32x32 texture. This leads to very glitchy looking items.
The one thing all of the items have in common is what is in their respective json files. Glitched items have this formula:
Whereas the correctly functioning item have this in their json files
If I simply change the affected item's files to mirror the good ones, the glitchy texture issue goes away but instead the item appears much darker than it should be. Images of these phenomena are attached.
I don't have specific knowledge of json and cannot seem to find any relevant documentation online for resource packs. Has anyone experienced similar issues and found a fix?
Edit: I've generated my new textures using some python code I wrote. It takes a texture from Faithful 32x as a template, and with some hard coded RGB color values, just does a color swap. My "Raw Titanium" texture is just the raw iron texture from Faithful 32x recolored to match the 16x16 texture given in the Ores and Alloys data pack's companion resource pack. Then I flipped the image horizontally. As described above, this works perfectly for some textures and produces the unwanted results for others.
What's in item/generated_alt?
Meow~
#F5F8FB
KittenKatja ♥
I don't know what item/generated_alt refers to. Would it be found in the datapack?
No, it's in the resource pack.
I'm asking for its contents, since item/generated is the vanilla file.
Maybe also give this a read.
Meow~
#F5F8FB
KittenKatja ♥
I'm afraid there is no such directory in this resource pack. The pack accompanies a datapack called Ores and Alloys. All item textures are in assets/minecraft/textures/item
Here is a link to where said resource pack can be found:
https://www.planetminecraft.com/data-pack/ores-and-alloys/
There pack is pretty small and bare bones. I think I am missing some fundamental resource pack knowledge - I have returned to Minecraft after a long break and much has changed. I am confused what the text in the JSON files refer to. item/generated isn't a directory in the pack and neither is item/generated_alt. My assumption was that it's a kind of classification for textures I don't know about.
item/generated can be found in the original files at C:/Users/[Redacted]/Appdata/Roaming/.minecraft/versions/1.21.1/1.21.1.jar/assets/minecraft/models/item/generated.json.
item/generated_alt is, however, not a vanilla file, and therefore is the object that I want to know more of.
You mention 32xFaithful often, as well.
Meow~
#F5F8FB
KittenKatja ♥
I understand now. The contents of generated_alt are here. It's quite long.
Faithful is a pretty famous texture pack, it's just a straight resolution upgrade to minecraft's default textures.
https://modrinth.com/resourcepack/faithful-32x/versions
I am unable to decipher as to why the builtin/generated clone is lighter than the original.
Meow~
#F5F8FB
KittenKatja ♥
Oh well. The raw titanium texture replaces the bat spawn egg texture in game. Any texture I try to have replace the bat spawn egg always appears dark. I wonder if it's specific to the bat spawn egg. I am running out of things to try.
The bat spawn egg holds color values to color the texture in.
"layer0" must be a light color, and "layer1" a dark color; mystery solved.
Next time, replace items' (without color values) textures instead for testing.
The solution in this case is to lighten the texture itself up.
Meow~
#F5F8FB
KittenKatja ♥
So generated_alt must've been an attempt to circumvent that. Thank you for that piece of information.
Is there some IDE or software people use to make texture packs? Or typically do people just bust out paint.net and throw stuff in a folder and call it a day.
The only frameworks you can trust are Resource Pack converters, that convert a Resource Pack from like 1.12 to 1.13, since some versions can break a lot and fixing all of it by hand can become tedious for some people.
Also, you're asking a forum that doesn't like such frameworks for such frameworks.
Meow~
#F5F8FB
KittenKatja ♥
I have figured it out.
Using blockbench and studying the generated_alt model, I was able to make a 32x32 template.