Jump to content

Issue with parsing a json recipe file


elytraByte

Recommended Posts

Hello, I am working to implement a json recipe file into one of my mod's machine blocks. Everything seems to be going as desired, except I am getting the following error on startup. 

https://gist.github.com/elytraByte/62e6b3a56c1342c7c64b4c85a8505dc5

My recipe file has the following: 

{
  "type": "boulanger:separating",
  "ingredients": [
    {
      "item": "boulanger:hard_red_spring_wheat_item"

    }
  ],
  "output": [
    {
      "item": "boulanger:wheat_berries",
      "chance": 1.0
    },
    {
      "item": "minecraft:iron_nugget",
      "chance": 0.1
    }
    ]
}

As you can see, the recipe file contains the "type" so I am confused as to how I am receiving this error.

 

My recipe serializer lives in this class.

You can view all my code on my Github repository


Thank you for your time and insight!

Link to comment
Share on other sites

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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.