Jump to content

Recommended Posts

Posted (edited)

I made a TileEntity and renderer for it. It renders fine in world, but in inventory and in hand it's just block with missing texture. I tried to find a way to fix it on forums, but not succeeded. I believe I miss renderer registration or do it in wrong place. Can you point me at mistake?

Here's my block: https://github.com/IamMaxim/galedwell/blob/89d5eee59ebd5b07d78eb0ff83bffd17e55cb19b/src/main/java/ru/iammaxim/tesitems/Blocks/BlockChest.java

Tile entity https://github.com/IamMaxim/galedwell/blob/89d5eee59ebd5b07d78eb0ff83bffd17e55cb19b/src/main/java/ru/iammaxim/tesitems/Blocks/BlockChestTileEntity.java

TESR https://github.com/IamMaxim/galedwell/blob/89d5eee59ebd5b07d78eb0ff83bffd17e55cb19b/src/main/java/ru/iammaxim/tesitems/Blocks/BlockChestTileEntityRenderer.java

TESR registration: here https://github.com/IamMaxim/galedwell/blob/89d5eee59ebd5b07d78eb0ff83bffd17e55cb19b/src/main/java/ru/iammaxim/tesitems/Blocks/mBlocks.java#L41

and here https://github.com/IamMaxim/galedwell/blob/89d5eee59ebd5b07d78eb0ff83bffd17e55cb19b/src/main/java/ru/iammaxim/tesitems/Proxy/ClientProxy.java#L37

 

I tried moving initModels to init event (from preInit), but this hasn't helped. No info about missing model variants appear (i tried search)

Edited by IamMaxim
Posted

Ok for registering your inventory, use ForgeHooksClient.registerTESRItemStack. I know its deprecated, but use it. Currently forge does not support TESR rendering in inventory.

Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.

Posted (edited)

Well it should. Put it in init and show me the clientproxy code.

Edited by Leomelonseeds

Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.

Posted

No, I tried search and found nothing. Log: 

  Reveal hidden contents

 

Posted

Fixed it. I had a lot of other errors related to JSON files, and forge simply skipped others (including block_chest_01 errors). I fixed these errors and block_chest_01 error appeared, then I fixed it.

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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