Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

Seeing a mods.toml file I am assuming you are in 1.13.

Recipes in 1.13 are not located within the assets folder. Instead they are now located within the data folder as they are now a part of a datapack instead of a resourcepack.

  • Author

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

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.