Translations:Modding:Creating Recipes/37/en
From Vintage Story Wiki
Restricting to a specific class
The recipe can be limited to a specific class. This can be done by adding requiresTrait
. This is recipe for sewing kit:
{
ingredientPattern: "FFS,FF_",
requiresTrait: "clothier",
ingredients: {
"F": { type: "item", code: "flaxtwine" },
"S": { type: "item", code: "stick" }
},
width: 3,
height: 2,
output: { type: "item", code: "sewingkit" }
}