Miscellaneous Features
This page is for features which don’t warrant their own page. The link anchors on this page are not guaranteed to be stable due to the potential for subjects to be moved/merged as KubeJS TFC develops
Configuration
The /kubejs/config/tfc.json file of your installation contains KubeJS TFC’s configuration properties. Four boolean properties exist, controlling certain logging events
debug: If a debug message for certain events should be add to the log. Defaults tofalseinsert_into_console: If TFC’s self tests and data manager errors and warning should be inserted into KubeJS’s server console. Defaults totruededuplicate_self_test_warnings: If TFC’s self test warnings should be removed from the MC log. Defaults totruededuplicate_data_manager_warnings: If data manager warnings should be removed from the MC log. Defaults totrue
Recipe Schemas
KubeJS primarily handles recipe additions through recipe schemas, which are mostly made up of recipe components, effectively a mirror to a recipe type’s codec. It is possible to add new schemas through datapacks
This is not meant to be a tutorial for creation of recipe schemas, merely an acknowledgement of the additions KubeJS TFC provides for TFC types
Components
KubeJS TFC adds several component types
kubejs_tfc:isp: AnItemStackProviderkubejs_tfc:optional_isp: An optionalItemStackProviderwhich supports serializing empty ISPskubejs_tfc:block_ingredient: ABlockIngredientkubejs_tfc:alloy_range: AnAlloyRange, the components of alloying recipeskubejs_tfc:forge_rule: AForgeRule, for anvil recipeskubejs_tfc:welding_bonus_behavior: A weldingBonusBehaviorkubejs_tfc:fixed_size_pattern: A string pattern grid with a fixed size. Used for sewing recipes. Has two additional fieldswidth: An integer, the width of each pattern rowheight: An integer, the number of pattern rows
kubejs_tfc:block_state: A variation of the default block state component that will properly parse inline block states from json
Functions
KubeJS TFC adds a single function type
kubejs_tfc:multi_set: Creates a method on the recipe type which can set the given keys. Has one additional fieldkeys: A list of strings, the recipe keys the generated function will have parameters for and set when calling