Skip to content

Recipe | Advanced Settings (Config Files)

WolfyScript edited this page Jan 21, 2023 · 1 revision

Besides the standard options of recipes, that can be mostly configured via in-game UIs, there are lots of advanced features, that can only be configured inside the JSON/HOCON file of recipes.

What is the difference between JSON (.json) and HOCON (.conf)?

WolfyUtilities and CustomCrafting used the JSON format originally.
In 2022, it was updated to use the HOCON format with .conf files.
HOCON is a less strict JSON format, that makes it easier to edit and less prone to errors.
For example, commas , at the end of a line may be omitted, columns : may be replaced by equal signs =, and much more.

More info can be found on the official page https://github.com/lightbend/config#using-hocon-the-json-superset

Config File Locations

Edit the Config files

If you are using the local storage, you can find all the item and recipe files inside the CustomCrafting/data folder.
The recipes and items can be found in the following locations:

  • Recipes: data/<root_folder>/recipes/<optional_folder>/<recipe_name>.conf
  • Items: data/<root_folder>/items/<optional_folder>/<item_name>.conf

MySQL

In case you are using the MySQL storage, you can find the JSON data in the specified table in the last column.
It is recommended, that you do the editing of the JSON files locally using a good editor.

Editing the Config Files

It is highly recommended to use a text editor like VSCode to get syntax highlighting for JSON and HOCON.
My usual setup is VSCode with the HOCON Colorizer extension to edit the .conf files more easily.
For Linux, I can recommend VSCodium

| Home

  • Editions
  • Installation

| General

  • Performance
  • Terminology

| Recipes

Types

  • From 1.6.5.x
  • From 1.6.4.0
  • From 1.6.3.0 or older

| Special Workstations

  • Custom Recipe Book
  • Vanilla Recipe Book

Clone this wiki locally