Truly Modular: Modular Item API

Truly Modular: Modular Item API

Blueprint Component

Description

This Component allows the attachment of additional Craft Options for the crafting UI.
The Cost can be configured via the Ingredient in the data. Setting it to false will use the default module cost of the root module to be added. Setting it to true will require whatever item this component is attached to. It can also be set to an ingredient with count, in this case the inner data is a number, the amount of the ingredient needed and the ingredient itself, following minecrafts default ingredient logic, like for recipes.

Data

  • module: a Module Instance, not a module, see the Module Component for more details
  • ingredient: This can either be a boolean or an ingredient with Count.
  • name: (Optional) This allows for a custom name in the Crafting UI.