The Meaning of Life, the Universe, and Everything.
Location:
Living in Tokuoka Time
Join Date:
4/1/2011
Posts:
48
Location:
Tokuoka Time
Minecraft:
Lv44EnderShaman
Member Details
For the life of me, I cannot seem to figure out what I'm doing wrong here, so I'd like to ask for some assistance.
I'm making an effort to include variable textures for certain blocks in a resource pack I'm working on, for an important update I want to release. In particular, I want Sand and Red Sand to have variable textures on the top faces of the blocks, and I'd like the weights of those textures to skew more towards certain texture variants having a rarer chance to appear. The idea is that the sand has a higher chance of appearing like their are rocks strewn across the top face at points, and a rare chance of the occasional Cow carcass and desert lotuses at points; purely aesthetic, but to add character to the world.
The problem is this: the variable textures don't appear at all, and appear to be overwritten by Minecraft's default textures. I've tried placing the resource pack as high as possible in the hierarchy for resource packs, but to no avail, and after examining the files of the other resource packs I have applied, I can conclusively say that the only textures that should be overriding my resource pack's are Minecraft's native textures, if that were the case; but considering the loading hierarchy I have is "Default Textures > My Resource Pack > Everything Else", my resource pack's models and textures for the Sand and Red Sand should be loading in place of vanilla's.
For an example: Here are the following JSON files for the blockstates and models of Sand, as of my resource pack. Please note that I provided the model for the primary Sand texture; the other models are the same in content except for the incrementing increase in the top texture's referenced filename:
My intent is that, for every model of Sand referenced, the top texture changes, whereas the side texture remains "sand_0"; likewise, for Red Sand variants, the textures referenced are "red_sand_[x]" and "red_sand_0", where [x] is the referenced variable texture.
Also included are pictures of the filepaths in Windows, with "File Names & Extensions" turned on for visibility. I have been editing and saving the files using Notepad++. Please reference them from the attachments to this post.
Can anyone tell me what I might be doing wrong, and how to fix it? Assistance will be much appreciated, and I thank you for your time, regardless.
Which version are you making this for? Your blockstate suggests 1.13.x, but your model files suggest 1.14.x so either way you have a mistake. Knowing which version you're making this for will help us to determine which one is the mistake.
I also ask that you post the complete paths, relative to /assets/ to all of these files. Just knowing they're in a folder somewhere isn't useful if we don't know how the folders are named.
The Meaning of Life, the Universe, and Everything.
Location:
Living in Tokuoka Time
Join Date:
4/1/2011
Posts:
48
Location:
Tokuoka Time
Minecraft:
Lv44EnderShaman
Member Details
I'm trying to make this work for 1.14.x, particularly 1.14.4. I've been referencing the blockstates files directly from the jar, and I had no knowledge of formats or changes being made between 1.13 and 1.14.
The filename paths are the standard as they should be: [root]/assets/minecraft/blockstates/block and [root]/assets/minecraft/models/block for the blockstates and model JSON, and the textures path is [root]/assets/minecraft/textures/block.
Rollback Post to RevisionRollBack
I've always had a deep respect, and I mean that most sincerely
The band is just fantastic, that is really what I think;
I'm trying to make this work for 1.14.x, particularly 1.14.4. I've been referencing the blockstates files directly from the jar, and I had no knowledge of formats or changes being made between 1.13 and 1.14.
The filename paths are the standard as they should be: [root]/assets/minecraft/blockstates/block and [root]/assets/minecraft/models/block for the blockstates and model JSON, and the textures path is [root]/assets/minecraft/textures/block.
OK, two problems then.
First, the /blockstates/ folder can't have a sub-folder. So just put your file in /blockstates/ rather than in /blockstates/block/ which is just redundant.
The second is the sand.json blockstate file. It looks like you were referencing the file from 1.13 since it starts out wrong. Instead of:
"variants": {
"normal": [
it should begin with:
"variants": {
"": [
since 1.14 does away with the "normal" state in favor of just an empty/blank state as its default.
The Meaning of Life, the Universe, and Everything.
Location:
Living in Tokuoka Time
Join Date:
4/1/2011
Posts:
48
Location:
Tokuoka Time
Minecraft:
Lv44EnderShaman
Member Details
That actually makes a lot more sense than I thought it would. Thank you so much! I'll make these tweaks to the files, and edit this post if anything else comes up.
EDIT: Alright, it looks like after tweaking the JSONs according to what you've said, the models are now loading as they should; a bit of time spent weighting them properly later, and the effect I'm going for with the Sand is implemented! Thank you again so very much! I've attached images of the results here, and I'm very proud with what I've got now.
For the life of me, I cannot seem to figure out what I'm doing wrong here, so I'd like to ask for some assistance.
I'm making an effort to include variable textures for certain blocks in a resource pack I'm working on, for an important update I want to release. In particular, I want Sand and Red Sand to have variable textures on the top faces of the blocks, and I'd like the weights of those textures to skew more towards certain texture variants having a rarer chance to appear. The idea is that the sand has a higher chance of appearing like their are rocks strewn across the top face at points, and a rare chance of the occasional Cow carcass and desert lotuses at points; purely aesthetic, but to add character to the world.
The problem is this: the variable textures don't appear at all, and appear to be overwritten by Minecraft's default textures. I've tried placing the resource pack as high as possible in the hierarchy for resource packs, but to no avail, and after examining the files of the other resource packs I have applied, I can conclusively say that the only textures that should be overriding my resource pack's are Minecraft's native textures, if that were the case; but considering the loading hierarchy I have is "Default Textures > My Resource Pack > Everything Else", my resource pack's models and textures for the Sand and Red Sand should be loading in place of vanilla's.
For an example: Here are the following JSON files for the blockstates and models of Sand, as of my resource pack. Please note that I provided the model for the primary Sand texture; the other models are the same in content except for the incrementing increase in the top texture's referenced filename:
My intent is that, for every model of Sand referenced, the top texture changes, whereas the side texture remains "sand_0"; likewise, for Red Sand variants, the textures referenced are "red_sand_[x]" and "red_sand_0", where [x] is the referenced variable texture.
Also included are pictures of the filepaths in Windows, with "File Names & Extensions" turned on for visibility. I have been editing and saving the files using Notepad++. Please reference them from the attachments to this post.
Can anyone tell me what I might be doing wrong, and how to fix it? Assistance will be much appreciated, and I thank you for your time, regardless.
Which version are you making this for? Your blockstate suggests 1.13.x, but your model files suggest 1.14.x so either way you have a mistake. Knowing which version you're making this for will help us to determine which one is the mistake.
I also ask that you post the complete paths, relative to /assets/ to all of these files. Just knowing they're in a folder somewhere isn't useful if we don't know how the folders are named.
Please help us to help you.
I'm trying to make this work for 1.14.x, particularly 1.14.4. I've been referencing the blockstates files directly from the jar, and I had no knowledge of formats or changes being made between 1.13 and 1.14.
The filename paths are the standard as they should be: [root]/assets/minecraft/blockstates/block and [root]/assets/minecraft/models/block for the blockstates and model JSON, and the textures path is [root]/assets/minecraft/textures/block.
OK, two problems then.
First, the /blockstates/ folder can't have a sub-folder. So just put your file in /blockstates/ rather than in /blockstates/block/ which is just redundant.
The second is the sand.json blockstate file. It looks like you were referencing the file from 1.13 since it starts out wrong. Instead of:
it should begin with:
since 1.14 does away with the "normal" state in favor of just an empty/blank state as its default.
I hope that helps you.
That actually makes a lot more sense than I thought it would. Thank you so much! I'll make these tweaks to the files, and edit this post if anything else comes up.
EDIT: Alright, it looks like after tweaking the JSONs according to what you've said, the models are now loading as they should; a bit of time spent weighting them properly later, and the effect I'm going for with the Sand is implemented! Thank you again so very much! I've attached images of the results here, and I'm very proud with what I've got now.