Jump to content

JSON Recipe files not registering


oscarglo

Recommended Posts

Hello,

I am trying to create a simple mod with an item and its crafting recipe.

Here is the structure of my project:

image.png.38b0edce20d5d50888448eb4b744ed1f.png

 

Here is the content of the wooden_stick.json file:

{
	"type": "minecraft:crafting_shapeless",
	"ingredients": [
		{
			"item": "minecraft:stick",
			"data": 0
		},
		{
			"item": "minecraft:leaves",
			"data": 0
		}
	],
	"result": {
		"item": "testmod:wooden_stick",
		"data": 0
	}
}

 

RecipeLoader shows 0 recipes loaded in the client thread, and 524 in the server thread.

The recipe isn't shown anywhere in game, and doesn't work.

Furthermore, adding an error to the JSON file does not print any error.

Edited by oscarglo
fail
Link to comment
Share on other sites

How do I structure that data folder?

I've tried this but it doesn't seem to be working...

image.png.a6eaf4cc8994bbfa40be004f78c35217.png

 

Nevermind, it seems to find the file. 

I just have a parsing error to sort out now, can you load item/block groups like #minecraft:leaves ?

Edited by oscarglo
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.