#how to make an item texture work on my model in 1.20 using atlas

1 messages · Page 1 of 1 (latest)

daring cipherBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

violet cliff
#

!faq java-1.19.3-textures

daring cipherBOT
# violet cliff !faq java-1.19.3-textures
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>
violet cliff
#

assuming we are talking about a very basic atlas that just adds all images from one folder (and any folders inside of it) then that bot example should suffice for your needs.
If you need to only need one specific file or even only one specific part of a texture (like the face of the pig entity texture for example) it gets a bit more complex (not by a lot, but still a bit more work).

deep aspen
#

Ive looked at the examplke but it makes no sense to me because I have nver really worked with code or texture packs

#

also im using cusom textures instead of base game textures

#

also when i try to download the example it says that the page does not exist

daring cipherBOT
#

<:e:1149743621755641909>

violet cliff
violet cliff
#

but it makes no sense to me because I have nver really worked with code or texture packs
it literally says what those 4 lines of text do right below it
There is no code or anything. This is just a config file basically, and all you do is specify from where the game can load textures (besides textures/item and textures/block which are already specified as valid locations by the default pack, and atlas files get merged internally when the game loads).

So literally all you need to do is make that file with the name and at the location specified in that second part of the bot message and adjust custom to whatever you folder after "textures" is caleld instead.

deep aspen
#

ok tysm