Jump to content

[SOLVED]1.12.2 Some items doesn't work in recipes json file


Recommended Posts

Posted (edited)

Hey guys,

I've just started modding a week ago so I'm pretty new to this, but I like to think I know the basics of Java.

Some items doesn't work in my "assets.lfm.recipes.recipe_example_item.json" as a crafting ingredient or result.

Here's my "recipe_example_item.json" for item "example_item".

recipe_example_item.json

{ 
    "type": "minecraft:crafting_shapeless",

    "ingredients": 
    [

    {
      "item": "minecraft:dirt"
    },

    ],

    "result": 
    {
        "item": "lfm:example_item",
        "count": 1
    }
}

 

I have a list of tested items not usable in crafting: golden_apple, dirt, grass_block, glowstone, stone, any of the brewed potions except potion(Water bottle), and I'm sure many more.

Edited by SpinAttack
Posted

Well first of all this recipe's json is broken, it's syntax is invalid. 

Secondly if the item in the recipe has subitems(read: metadata that defines different states) you need to specify the data property in your recipe too.

12 minutes ago, SpinAttack said:

golden_apple

has 2 variants - normal apple and notch apple thus requires the data property

12 minutes ago, SpinAttack said:

dirt

Has 2 variants - dirt and coarse dirt thus requires the data property

12 minutes ago, SpinAttack said:

grass_block

There is no item with a registry name of grass_block.

12 minutes ago, SpinAttack said:

glowstone

This should work without issues since it has no subitems.

12 minutes ago, SpinAttack said:

stone

Has 7 variants - stone, granite, diorite and andesite(+ polished variants) thus requires the data property

12 minutes ago, SpinAttack said:

any of the brewed potions except potion(Water bottle)

Since potions use NBT data to differentiate between different potion types you would need to specify that NBT data in the ingredient. Unfortunately 1.12.2 isn't capable of recognizing NBT in ingredients. You would need a custiom recipe ingredient parser.

  • Thanks 1

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.