Jump to content

Texture won't render (again)


izako

Recommended Posts

First ALL Items has Model so DON'T use IHasModel.

Second use ModelLoader#setCustomModelMesher instead of Main#proxy#registerItemRender (Use in init stage)
 

ModelLoader.setCustomModelResourceLocation([YOUR_ITEM],0,new ModelResourceLocation([YOUR_ITEM].getRegistryName(),"inventory"));

And while registering items/blocks use List! don't use toArray() and you must enter your array size new Block[0] creates array with 0 size use new Block[ModBlocks.BLOCKS.size] !

 

@Draco18s anoher IHasModel user!

Edited by Zamion101

Developing Kodev Minecraft Hardcore Mod!

If You're Wondering, My Mod Page. http://minecraft.curseforge.com/projects/minecraft-hardcore-mod

Link to comment
Share on other sites

1 minute ago, diesieben07 said:

ModelLoader.setCustomModelResourceLocation. And it must be called in ModelRegistryEvent, not init.

You're rigth sorry my bad.

 

3 minutes ago, diesieben07 said:

No magic or intermediary lists needed.

Lists is more clear than adding all blocks staticly, don't you think like that?

 

Developing Kodev Minecraft Hardcore Mod!

If You're Wondering, My Mod Page. http://minecraft.curseforge.com/projects/minecraft-hardcore-mod

Link to comment
Share on other sites

I don't know most of what you guys said felt like suggestions rather than the answer for the actual problem can you address the cause of the problem and how to fix it specifically? ofcourse I take suggestions too but I wan't to know the cause and answer of the problem itself.

Link to comment
Share on other sites

22 minutes ago, Zamion101 said:

 


ModelLoader.setCustomModelResourceLocation([YOUR_ITEM],0,new ModelResourceLocation([YOUR_ITEM].getRegistryName(),"inventory"));

 

Use for registering models/texture in ModelRegistryEvent.

Edited by Zamion101

Developing Kodev Minecraft Hardcore Mod!

If You're Wondering, My Mod Page. http://minecraft.curseforge.com/projects/minecraft-hardcore-mod

Link to comment
Share on other sites

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.