I have a magnet mod that has a Boolean in the config to change the recipes for every magnet in the mod (so there can be easy mode recipes or normal recipes). Before 1.12, this was easy. How would I now be able to give the player a config option to change the recipes of each item?
Sorry if this has been asked or explained before, it's hard to find good information on this new JSON recipe system.
You'll need to create your own condition that returns true or false based on this option and then create separate recipe files for easy and hard mode that use this condition.
Create a class that implements IConditionFactory and then specify this class in recipes/_factories.json. You can implement BooleanSupplier (the type returned by IConditionFactory#parse) using a lambda that returns the value of your config option.
In a recipe file, set the conditions property of the t