Jump to content

Recommended Posts

Posted

SOLVED: Passing an int to the first argument of the ItemStack constructor was incorrect. It needed to be an actual item.

 

I'm attempting to add some ores and ingots, and most of the functionality appears to work. The furnace recipes I can initiate, but when smelting is finished, I get a crash involving a NullPointerException and ItemStacks. The research I've done makes it sound like it might be something to do with the metadata or initialization of the items, but my attempts to fiddle with those have proved fruitless.

 

I'm attempting to use metadata to represent some of the categories of items (ore and ingots so far), so those are located in their respective block and item classes.

 

Here's the ForgeModLoader-client-0 log: http://paste.minecraftforge.net/view/4f294e03

 

And here're the recipes, ingot code, and mod files. I'd be happy to provide any additional information.

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.