Jump to content

Recommended Posts

Posted (edited)

so when i run Minecraft my item doesn't render in my hand but when i place it down it works just fine. I've looked through my code and from as far as i could see i haven't misspelled anything. anyways here's the errors i'm getting. (i'm sure its something stupid i'm missing.)

 

Picture to show what i mean.

  Reveal hidden contents

 

Error i'm getting:

  Reveal hidden contents

 

And here is the github of my code. thanks in advanced.

 

https://github.com/KandiRaver/Learning-to-mod

Edited by Seathe
Added a picture
Posted (edited)

When registering your item model you screwed up the model domain (modid). therefore it tries to load things like minecraft:tm#ore_end_copper#inventory which obviously doesn't exist.

 

Try chaning

Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory");

 in your BlockBase class to 

Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, new ModelResourceLocation(new ResourceLocation(Reference.MODID, name), "inventory"));

 

Edited by deerangle
Posted

Can you paste your code on here so we may see what might've gone wrong? It's a pretty common problem but there are several possible reasons for this to occur and we won't be able to know for sure unless we see all your java and json files relating to your block. 

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.