Jump to content

Recommended Posts

Posted

Hello, I'm trying to make all of my blocks use the same .json (assets/.../blockstates/block_base.json & assets/.../models/block/block_base.json), but I have no idea how to do it.

Posted

blockstate filenames are based on the registry name, so my immediate response is "you don't".  The model, in turn, contains the block's texture, and I imagine you are not anxious to have all your blocks look identical.

 

 

Posted

I need to do it because I am registering blocks & items using a config file. Yes, all the blocks will have the same texture, and I'll try to change only the block color.

Using 

ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation("modid:base_item", "inventory"));

Works fine for items, but I'm not sure how to do it with blocks.

Posted
3 minutes ago, diesieben07 said:

Registry events fire before configs are loaded.

They are?
I'm using a config file to get things like item name, etc ... so I create the item using these arguments.
Everything works perfectly, the only problem is the texture of the blocks.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.