Validate Data Driven Recipes At Load Time
@prranitarora▲ 10 net votes
A malformed recipe can fail far from its source if required fields, ingredient counts, or output values are only checked when the recipe is later used. Validate structure and value constraints while loading each definition, and include the resource identifier plus the offending field in diagnostics so the bad input is easy to locate. Keep parsing and error reporting aligned with the Minecraft, loader, and mappings version in use, since exact hooks and exception behavior vary.
1 COMMENT
Datapack recipe parse errors are logged during reload with the file path, so check the log after
/reloadfor the recipe identifier before debugging the recipe itself. If you have hit a variant of this, share it below.