Jump to content

Recommended Posts

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!

Posted

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?

Posted
  On 10/28/2018 at 2:36 PM, IgazHarcos said:

Why I get this error messige?

Expand  

The error is pretty obvious

  On 10/28/2018 at 11:48 AM, IgazHarcos said:

Missing data for item 'minecraft:dirt'

Expand  

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.

  • Thanks 1
Posted

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"!

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.

Announcements



×
×
  • Create New...

Important Information

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