Tags
Creators
Details
2.6.0
Compatibility
Required content
Changes
New features:
Live Syntax Highlighting:
- Numbers & Decimal values: Pure Bright White (
§f) - SkyBlock Units (
k,m,b,t,s,e,h,sc,dc,eb): Vibrant Cyan (§b) - Math Functions (
sqrt,bz,ah,fmt,rad,deg, etc.): Bright Yellow (§e) - Built-in constants (
ans,pi,e) and custom variables ($var): Bright Green (§a) - Math Operators (
+,-,*,x,/,^,%,!,&,|,~,<<,>>): Bright Gold (§6) - Delimiters & Parentheses (
(,),,): Light Gray (§7)
Custom Variables Manager GUI Tab:
- Added a new GUI tab in
/calcconfigto easily add, edit, delete, and paginate (</>) custom variables in-game.
Focus-Aware Search Bar Border:
- Search bar border dynamically switches to Pure Bright White (
0xFFFFFFFF) when actively typing/focused, and Unfocused Gray (0xFF8B8B8B) when unfocused.
Improvements & Fixes:
- Centralized all color codes in
SyntaxHighlighter.java. - Centralized math functions (
FUNCTIONS), unit multipliers (UNITS), and built-in constants (BUILTIN_VARIABLES) inExpressionEvaluator.java. - Token regex patterns in
SyntaxHighlighter.javaandCalculatorManager.javaare fetched dynamically fromExpressionEvaluator. Adding a new unit or function now updates evaluation, autocompletion, regex matching, and syntax highlighting. - Refactored
ResultFormatterto reuse cachedExpressionEvaluator.UNITSBigDecimalinstances, eliminating temporary object allocations during render loops. - Added new test coverage for syntax highlighting token rules (325+ total unit tests).
All features and improvements in this release were contributed by @Rijzzz
Full Changelog: https://github.com/Rijzzz/NotEnoughCalculator/compare/v2.5.0...v2.6.0
Optional dependencies
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:dkEP7NUX:CqSFMt0Y"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:dkEP7NUX:CqSFMt0Y"
}

