Jump to content

I followed the online wiki step by step but my patch still wont work.


Recommended Posts

I just wanted to make a patch to remove a recipe from another mod conflicting with my personal modpack but it didnt work. This is what I did:

mymodZip >>> assets/mymod/patches/moremolds-recipes-grid-plank-removal.json

Inside the json:

[
    {
        file: "moremolds:patches/survival-recipes-grid-plank.json",
        op: "add",
        path: "/enabled",
        value: "false"
    }
]

Did I forget anything?

Link to comment
Share on other sites

On 1/24/2024 at 6:52 AM, ZergMazter said:

I just wanted to make a patch to remove a recipe from another mod conflicting with my personal modpack but it didnt work. This is what I did:

mymodZip >>> assets/mymod/patches/moremolds-recipes-grid-plank-removal.json

Inside the json:

[
    {
        file: "moremolds:patches/survival-recipes-grid-plank.json",
        op: "add",
        path: "/enabled",
        value: "false"
    }
]

Did I forget anything?

You can't patch another patch, it leads to undefined behavior.

Link to comment
Share on other sites

@ZergMazter If the author doesn't change this, then you have only a couple of options:

1. You're lucky and your mod loads after MoreMolds. So you can create an empty file assets/moremolds/patches/moremolds-recipes-grid-plank-removal.json in your mod, this will overwrite the original patch. 

2. Make a patch via C#

3. Modify mod files directly

4. Do nothing and just get over it

Link to comment
Share on other sites

umm.  I'm not sure I understand what's being said here exactly, but...

You CAN essentially disable a patch made by another mod by simply patching the same file that the other mod patched.  Then use a "dependsOn" to ensure that your patch runs after the other mod's patch.

Maybe.  Probably.

Edited by Spear and Fang
Link to comment
Share on other sites

  • 2 weeks later...
On 1/25/2024 at 1:02 PM, DArkHekRoMaNT said:

@Quixjote I don't know if you will update the mod, but why you do a patch for this? You can simply create your own recipe o.O

Honestly, That mod was still one I started working on early on learning Modding. I am still updating the mods (just slow as heck atm cause life) and will split that out to it's own recipe in the next release. Thanks for the update.

  • Like 1
Link to comment
Share on other sites

×
×
  • 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.