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: 267
Follow Unfollow 16

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


[Discord][Buy Me A Coffee]

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

 

Mods that use Recipe Patcher

If you love my work, you can support me on Patreon, I would greatly appreciate it ❤️, since I invest significant amount of time into modding. Donations encourage me to make new mods and update old ones more often.

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

15 Comments (oldest first | newest first)

💬 DanaCraluminumAuthor, 4 days ago

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

💬 Mendall, 4 days ago

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, 5 days ago

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, 5 days ago
💬 Mendall, 5 days ago

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, 6 days ago

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, 6 days ago

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)