TheDragonLib 1.3.0 for NeoForge 1.21.1
Curse Maven Snippet
What's new
1.21.1 - 1.3.0
Rule Editor
- Added
client.config.RuleClipboard— copied lines start with a# <mod>:<key>header naming the list they came from. Paste also accepts lines copied straight from the.tomlfile. - Added Copy all and Paste to
RuleListScreen. Paste adds every valid line on the clipboard, skips invalid lines and duplicates, and lists the skipped ones with the reason on hover. The Paste tooltip previews what would be added. - Added
client.config.RuleConversionsandRuleListScreen.withConversions— lines copied from the mod's other rule lists are converted field by field (by name), with defaults for required values the source doesn't have. - Added
client.config.FieldExtension(set onRuleListContext) — extra data a picker field carries after its id (e.g.minecraft:diamond_sword[damage=5]orminecraft:zombie{IsBaby:1b}), edited in its own screen from a button next to the input. Suggestions, validation and names use the id alone, and picking another id keeps the data. - Added
RuleListScreen.withGrouping— lines sharing a value in one field collapse into a single row (with Copy, Open and Delete) once there are enough of them. Only the display changes; new lines inside a group start with the group's value. - Added
client.config.UnsavedChangesScreen— leaving a rule list or rule editor with changes asks to Save, Discard or Keep editing. Done still saves straight away. - Rule screens now show breadcrumb titles (e.g. "Mod › List › Edit line 3"), with a yellow dot while there are unsaved changes.
- Added
Field.withToggleValues(on, off)— aTOGGLEcan save values other thantrue/false. Made optional with its off value as the fallback, it leaves the value out while off. - Added
RuleSuggestionSource.selectors— options like tags (#id) or whole mods (modid:*), offered after*by fields that accept wildcards and rejected by fields that don't. EntryPickerScreen.Candidatecan have a custom detail line, andEntryPickerScreen.withEmptyTextshows a message when nothing matches.- Fixed the suggestion list staying up on the previous picker after focusing a number, toggle or other field, and text cursors showing in more than one input.
This mod has no additional files

