Tags
Creators
Details
All versions
1.1.0
Release
TheDragonLib 1.1.0 for NeoForge 26.222 days ago 8
Compatibility
Minecraft: Java Edition
26.2
Platform
NeoForge
Supported environments
Client and server
Changes
26.2 - 1.1.0
Brings the 26.1.2 - 1.4.1 rule editor to 26.2.
Rule Editor
- Added
client.config.RuleFormat— how a config line maps to the fields of aRuleType.RuleFormat.PIPEis the previous positional format; mods can now edit other syntaxes (prefixes,key=valuepairs, lines saved in an older layout) and provide their own cross-field checks and row summaries. - Added the field kinds
BLOCK,CUSTOM(a picker whose options the mod provides byField.source()),CHOICEandTOGGLE(buttons instead of text inputs). - Added
client.config.RegistrySuggestionSource— aRuleSuggestionSourcebacked byRegistryCandidates, which mods extend for theirCUSTOMfields. RuleSuggestionSource.Optioncan have an icon, shown in the suggestion list.RuleEditScreenrows now sit in a scrolling list, so a rule can have any number of fields.- Added
Field.asInline()— a field shares a row with the field before it when there's room. - Added
Field.withFallback(String)— an empty value shows (and summarizes as) the fallback instead of blank. - Added
Field.withIcon(Identifier)— aTOGGLEfield can be a small icon button without its own label. - Added
Field.withRowLabel(String)— labels the row with a differentfield.<name>translation, for fields that share one label. - Number inputs and buttons are sized to fit their largest value; pickers share what's left of the row. A picker's resolved name shows inline at the end of its input when it fits.
- Added Copy and Paste buttons that round-trip a rule line through the clipboard; pasted text is validated before it replaces the open rule's values.
RuleListScreencan take anEntryPickerto add several entries at once next to the Add button, andRuleListScreen.withDefaultsadds a Reset button.RuleListScreenrows wrap long summaries instead of cutting them off and show the raw saved line as a hover tooltip; the screen sizes itself to the widest entry (between 308px and 560px).- Long explanations under the screen titles are cut off with the full text on hover instead of running off the screen.
- Fixed a crash in
RuleType.validatewhen a min/max field pair was optional and left empty, andATTRIBUTE_VALUEfields assuming the attribute is the line's second field.
Breaking Changes
RuleSuggestionSourcenow takes theRuleType.Field(and the line's current values where they matter) instead of aKindand a context string.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:DXK9oAjb:anrB8iL2"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:DXK9oAjb:anrB8iL2"
}

