Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

Check out my Mod: The RPCraft Toolkit!

  • Author

???  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.

Check out my Mod: The RPCraft Toolkit!

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)

 

Sorry for my English

  • Author

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?

Check out my Mod: The RPCraft Toolkit!

Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getModelManager().getBlockModelShapes().registerBuiltInBlocks(block);

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.

  • Author

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  :)

Check out my Mod: The RPCraft Toolkit!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.