Mods / Recipe Patcher

Category: #Crafting #Library
Author: DanaCraluminum
Side: Server
Created: Apr 22nd at 3:06 PM
Last modified: Apr 24th at 2:49 PM
Downloads: 3196
Follow Unfollow 120

Latest file for Various v1.19.x:
RecipePatcher-v1.1.1.zip 1-click install


[Discord]

I'm living in Ukraine and there is war happening right now. Most of my free time I spend on modding when I get a few hours between electricity blackouts.
If you love my work, you can support me on Patreon, I would greatly appreciate it ❤️. Donations keep me doing what I truly love - modding.


This is a library that allows to patch recipes for content mods. It requires your mod to be dependent on this library when installed server-side or in single-player. If the library is not installed, no patches for recipes will be applied.

Documentation on JSON API of this library.

If you need any help with library, you can join my discord by clicking discord icon on this page or find me in discord on official VS server

TODO

  • quantity and quantityNew for ingredients
  • type and typeNew for output and ingredients (Block, Item)
  • proper attributes matcher
  • traits

Mods that use Recipe Patcher:

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.1 2997 Apr 24th at 2:49 PM Show RecipePatcher-v1.1.1.zip Install now
v1.1.0 86 Apr 24th at 2:43 PM Show RecipePatcher-v1.1.0.zip Install now
v1.0.0 113 Apr 22nd at 4:24 PM Show RecipePatcher-v1.0.0.zip Install now

19 Comments (oldest first | newest first)

💬 osswix, Jun 16th at 8:20 PM

It was indeed a different combination of mods making either immersive wood chopping or firewood in general not work well. Immersive wood chopping, herbarium, a wrong (old) version of wildcraft trees and recipe patcher together is what made either firewood in general or immersive wood chopping disfunction. Somehow not including recipe patcher did fix some of the firewood recipes for that combination of mods however.

💬 DanaCraluminumAuthor, Jun 16th at 7:36 AM

osswix I tried to reproduce this with only three mods installed and it works, although I wasn't able to reproduce issue

  • Immersive Wood Chopping 
  • Recipe Patcher
  • Vanillla Variants
💬 DanaCraluminumAuthor, Jun 16th at 7:24 AM

osswix Do you mean it breaks Immersive Wood Chopping only when both Immersive Wood Chopping and Recipe Patcher are the only two mods installed, and no other additional mods except these two?

💬 osswix, Jun 15th at 8:51 PM

This mod seems to break Immersive Wood Chopping, though with it installed, together with multiple other mods including wildcraft trees, i can't seem to make firewood at all.

💬 DanaCraluminumAuthor, Apr 29th at 6:30 PM

Mendall These were blocks from 3.x.x version of Vanilla Variants , recipe patcher has nothing to do with this

💬 Mendall, Apr 29th at 6:25 PM

Update: after installing this and entering world. I found ? Blocks on my wall and one on the floor. I figured out they were shelves and panning thing (both made of birch) and I remembered those were the exact two things that the recipe had not worked. I broke the ? Blocks and remade the items and this time the recipe worked. I am not sure what that means, unless which ever mod was causing the problem had already used your library to fix the problem. So thanks you fixed it any way.

💬 Mendall, Apr 28th at 3:49 PM

DanaCraluminum holy cow that was fascinating, mind you I understood maybe half of it.

But I understood enough to make me go ahead and install this in case one of my 87 mods chooses to use it.

And since you made it. And you made a good third of the mods I use. I'm thinking it might be a good add.

💬 DanaCraluminumAuthor, Apr 28th at 11:55 AM
💬 Mendall, Apr 28th at 7:05 AM

Thanks DanaCraluminum if I find them again ill start a list. But I have forgotten what they were. But truth tell, just using creative and ditching the mats in probably less effort than making a mod to fix it.

You have created plenty as is.

💬 DanaCraluminumAuthor, Apr 27th at 8:17 AM

Mendall It does nothing if there are no custom patches in certain folder.

What modded recipes don't work? I could make a mod that use this library to try to fix them

💬 Mendall, Apr 26th at 9:35 PM

In 1.19 I have found certain modded recipes that just don't work, so I wind up just tossing out the mats and going too creative to get the item. Is that the kind of thing this fixes. I am trying to understand what this does.  Oddly, the GIF of a critter smashing a road marker didn't help as much as you would think it would :)

💬 Dr_Cummies, Apr 24th at 9:15 PM

ah ok thanks

💬 DanaCraluminumAuthor, Apr 24th at 9:05 PM

Dr_Cummies  It needs custom patches in certain folder, yes it is savegame friendly

💬 Dr_Cummies, Apr 24th at 7:55 PM

Hey does this run on its own or does it require a command? is it savegame friendly? just started using it but havent noticed anything different. Thank you.

💬 Buggi, Apr 23rd at 7:30 PM

My concern isn't for your patcher, which I assume is nice and efficient. My concern is the eventual time down the road when there are 65,000 block types in the game and it takes 5 minutes to verify a grid recipe.

Tyron is a gifted programmer though, no doubt he has ideas on how to make this a non-issue.

💬 DanaCraluminumAuthor, Apr 23rd at 5:35 PM

Buggi It should write in the log how long it took to patch all recipes

💬 Buggi, Apr 23rd at 5:15 PM

Queue the recipe lag on servers with 40,000 variants of everything! \o/

I wonder if it would help performance in this situation to use LINQ to reduce the number of items iterated through when a recipe calls it's Resolve() function, because right now, it iterates through every. single. item. every. time.

Anyone have any hard numbers comparing directly the foreach on a List<> and a call to List.Where()?

💬 DanaCraluminumAuthor, Apr 22nd at 7:27 PM

Buggi You will understand why I wrote this thing once I release Vanilla Variants 5.0.0.

It does exactly what I need in just 200 recipe patches, also json patches don't support mulitple conditions

💬 Buggi, Apr 22nd at 7:05 PM

I don't understand the purpose of this mod, you can already patch recipes using JSON patching mechanics.

(edit comment delete)