Modding:CompatibilityLib: Difference between revisions

From Vintage Story Wiki
m
Updated navbox to new content navbox.
(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:
[
[
   {
   {
     "_comment": "If you add enabled: false to your recipe, you can simply enable it when the desired mod is loaded",
     // 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:
   },
   },
   {
   {
     "_comment": "Otherwise, just disable the recipe when the mod is not loaded",
     // 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:
   },  
   },  
   {
   {
     "_comment": "Or when two mods are loaded :P",
     // 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:
   },
   },
   {
   {
     "_comment": "For simplicity, you can patch all recipes in a folder at once with *",
     // 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}}
Confirmedusers
637

edits