Confee

Config library for mod developers. It also adds an in-game config menu to mods that don't have one.
Back to Files

Confee 0.3.0 (Fabric/Quilt 1.21.11)

File nameconfee-0.3.0-1.21.11-fabric.jar
Uploader
HeetHeet
Uploaded
Nov 24, 2026
Downloads
0
Size
943.3 KB
Mod Loaders
FabricQuilt
File ID
9791885
Type
B
Beta
Supported game versions
  • 1.21.11

Curse Maven Snippet

Fabric

modImplementation "curse.maven:confee-1817213:9791885"

Quilt

modImplementation "curse.maven:confee-1817213:9791885"

Learn more about Curse Maven

What's new

  • Previews: a PreviewRenderer can read the pending values of the other options of the config (edited, not saved yet) and the theme of the screen, with the new render(..., PreviewContext context, delta). Old renderers keep working.
  • Your own widgets (OptionWidget): error() shows a message under the widget and disables "Save"; capturesText() leaves plain keys to a widget that types text; focusBounds() / revealFocus() scroll only the focused part of a tall widget into view; renderOverlay and its friends draw a list or popup over the next options; viewportHeight() gives the visible height of the panel. Widgets can now be up to 4000 pixels tall.
  • ConfeeDraw (Confee buttons, text without shadow, focus ring) and ConfeeIcons (item, mob, effect... icons and names, also from the title screen) for your widgets and previews.
  • @Validator / OptionBuilder.validator(...): your own check of a value (or of each value of a list), with your message under the field.
  • @Config(writeDefaults = true): a Default: <value> comment under each option of the file.
  • @Config(legacyFiles = {...}): moves a config file your mod wrote before using Confee (or under another name, case included) to the Confee file, keeping its values and dropping its old comments.
  • SuggestionProvider#needsWorld(): from the title screen, an empty field shows "Open a world for more suggestions".
  • @ItemStack (String or List of String): a whole item stack written as SNBT in the format of the Minecraft version, with an item field (search by name, picker), a count field and an extra data field.
  • @Validator(onFileError = KEEP) / @ItemStack(onFileError = KEEP): a refused value of the file is kept as written, the screen shows its error until it is fixed.
  • Suggestions find registry entries by their name in the player's language too ("épée" finds the diamond sword).
  • @Suggestions(sources = ...): scoreboard tags, teams and objectives of the loaded world.
  • Previews: PreviewContext#path(), and @Preview on a @Section class for one preview of the whole section.
  • ConfeeDraw.entity (a mob: model in a world, front view from its skin otherwise, optional Glowing-like outline), ConfeeDraw.tiled, ConfeeIcons.drawStack, Theme.mix / theme.dimmed.
  • ConfeeTextField: Confee's text field for your own widgets, with the same events on every Minecraft version.

This mod has no additional files