Skip to content

Ingredient

A string that defines an ingredient to be used for recipes. If prefixed with #, it will define an item tag, otherwise, it will define an item.

Fabric-specific feature

Fabric provides a custom ingredient API that can check for further data of an item, such as its item components or other types for logic handling. To define a custom ingredient, it must be an object ({...}) and follows the format below:

Format

Field Type Default Description
fabric:type Identifier The ID of the desired custom ingredient type.
Tip

See here for a list of custom ingredient types provided by Fabric and examples.