Jump to content

Recipes not working


Recommended Posts

16 hours ago, SamuraiDestroy said:

The recipes I added don't work. I've made sure that all of them use the correct mod id and item names but they just don't work. Attached is an image of the hierarchy and images of the recipe .json files.

Could be that you might need to refresh the files in your IDE for them to be found by the game. Otherwise I would recommend checking the log to see if it says anything about the recipes not working.

Link to comment
Share on other sites

12 hours ago, SamuraiDestroy said:

Refreshing did nothing and nothing seems out of the ordinary in the log, at least in the area of it after I joined the game. What exactly should I be looking for in the log anyway?

I would do a search for the recipe file names in the debug log file to see if something went wrong.

Link to comment
Share on other sites

Ah found it.

[Render thread/ERROR] [net.minecraft.world.item.crafting.RecipeManager/]: Parsing error loading recipe beyond:soul_shard_from_soul_shard_block
com.google.gson.JsonSyntaxException: Expected count to be a Int, was "9"
[Render thread/ERROR] [net.minecraft.world.item.crafting.RecipeManager/]: Parsing error loading recipe beyond:soul_shard_block
com.google.gson.JsonParseException: An ingredient entry needs either a tag or an item

Any idea what I did to cause this?

Link to comment
Share on other sites

37 minutes ago, SamuraiDestroy said:

Any idea what I did to cause this?

You need to remove the quotes from the nine so it just becomes:

"count": 9

and you need to remove the colon inside the string so it just becomes:

"item": "beyond:soul_shard"

I recommend using data generators to avoid having to manually create the json recipes and avoid these problems in the future.

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.