Posted February 11, 20178 yr Hi, I made a model in JSON and I managed to get a baked model from it to use in my custom IBakedModel. This model is rendering well, the only thing is: can I change the texture of that model (in code)? Because otherwise, I would need to create more json files with only a different texture. Edited February 11, 20178 yr by Kander16 Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
February 11, 20178 yr I think that is what blockstates are for. (https://mcforge.readthedocs.io/en/latest/blockstates/states/) so you need atleast one other JSON file. Than you can change the state of your block in the code and I think it should change the texture. Correct me if I am wrong.
February 11, 20178 yr Author I currently have for a custom IBakedModel for this block. I'm asking if you could change the texture of this model inside the IBakedModel. Because you can render the models in getQuads(). Thanks anyway Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.