SHsuperCM / CITResewn

Fabric implementation of mcpatcher's cit
MIT License
166 stars 94 forks source link

Model texture not loading #462

Closed MaraSgit closed 1 month ago

MaraSgit commented 1 month ago

Describe the Issue (clear and concise description of what the bug is, provide logs)

I was trying to port my old Totem Model to 1.21 and the texture is not loading. I tried to run it in optifine and everything is fine.

CITResewn

2024-09-16_08 53 22

Optifine

2024-09-16_09 06 35

To Reproduce (if applicable, explain how someone would go about reproducing this issue, attach a resourcepack if applicable)

Load the resourcepack in CITResewn

[08:55:44] [Worker-Main-34/INFO]: [citresewn] Linking baked models to item CITs...
[08:55:44] [Worker-Main-34/WARN]: Missing textures in model citresewn_model_path:minecraft/optifine/cit/fox_of_undying/fox_of_undying#inventory:
    minecraft:textures/atlas/blocks.png:minecraft:textures/entity/fox/fox_sleep.png
[08:55:44] [Worker-Main-34/WARN]: Missing textures in model citresewn_model_path:minecraft/optifine/cit/polar_fox_of_undying/polar_fox_of_undying#inventory:
    minecraft:textures/atlas/blocks.png:minecraft:textures/entity/fox/snow_fox_sleep.png

Checklist (go through and check these when relevant)

SHsuperCM commented 1 month ago

If I recall correctly 1.20.4 was the version that made resourcepacks require atlases.

Basically whenever you need to use a texture that is not in the items or blocks folders, you need to add it to the blocks atlas. This is true for textures in entity as well, vanilla minecraft also does this to add entity textures like bells and conduits.

Look at the vanilla resourcepack if you need an example and I think the minecraft wiki explains atlases.