#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)

sonic elk
#

most likely this:

#

!faq java-1.19.3-textures

trim rainBOT
# sonic elk !faq java-1.19.3-textures

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>
median nest
#

but its still like this

sonic elk
#

where in your pack are the textures?

median nest
sonic elk
#

are they directly in the textures folder or are they inside a folder that is inside the textures folder?

median nest
#

they inside a folder

#

in hat_textures

#

i did custom hat_textures

#

but it didnt work

sonic elk
#

k, what did you name the file in atlases and what did you put in it?

median nest
#

hat_textures

#

like this

sonic elk
#

the file in atlases has to be called blocks.json (literally)

median nest
#

yes its named block

#

.json

sonic elk
median nest
#

sorry its blocks

sonic elk
#

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

median nest
#

this ?

sonic elk
#

and you are saying that worked in 1.19?

#

cause those texture paths look like they would never work that way

median nest
#

no its for 1.20.1

sonic elk
median nest
#

i did a 1.20.1 version

sonic elk
#

and I'm questioning whether that can be true or not

sonic elk
#

in neither version

#

cause that would look for assets/minecraft/textures/textures/hat_textures/glasses.png.png

median nest
#

its not the texture pack worked on 1.19 its a 1.20.1 version that you said me to make

sonic elk
#

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

median nest
#

can i send you the texturepack worked in 1.19 in dm or in there ?

sonic elk
# median nest

change those texture paths to "minecraft:hat_textures/glasses"

#

unless you literally have another folder called "textures" inside your "textures" folder

median nest
#

yes beacuse i have to make the misc

#

pumpkinblur thing

#

this is the pack worked on 1.19

sonic elk
# median nest

the misc folder is fine
your custom hat_textures folder is fine
your texture paths inside your model here aren't

median nest
sonic elk
#

yeah, the 1.19 pack works cause your model has a valid texture path

sonic elk
median nest
#

like this ?

sonic elk
#

without the .png

median nest
#

okay

sonic elk
#

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)

median nest
#

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 :')

median nest
#

!close

trim rainBOT
#

Channel closed ----------