#model is missing its texture

47 messages · Page 1 of 1 (latest)

slate ruin
#

its just missing its texture lol, any idea on how i can call it?

long marten
#

!faq java-1.19.3-textures

fierce dockBOT
# long marten !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>
long marten
#

Also, just double check the pathing in your .json and the actual texture

slate ruin
#
    "parent": "item/handheld",
    "textures": {
        "layer0": "item/bell"
    },

    "overrides": [
        {"predicate": {"custom_model_data":1}, "model": "tjm_frostbite:block/custom/test"}
    ]
}``` this seems correct, right?
#

then theres this

{
    "parent": "item/handheld",
    "textures": {
        "layer0": "item/bell"
    },

    "overrides": [
        {"predicate": {"custom_model_data":1}, "model": "item/bell/test"}
    ]
}```
#

im hella confused lol

long marten
slate ruin
#

how do i put it in? i already have one of them in my resource pack

slate ruin
slate ruin
#

i give up for now

#

nearly been 2 hours

pulsar karma
#

ehm... for the item folder, you don't need the atlas json...

#

I also have no clue what boyjedi is about with it haivng to be in your test model?...

#

Sent the first few lines of your test model, the textures are likely just not linked properly.

slate ruin
#

idk which one it is

pulsar karma
#

I doubt your custom texture is called texture and saved in the assets folder?

pulsar karma
#

Your textures should be in the textures folder, not models.
I'd recommend assets/tjm_frostbite/textures/block/test.png
And in model file, the texture path would be tjm_frostbite:test

#

(The custom folder isn't necessary, as you are already using a custom namespace)

slate ruin
pulsar karma
#

The texture is still in the models folder.

slate ruin
#

oh yeah

pulsar karma
#

and the path inside your model file should be tjm_frostbite:block/test

slate ruin
#

that better?

pulsar karma
#

yep, that path loos correct

slate ruin
pulsar karma
#

without the textures part

#

Just tjm_frostbite:block/test

slate ruin
#

:D ty now i can create mostly anything

#

i can even stand on it B)

pulsar karma
#

If you first save your textures (into the correct location), then your model.
Blockbench will automatically put in the correct path btw.

slate ruin
#

i got no clue how to do that if im honest

#

new to blockbench

pulsar karma
#

Right click the texture > Save As and select the folder where to save them

slate ruin
#

ah

slate ruin
#

:resolved :

#

!close