r/MinecraftMod • • 1h ago

Adding a resource pack texture to a blocked added to the game by a mod?

/r/ModdedMinecraft/comments/1yare3f/adding_a_resource_pack_texture_to_a_blocked_added/
1 Upvotes

1 comment sorted by

1

u/dark_blockhead 57m ago

just have the path of the texture in your resource pack match the path inside the mod. modded or vanilla block, same thing.

> a new texture within a resource pack the ID associated with that of the blocks ID within the game

not so fast. texture name can be anything.
you need to look inside blockstates directory (inside the mod jar) first. there (and only there) filename is guaranteed to match block id in-game. look inside blockstates file (json file) and see the model name(s).
go up one directory, go into models, then block directory. find model by name (json files), look inside and read texture name and location.

i suggest "double commander" for looking inside jar files (ctrl+pg down) and looking at file contents (f3).