Skip to content
TheDragonLib

Quick rating

Community listing page, reviews may not be monitored by the author.

TheDragonLib

No reviews yet

A library for most of sokratis12GR's Mods

Mod Loaders
Minecraft
26.3 26.2

About

Description

TheDragonLib is a library mod providing essential utilities and shared functionality for sokratis12GR's mods — most notably a flexible config/rule API for building in-game config screens.

Instead of hand-rolling GUI code and string parsing, mods declare a RuleType schema (fields like item, block, entity, biome, attribute, number, toggle, choice, or custom pickers) and get, for free:

  • Ready-made, polished list/edit screens (RuleListScreen/RuleEditScreen) with validation, error highlighting, tooltips, reset-to-defaults, and a Save/Discard prompt for unsaved changes
  • Copy and paste between lists (including lines copied straight from the .toml file), automatic conversion between a mod's rule lists, and grouping of related lines into a single row
  • Pluggable line formats (RuleFormat) — the built-in pipe-delimited syntax, or your own key=value / legacy layout
  • Registry-backed suggestion pickers for vanilla registries (items, blocks, entities, biomes, attributes), with tag and whole-mod selectors, extra data after an id (item components, entity NBT), plus bulk "add from search" pickers
  • One-line wiring into NeoForge's config screen and ModConfigSpec boilerplate (ConfigScreenHelper, ConfigHelper)

TheDragonLib is a library mod providing essential utilities and shared functionality for sokratis12GR's mods — most notably a flexible config/rule API for building in-game config screens.

Instead of hand-rolling GUI code and string parsing, mods declare a RuleType schema (fields like item, block, entity, biome, attribute, number, toggle, choice, or custom pickers) and get, for free:

  • Ready-made, polished list/edit screens (RuleListScreen/RuleEditScreen) with validation, error highlighting, tooltips, and reset-to-defaults
  • Pluggable line formats (RuleFormat) — the built-in pipe-delimited syntax, or your own key=value / legacy layout
  • Registry-backed suggestion pickers for vanilla registries (items, blocks, entities, biomes, attributes), plus bulk "add from search" pickers
  • One-line wiring into NeoForge's config screen and ModConfigSpec boilerplate (ConfigScreenHelper, ConfigHelper)