Jump to content

Hertzole

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Hertzole

  1. My bad. I will fix that. But now I think I can keep going myself. Again, thanks for all the help!
  2. 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
  3. Will fix what you pointed out. But how do I get preInit to call then?
  4. Forgot about that. Sorry. I've pushed the changes.
  5. 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.
  6. Here. https://github.com/Hertzole/Colored-blocks
  7. I wasn't. But as of what I can see, nothing changes and the message persists.
  8. What about "[Client thread/ERROR] [FML]: Model definition for location hertzole:wood_colored#inventory not found"?
  9. Latest log: The current code. As of right now I am only trying to register the white block. Lastly, the stucture.
  10. The reason I have so many is because of the tutorial I followed.
  11. 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.
  12. 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.
  13. 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.
  14. 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?
  15. 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.
  16. But since my blocks only appear as black and purple blocks in the inventory, something must be wrong, right? I'm sorry if I am missing some super obvious detail here but I don't have much knowledge about Minecraft's "new" way of handling blocks and such.
  17. The "registerBlockRenderer()" function was called in the init in my ClientProxy. I changed it to preInit and that just seem to have made it worse since now the test block doesn't get it's item model either. And as for the blockstate file, I honestly have no idea on how to do anything like it so if it isn't "super duper important", we can skip that. EDIT: Every time I forgot to add that I keep getting "Model definition for location hertzole:wood_colored#inventory not found" in the console.
  18. In the rendering class (BlockRenderRegister), I changed the line Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), meta, new ModelResourceLocation(modid + ":" + file, "inventory")); to ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), meta, new ModelResourceLocation(modid + ":" + file)); but it didn't seem to do much, except saying it couldn't find wood_<color>.json. So I created a json file in blockstates for each color but that did nothing either. I also removed this part from the preInit in the BlockRenderRegister And lastly, I am not sure how I can use the blockstate file for the items.
  19. Hi I am having some problems with trying to render the item/hand model for my metadata blocks. It just appears as a black and purple blocks. I followed this tutorial and added a bit to my code. The only thing I added was some utility functions and the support for metadata blocks up to 16, like wool. So when it comes to the item rendering of the blocks, I have no idea why it isn't working. I have a simple test block that works perfectly but still these metadata blocks don't work. Since that works it proves that there is nothing wrong with the path to the actual models.I've been sitting here for at least 5 hours to try and fix this. Endless Google searches and attempts to fix it have gotten me nowhere. This is my only chance, pretty much. So this is the actual code that handles rendering. Now this is the "wood_colored" blockstate json or whatever you could call it. And the BlockProperties class. And lastly, just a JSON file from the item models. In this case, "wood_blue". I can't really see anything that I've missed in the code. Any help is greatly appreciated! Even more appreciated if I can get it pretty quick. I need to do this for a school project that is quickly reaching it's deadline.
×
×
  • Create New...

Important Information

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