#my 3d hat works in 1.19 but not work in 1.20 and 1.20.1 any suggestions ?
63 messages · Page 1 of 1 (latest)
General Information:
The game creates a "texture atlas" (combination of all textures into one file) for block/item models.
For performance reasons as of Java 1.19.3 the game by default only loads textures from within textures/item and textures/block (and any folders within those two folders) into that atlas instead of reading through every model for the relevant textures.
_________________________
Making the game load from custom directories
If you want the game to add textures from other directories (that are still somewhere within the "textures" folder) to that atlas you will need to create a blocks.json file in YourPack/assets/minecraft/atlases:
Example blocks.json
{
"sources": [
{
"type": "directory",
"source": "custom",
"prefix": "custom/"
}
]
}```
This example would make the game add _all_ textures that are within `textures/custom` to the atlas. This **even** applies to images that are not used by your models, so keep your pack clean for better performance and smaller size!.
**_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_**
**Additional/more specific information**:
If you have several custom directories you can add several json objects in the "sources" list/array.
blocks.json's of different packs combine btw, so you don't need to worry that one pack will stop another pack from loading their textures.
Here is also an example pack from a Minecraft dev (boq) with some more specific examples (like only using the face part of the default pig texture instead of loading all entity textures or the whole pig texture): <https://cdn.discordapp.com/attachments/593812273164976166/1042452631743901756/sprites.zip>
The official blog post with the changes (you will have to scroll down quite a bit for the relevant information): <https://www.minecraft.net/en-us/article/minecraft-snapshot-22w46a>
where in your pack are the textures?
are they directly in the textures folder or are they inside a folder that is inside the textures folder?
they inside a folder
in hat_textures
i did custom hat_textures
but it didnt work
k, what did you name the file in atlases and what did you put in it?
the file in atlases has to be called blocks.json (literally)
blocks.json, not block.json
can you open one of the .json models (that loads without textures ingame) in a text editor?
and show the first few lines of text
and you are saying that worked in 1.19?
cause those texture paths look like they would never work that way
no its for 1.20.1
I know, but you said it worked in 1.19
i did a 1.20.1 version
and I'm questioning whether that can be true or not
cause those are not valid texture paths
in neither version
cause that would look for assets/minecraft/textures/textures/hat_textures/glasses.png.png
its not the texture pack worked on 1.19 its a 1.20.1 version that you said me to make
in this message
its works on 1.19 but when 1.20 and 1.20.1 its looks life this
So you did say that it WORKED when you tried it in 1.19
But I'm saying that texture path in your model could have never worked, not even in 1.19
can i send you the texturepack worked in 1.19 in dm or in there ?
change those texture paths to "minecraft:hat_textures/glasses"
unless you literally have another folder called "textures" inside your "textures" folder
yes beacuse i have to make the misc
pumpkinblur thing
this is the pack worked on 1.19
the misc folder is fine
your custom hat_textures folder is fine
your texture paths inside your model here aren't
this is the pack i show you and have atlases
yeah, the 1.19 pack works cause your model has a valid texture path
this here isn't a valid texture path
without the .png
and the only reason this even worked in the first place is cause you used Optifine, else that capital letter in the texture name would have invalidated the whole model
yes
(btw. that minecraft: part is optional since the game defaults to that anyways, so you can keep it or remove it and it will still work the same)
ok im going to try it and im sorry to bother you so much .d
thank you its working now sorry to bother you so much again :')
!close
Channel closed ----------