So after I moved the registerBlockRenderer call to the main class it crashed. Turns out it was the test block. I will look into that. But the main metadata blocks worked! Finally!
Thank you so much for you patience and help! It is greatly appreciated! <3
The reason behind all those screwups was because I was getting tired, screwed around with the code and just left it there.
But I've now moved the BlockRenderRegister.registerBlockRenderer into preInit in the client proxy. The only change is that no modded blocks have inventory models.
Ok, I think I understand that part now.
But back to square one, how do I make it work in the inventory? Every block is still a black and purple block in the inventory.
I'm quite confused by this stage.
What I can understand, I need to remove "{ "model":"hertzole:wood_white" } from ""type=white": { "model":"hertzole:wood_white" }".
I also changed the end of the ModelLoader function to "new ModelResourceLocation("hertzole:wood_colored#type=white")" and now I've got the world model but not the inventory model.
I think I am starting to understand now. But let's see if I get this straight.
I should go into "wood_colored.json" and add ""white": { "model":"hertzole:wood_white" }," under variants.
Then in the render register add this to the ModelLoader function "new ModelResourceLocation("hertzole:wood_colored#white")".
Then make sure I have two json files called "wood_white". One located in models/block and one in models/item.
If that is the case, I must have done something wrong. The white block turned into a purple and black block in both the inventory and in the world.
The reason I have so many was because some error messages said it couldn't find these blockstates so I created them to try and fix it and then I never got around to delete them.
But anyways, I tried this "new ModelResourceLocation(modid + ":wood_colored#white")" and "new ModelResourceLocation(modid + ":wood#white")" but none worked. What am I missing?
Woops, my bad. Here is the actual json structure.
With the variant, do you mean like this? "new ModelResourceLocation(modid + ":" + file, modid + ":" + "wood_colored"));" or am I just being stupid?
I am also not sure what you mean with the second thing.