You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a config file for each mod that uses ManiacCore in config/maniac/core/crafting/<modid>/master.cfg. This config is created with the following content when it does not exist:
include default.cfg;
The path of the include is relative, unless it starts with a '/'. This file can contain arbitrary crafting statements. The default.cfg and optionally other configs are directly copied from the mods assets. They are not intended for hand editing. The user can also create own config files. Those will not ever be overwritten by the mod.
Example config file representing some vanilla recipies:
recipe has 2 parameters: the type of crafting and the id.
The ID can be used to delete a recipe (recipe delete <id>). This only works within a certain config file and only after the inclusion. You can also override a recipe by defining a second recipe with the same ID. This is very useful to include default.cfg and then delete the recipes you don't like, instead of duplicating the config.
Internal API
The interal API alles you to register custom recipe handlers. The recipe handler then gets asked to register it whenever a recipe of the respective type is encountered in the config. Please note that registering happens after the entire config has been processed.
The text was updated successfully, but these errors were encountered:
Allows to abstract crafting
Stage 1: Config
There is a config file for each mod that uses ManiacCore in
config/maniac/core/crafting/<modid>/master.cfg
. This config is created with the following content when it does not exist:The path of the include is relative, unless it starts with a '/'. This file can contain arbitrary crafting statements. The
default.cfg
and optionally other configs are directly copied from the mods assets. They are not intended for hand editing. The user can also create own config files. Those will not ever be overwritten by the mod.Example config file representing some vanilla recipies:
recipe has 2 parameters: the type of crafting and the id.
The ID can be used to delete a recipe (
recipe delete <id>
). This only works within a certain config file and only after the inclusion. You can also override a recipe by defining a second recipe with the same ID. This is very useful to includedefault.cfg
and then delete the recipes you don't like, instead of duplicating the config.Internal API
The interal API alles you to register custom recipe handlers. The recipe handler then gets asked to register it whenever a recipe of the respective type is encountered in the config. Please note that registering happens after the entire config has been processed.
The text was updated successfully, but these errors were encountered: