The Meaning of Life, the Universe, and Everything.
Join Date:
8/4/2012
Posts:
48
Member Details
I'm trying to build a texture pack design specifically around building realistic structures, but I've come across a slight bump in the road. I'm pretty new to creating texture packs, but have a decent amount of gfx design, and I'm pretty quick to pick up on scripting languages, so this isn't too hard for me. Basically what I'm trying to do is give a specific glass block an animated texture on the top, but no matter what I do, I can't get the texture (neither block nor item) to change, at all, even to a solid texture.
I've tried making a blockstate, in the appropriate dir:
{
"parent": "block/cube_all",
"textures": {
"bottom": "blocks/glass_blue",
"top": "blocks/my_custom_texture",
"side": "blocks/glass_blue"
}
//Not sure if I did the section below properly, feedback appreciated.
"elements": [
"faces": {
"up": { "texture": "#up", "cullface": "up" }
]
}
}
which obviously points to my texture "assets/minecraft/textures/blocks/my_custom_texture.png + my_custom_texture.png.mcmeta"
Now, the odd thing is, even if I point bottom, top and side to an existing glass color (glass_red.png for example), it doesn't retexture it (I think I even just tried ["all": "blocks/glass_red"] and it still didn't work) .
With Optifine, I disabled connected textures, deleted the "11_glass_blue" folder from the jar, and even removed it completely, so it's not an optifine issue. Using 100% vanilla textures and no graphical mods installed, I can't get it to change. It changes fine in other resource packs, ModernHD for example, but not for mine. Am I missing a crucial part of glass textures?
The Meaning of Life, the Universe, and Everything.
Join Date:
4/23/2011
Posts:
245
Minecraft:
Sarinilli
Member Details
Have you tried changing "normal" to "all"?
From my understanding so far, the "normal" option for the texture means it will just apply it to the front; whereas "all" should apply it to all sides.
From my understanding so far, the "normal" option for the texture means it will just apply it to the front; whereas "all" should apply it to all sides.
I only want the texture applied to the top side, though. Changing the only reference in the code from "normal" to "all" might break things. The json file that has "variants" : is actually referring to models. For example, there are multiple variants of the grass block, one for each direction, one for snow, etc. Changing "normal" to "all", if it is a valid entry, would just tell minecraft to use the same model for each block, regardless of block state (door open/closed, would both show door closed in game, for example).
I'll try, just on the off chance that it does anything, but I'm not gonna get my hopes up. I worked at this for a couple hours already lol.
The Meaning of Life, the Universe, and Everything.
Join Date:
4/23/2011
Posts:
245
Minecraft:
Sarinilli
Member Details
Aaahh... I see!
So, I did a quick test, because sometimes this doesn't work... I took the values from the pumpkin since it does have a top, front and sides.. and it worked!
Just use this and adjust it for your custom textures:
I'm trying to build a texture pack design specifically around building realistic structures, but I've come across a slight bump in the road. I'm pretty new to creating texture packs, but have a decent amount of gfx design, and I'm pretty quick to pick up on scripting languages, so this isn't too hard for me. Basically what I'm trying to do is give a specific glass block an animated texture on the top, but no matter what I do, I can't get the texture (neither block nor item) to change, at all, even to a solid texture.
I've tried making a blockstate, in the appropriate dir:
ResourcePack_Name/assets/minecraft/blockstates/blue_stained_glass.json
which points to:
ResourcePack_Name/assets/minecraft/models/glass_blue.json
which obviously points to my texture "assets/minecraft/textures/blocks/my_custom_texture.png + my_custom_texture.png.mcmeta"
Now, the odd thing is, even if I point bottom, top and side to an existing glass color (glass_red.png for example), it doesn't retexture it (I think I even just tried ["all": "blocks/glass_red"] and it still didn't work) .
With Optifine, I disabled connected textures, deleted the "11_glass_blue" folder from the jar, and even removed it completely, so it's not an optifine issue. Using 100% vanilla textures and no graphical mods installed, I can't get it to change. It changes fine in other resource packs, ModernHD for example, but not for mine. Am I missing a crucial part of glass textures?
Have you tried changing "normal" to "all"?
From my understanding so far, the "normal" option for the texture means it will just apply it to the front; whereas "all" should apply it to all sides.
Updated: Aug. 24 2023 See thread for details
I only want the texture applied to the top side, though. Changing the only reference in the code from "normal" to "all" might break things. The json file that has "variants" : is actually referring to models. For example, there are multiple variants of the grass block, one for each direction, one for snow, etc. Changing "normal" to "all", if it is a valid entry, would just tell minecraft to use the same model for each block, regardless of block state (door open/closed, would both show door closed in game, for example).
I'll try, just on the off chance that it does anything, but I'm not gonna get my hopes up. I worked at this for a couple hours already lol.
Aaahh... I see!
So, I did a quick test, because sometimes this doesn't work... I took the values from the pumpkin since it does have a top, front and sides.. and it worked!
Just use this and adjust it for your custom textures:
Updated: Aug. 24 2023 See thread for details