Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [Solved]Crash Involving Recipes
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
Usapeppy

[Solved]Crash Involving Recipes

By Usapeppy, August 16, 2015 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Usapeppy    0

Usapeppy

Usapeppy    0

  • Tree Puncher
  • Usapeppy
  • Members
  • 0
  • 6 posts
Posted August 16, 2015

Hi, I'm getting a crash in eclipse saying something about my crafting recipes, I went over them a few times trying to fix it but no such luck. Any help will be appreciated!

 

Crash Report/All information:

http://pastebin.com/C7q4JDF6

 

 

 

Code in my main file:

http://pastebin.com/L0WiEK7x

  • Quote

Share this post


Link to post
Share on other sites

TheGreyGhost    711

TheGreyGhost

TheGreyGhost    711

  • Reality Controller
  • TheGreyGhost
  • Members
  • 711
  • 2805 posts
Posted August 16, 2015

Hi

 

One of the three items you use on TinyTools.java:81 is null.

 

Also you should register recipes in init (FMLInitializationEvent) not in preinit (FMLPreInitializationEvent)

 

This link has some info on how to debug this kind of error.

http://www.terryanderson.ca/debugging/run.html

 

-TGG

  • Quote

Share this post


Link to post
Share on other sites

skeeter144    1

skeeter144

skeeter144    1

  • Tree Puncher
  • skeeter144
  • Members
  • 1
  • 15 posts
Posted August 16, 2015

Registering your items in the FMLInit stage isn't the problem.  This is actually a good practice, because if you have other mods depending on your mod, or depend on other mods' items, you want them to be completely initialized before you do your recipes.

 

The problem is you never initialized (created) your itemTinyStick.  Just make this one the same way you created all your other items, and you'll be good!

 

Hope I could help!

  • Quote

Share this post


Link to post
Share on other sites

Usapeppy    0

Usapeppy

Usapeppy    0

  • Tree Puncher
  • Usapeppy
  • Members
  • 0
  • 6 posts
Posted August 16, 2015

Thanks so much - will try your fix now!

  • Quote

Share this post


Link to post
Share on other sites

skeeter144    1

skeeter144

skeeter144    1

  • Tree Puncher
  • skeeter144
  • Members
  • 1
  • 15 posts
Posted August 16, 2015

Woops, nevermind...thought you were registering them in Init.  Like TheGreyGhost said, you should register them in init, but that's not what is causing this error.

 

And no problem, hope it works!

  • Quote

Share this post


Link to post
Share on other sites

Usapeppy    0

Usapeppy

Usapeppy    0

  • Tree Puncher
  • Usapeppy
  • Members
  • 0
  • 6 posts
Posted August 16, 2015

Thanks for helping me fix that problem! Now to fix the other...

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DaemonUmbra
      Forge 28.1.10 won't show on launcher + 28.1.0 fails to work

      By DaemonUmbra · Posted 16 minutes ago

      Where are you looking in the launcher? I suspect you are looking at Profiles/Installations rather than Versions
    • Simon_kungen
      [1.14.4] Sync ItemStack Capability Data + Multi-Capability Provider casting error

      By Simon_kungen · Posted 26 minutes ago

      So yeah... looks like none of my questions has been answered lately. Should I give up on capabilities for now?
    • TheGreenSquarez
      Forge 28.1.10 won't show on launcher + 28.1.0 fails to work

      By TheGreenSquarez · Posted 1 hour ago

      here's the screenshot.
    • TheGreenSquarez
      Forge 28.1.10 won't show on launcher + 28.1.0 fails to work

      By TheGreenSquarez · Posted 1 hour ago

      I'm quite sure it just updated to the latest version.
    • DragonITA
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA · Posted 1 hour ago

      Ok, i want try Something, pls wait.
  • Topics

    • TheGreenSquarez
      4
      Forge 28.1.10 won't show on launcher + 28.1.0 fails to work

      By TheGreenSquarez
      Started Yesterday at 11:21 AM

    • Simon_kungen
      1
      [1.14.4] Sync ItemStack Capability Data + Multi-Capability Provider casting error

      By Simon_kungen
      Started 23 hours ago

    • DragonITA
      33
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started Monday at 10:06 AM

    • jun2040
      1
      Game crashing when the block is activated

      By jun2040
      Started 2 hours ago

    • Prasodym
      7
      produces unregistered item minecraft:wooden_door

      By Prasodym
      Started April 28

  • Who's Online (See full list)

    • ShyAlpha22
    • Legenes
    • Simon_kungen
    • DaemonUmbra
    • Cerandior
    • Choonster
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [Solved]Crash Involving Recipes
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community