Modding:CompatibilityLib: Difference between revisions

From Vintage Story Wiki
m
(Add modding navbox)
Line 42: Line 42:
[
[
   {
   {
     "_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 50:
   },
   },
   {
   {
     "_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 58:
   },  
   },  
   {
   {
     "_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 69:
   },
   },
   {
   {
     "_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",
Confirmedusers, editor
749

edits