GalianRyu Posted April 5, 2015 Posted April 5, 2015 So I'm getting close to actually finishing my the first part of my mod, and everything works, but I added some doors with the mod, and I made them following the Minecraft doors. I have ItemDoor objects for each one and therefore the blocks don't have Item models. Everything is rendering correctly and happily, but as the game loads up, the console spews out: [Client thread/ERROR] [FML]: Model definition for location rpcraft:lockedDoorBlock#inventory not found for each of the different door blocks. Is there a way to make it stop doing that? Quote Check out my Mod: The RPCraft Toolkit!
laci200270 Posted April 5, 2015 Posted April 5, 2015 Take a look at: http://www.wuppy29.com/minecraft/1-8-tutorial/updating-1-7-to-1-8-part-3-basic-blocks/ Quote Sorry for my English
GalianRyu Posted April 5, 2015 Author Posted April 5, 2015 Did you actually read my post? I have everything modeled and rendered correctly, these block items don't appear in the inventory at all and I shouldn't need to put a bunch of extra model files in my assets just to stop an error that doesn't even prevent Minecraft from opening. I just wondered if someone more experienced than me had also made blocks that never get rendered in the inventory and knew how to stop the error from being displayed, it doesn't display on vanilla doors or beds. Quote Check out my Mod: The RPCraft Toolkit!
laci200270 Posted April 5, 2015 Posted April 5, 2015 If only in inventory not rendering try this: renderItem.getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(Reference.MODID + ":" + block.getUnlocalizedName().substring(5), "inventory")); (Sorry for that,I not good in English) Quote Sorry for my English
GalianRyu Posted April 5, 2015 Author Posted April 5, 2015 I did try that (I assume you mean just declaring a model for it anyway even though I didn't make one, still gives the error. So does trying to have it use a different model, I tried setting it to the door item's model and didn't work either). Any other ideas? Quote Check out my Mod: The RPCraft Toolkit!
61352151511 Posted April 5, 2015 Posted April 5, 2015 Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getModelManager().getBlockModelShapes().registerBuiltInBlocks(block); Quote
GalianRyu Posted April 5, 2015 Author Posted April 5, 2015 Still getting the error, dang that looked like the right way to go too. Quote Check out my Mod: The RPCraft Toolkit!
coolAlias Posted April 5, 2015 Posted April 5, 2015 Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getModelManager().getBlockModelShapes().registerBuiltInBlocks(block); ^^^ This is why I hate modding for 1.8. That and all the stupid f-ing JSON files. @OP I'm not sure how to do what you want via code, but you can copy a template json file for your non-rendering blocks. Of course you already know that, but it's a solution at least until you find a better way. Quote http://i.imgur.com/NdrFdld.png[/img]
GalianRyu Posted April 5, 2015 Author Posted April 5, 2015 Yeah, I just don't want to fill that model folder up with more stuff than it already has in it. I'm already certain anyone make a resource pack for 1.8 will end up looking at a lot of the mods and just going 'deer in the headlights' at all the extra stuff, but thank you for at least getting what I'm trying to do Quote Check out my Mod: The RPCraft Toolkit!
Recommended Posts
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.