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

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

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.

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.