Jump to content

[1.8] cant get ItemTexture to load in-game.


bfox1

Recommended Posts

So after a few hours of getting the SteelIngot.json to be read, Now im having problems getting the texture to load in-game.

 

No errors get displayed to console and ive been trying different methods for other people and how they got their textures to work. So far I have nothing and Results remain the same. The steel ingot is a Block with the missing texture on it instead of the texture it is suppose to have

 

Here is the GitRepo. I appreciate your guys help! Still trying to figure out 1.8 :P

https://github.com/bfox1/HardCoreTrees/tree/master

Link to comment
Share on other sites

I have seen that and even adding

 

    public static void registerItem(Item item , int metadata, String name)

    {

        ItemModelMesher mesher = Minecraft.getMinecraft().getRenderItem().getItemModelMesher();

        mesher.register(item, metadata, new ModelResourceLocation(name, "inventory"));

    }

im still getting no luck loading up the texture. I wonder if im doing it all wrong. But im more certain that everything is right.

Link to comment
Share on other sites

Found the Problem. I am going to assume this is a Bug of some form as i dont believe its intended to be here.

 

For those people who have done it right, but still end up not seeing their texture. Before you try this, make sure the code is correct and if so, create a New world. Dont understand why, im sure this is a bug that will be soon squashed. but it loads the texture perfectly in the new world and anyworld after that.

 

dNDIvO4.png

Link to comment
Share on other sites

Minecraft.getMinecraft().getRenderItem().getItemModelMesher();

        mesher.register(item, metadata, new ModelResourceLocation(name, "inventory")) should go under the FMLIntitializationEvent function, and just copy json of a diamond and change the minecraft:diamond/Items to modid:item/Items

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.



×
×
  • Create New...

Important Information

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