Forge defines the ability for many different JSON to be conditionally loaded. This includes most notably recipes, along with many Tinkers’ Construct serializers as well.

JSON Format

Conditions have the following basic format:

  • (Object): A condition object.
    • type (Resource Location): The condition serializer ID.
    • Other fields based on the condition serializer ID.

Often, conditions are defined in arrays. When defined as such, if any condition in the array fails to parse, later conditions are not even deserialized, allowing conditioning on a mod ID before using a condition defined by that mod.

Condition types

For condition types defined by Forge, see the Forge docs.

This section is currently under construction. More will be added soon.