Confirmedusers
637
edits
(Moved CompatibilityLib manual from my github to game wiki) |
m (Updated navbox to new content navbox.) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{GameVersion|1.19}} | |||
A simple embeded library for Vintage Story that makes it easy to add compatibility with other mods for assets. | A simple embeded library for Vintage Story that makes it easy to add compatibility with other mods for assets. | ||
__TOC__ | |||
== Easy way (overwriting assets) == | == Easy way (overwriting assets) == | ||
Line 42: | Line 45: | ||
[ | [ | ||
{ | { | ||
// If you add enabled: false to your recipe, you can simply enable it when the desired mod is loaded | |||
"file": "recipes/grid/best-other-fish-recipe.json", | "file": "recipes/grid/best-other-fish-recipe.json", | ||
"op": "replace", | "op": "replace", | ||
Line 50: | Line 53: | ||
}, | }, | ||
{ | { | ||
// Otherwise, just disable the recipe when the mod is not loaded | |||
"file": "recipes/grid/best-fish-recipe.json", | "file": "recipes/grid/best-fish-recipe.json", | ||
"op": "add", | "op": "add", | ||
Line 58: | Line 61: | ||
}, | }, | ||
{ | { | ||
// Or when two mods are loaded :P | |||
"file": "recipes/grid/best-fish-recipe-with-acorns.json", | "file": "recipes/grid/best-fish-recipe-with-acorns.json", | ||
"op": "replace", | "op": "replace", | ||
Line 69: | Line 72: | ||
}, | }, | ||
{ | { | ||
// For simplicity, you can patch all recipes in a folder at once with * | |||
"file": "recipes/grid/morerecipes-disable/*", | "file": "recipes/grid/morerecipes-disable/*", | ||
"op": "add", | "op": "add", | ||
Line 78: | Line 81: | ||
] | ] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{Navbox/contentmodding}} |