mojira.dev
MC-256668

Texture pack custom models cant read textures outside of textures/block

Moderator Note

In 1.19.3 and later, models can only access textures in the block and item texture folders by default. This is part of an optimization that makes resource loading faster!

If this broke your pack, you can fix it with one of these steps:

  • For custom textures, simply move them to the block or item texture folders in your namespace, and update the references to them.

  • To reference vanilla textures in other folders, create an atlas JSON file, following the steps in the 22w46a changelog.

Texture pack custom models cant read textures outside of textures/block

How to replicate : 
1. Create a custom model 
2. Use a texture in "textures/(Custom named folder)", you will get a missing texture model which did not happen in previous versions (Ie 1.19.2
more info :
If you use "textures/block" or "textures/block/(Custom named folder)" the issue won't happen

Linked issues

Attachments

Comments 11

For better reproducablility, could you please attach an example resource pack?

Done Added a resource pack with the warped fungus model
should work on 1.19.2 but bugs on 22W42A

This too is also broken for my pack my 3d boats have missing textures for the models same applies for signs, minecarts, potion bottles, armor stands. Models are fine it just the textures that break. Heres the link for the pack if you use it in 1.19.2 its fine but for the snapshot it isnt. Resource Pack Link

This issue is not environmentally exclusive (exclusive to the system that's currently stated within the "Environment" field of this ticket). This problem also causes warnings within the game output console. Here are some screenshots (credit to Mr3DAlien for this info):

[media][media]

Some updates on this issue:

According to @unknown in the Minecraft Realms Slack:

It's very intentional and done for performance and future compatibility purposes.
If we were to support any path, we would need a very strong reason for why you can't place block textures in /textures/block

So instead of doing a:b/item/c (file assets/a/textures/b/item/c.png) you can do a_b:item/c (assets/a_b/textures/item/c.png) or a:item/b/c (assets/a/textures/item/b/c.png)

1 more comments

Not sure; we'll just have to wait for Mojang to triage this ticket. 🙂

Well that *unmentioned* change is going to break a ton of resource packs...
I hope this is change reconsidered. I have a bunch of textures in textures/entity folders because those textures (applied to block/item models) are used to create entities via armor stands, not as actual blocks nor items.

Also hoping on a (partial) reversal on this to allow models to load textures from native paths such as /assets/minecraft/textures/entity

It's just so funny how for some things Mojang reply with "care for resource packs"

I hear you! That's unfortunately going to break many existing resourcepacks, it needs to be carefully planned with many parties. 

- Chi under my bug report for not mirrored mob limbs

But for other things they just do it without asking and knowing that it will break soooo many packs.

This is literally terrifying for pack makers... please change this back/fit it.

LightX

(Unassigned)

Community Consensus

(Unassigned)

22w42a

Retrieved