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 made JSON recipes by using a Youtube tutorial. THe recipes works fine, with items like torch or glass pane, but not with blocks.

 

I put this in the JSON file:

{
    "type": "minecraft:crafting_shapeless",
    "pattern": [
        "S",
        "D"
    ],
    "key": {
        "S": {
            "item": "minecraft:sand"
        },
        "D": {
            "item": "minecraft:dirt"
        }
    },
    "result": {
    "item": "lm:modern_block",
     "count": 2
        }
}

 

And I get an error:

 

[main/ERROR] [FML]: Parsing error loading recipe lm:modern_block
com.google.gson.JsonParseException: Missing data for item 'minecraft:dirt'

 

What am I did wrong?

 

Thanks for any help!

  • Author

Okay ,this error is happening regardless the recipe is shaped or shapeless. Blocks not working, but items working perfectly. Why I get this error messige? How can it not find the data of minecraft blocks?

47 minutes ago, IgazHarcos said:

Why I get this error messige?

The error is pretty obvious

3 hours ago, IgazHarcos said:

Missing data for item 'minecraft:dirt'

It means that your recipe is missing the "data" property for that ingredient. You need to specify the data property for items that have subtypes, like dirt which has 2 subtypes - normal dirt and coarse dirt.

  • Author

Jesus christ, the tutorial not mentioned that, that's why it wasn't oblivious for me, not mentioning this is the first time I develop JSON recipe.

 

Thanks for Your answer, i'll look into "data"!

  • Author
2 minutes ago, diesieben07 said:

This is why the usual Youtube Minecraft coding tutorial is hot garbage.

Yes I know, I have problems a few times during the tutorial, but now i know what was the problem, and my mod works!

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.