Creating a Config Option
[...]
ConfigEntryBuilder entryBuilder = builder.entryBuilder();[...]
general.addEntry(entryBuilder.startStrField(new TranslatableText("option.examplemod.optionA"), currentValue)
.setDefaultValue("This is the default value") // Recommended: Used when user click "Reset"
.setTooltip(new TranslatableText("This option is awesome!")) // Optional: Shown when the user hover over this option
.setSaveConsumer(newValue -> currentValue = newValue) // Recommended: Called when user save the config
.build()); // Builds the option entry for cloth configLast updated