Jump to content

Recommended Posts

Posted (edited)

I have a mod which introduces several different types of cord (e.g. straw cord, bark cord). Each type can be crafted into a corresponding basket (straw basket, bark basket). There's also a mixed cord basket which can be crafted by mixing together different cord types in the recipe. In my recipe patch files, I add the recipes for the individual cord baskets first, and the mixed cord basket last, like so:

Spoiler

   

         {
                "ingredientPattern": "X_X,XXX",
                "width": 3,
                "height": 2,
                "ingredients": {
                    "X": {
                        "type": "item",
                        "code": "stringsense:cord-*",
                        "name": "material"
                    }
                },
                "output": {
                    "type": "item",
                    "code": "game:basket-normal-{material}"
                }
            },
            {
                "ingredientPattern": "X_X,XXX",
                "width": 3,
                "height": 2,
                "ingredients": {
                    "X": {
                        "type": "item",
                        "code": "stringsense:cord-*"
                    }
                },
                "output": {
                    "type": "item",
                    "code": "game:basket-normal-mixed"
                }
            }

 

Until 1.22, that meant that using only one cord type would produce the corresponding single-cord basket, but using multiple types would default to the mixed cord basket. Now in 1.22, all recipe inputs are defaulting to the mixed cord basket. Even when the inputs are all the same cord type - meaning they should match the single-cord basket recipe first - they don't. But the handbook still shows the single-cord recipe for the single-cord baskets, so it is being read in correctly, it's just being given the wrong priority. The patch files are exactly the same, but are behaving differently when run in 1.21 vs 1.22.

Is anyone else experiencing this? Is it a known change to the patching API or something? Is there a workaround?

image_2026-04-24_17-24-30 (3).png

image_2026-04-24_17-24-30 (2).png

image_2026-04-24_17-24-30.png

Edited by Averixus
Posted

Well, I tried to make a minimum working example that used vanilla items instead of modded ones and.. it didn't replicate the issue. So whatever is happening is some obscure interaction between the specific details of my modded items and the code changes in vanilla 1.22?!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.