Posted October 14, 20186 yr 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 October 14, 20186 yr by SpinAttack
October 14, 20186 yr 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.
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.