Add Recipe Step

Introduction

The Add Recipe Step grants the player new crafting recipes for creating items. The recipe must first have been added via the window.modAPI.action.addItem function.

Interface

interface AddRecipeStep {
  kind: 'addRecipe';
  condition?: string;
  recipe: string;
}

Properties

kind - Always 'addRecipe'

recipe - Recipe to add

condition (optional) - Conditional execution

Example

{
  kind: 'addRecipe',
  recipe: 'Spirit Enhancement Pill'
}