Skip to content

Capabilities, Handlers, and Conditions ​

MBD2 21.1.1

An MBD2 recipe is not a direct inventory operation. It contains typed Content; recipe logic routes each content list to compatible IRecipeHandler instances supplied by machine traits, then evaluates conditions against the machine and world.

Three concepts that must match ​

ConceptOwnsExample
RecipeCapability<T>Content type, codec, editor/XEI display, KubeJS conversionforge_energy owns integer FE content
Trait/handlerMachine storage and actual input/output operationForge energy trait exposes ForgeEnergyRecipeHandler
RecipeConditionA non-consuming predicateRedstone signal is between 7 and 15

A registered capability without a handler can be authored but never completes. A trait whose recipe IO is IN cannot satisfy output content. A condition never substitutes for missing input.

Continue to the capability reference, condition reference, or Java extension engine.

Released under the MIT License.