promotional bannermobile promotional banner

Not Enough Calculator (REI Search Bar Calculator)

A NEU-style calculator mod for Roughly Enough Items (REI). Type calculations directly into REI's search bar.
Back to Files

notenoughcalculator-2.6.0.jar

File namenotenoughcalculator-2.6.0.jar
Uploader
RijzRijz
Uploaded
Aug 6, 2026
Downloads
12
Size
104.4 KB
Mod Loaders
Fabric
File ID
8588723
Type
R
Release
Supported game versions
  • 26.2
  • 26.1.2
  • 26.1.1
  • 26.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:notenoughcalculator-1431725:8588723"

Learn more about Curse Maven

What's new

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 /calcconfig to 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) in ExpressionEvaluator.java.
  • Token regex patterns in SyntaxHighlighter.java and CalculatorManager.java are fetched dynamically from ExpressionEvaluator. Adding a new unit or function now updates evaluation, autocompletion, regex matching, and syntax highlighting.
  • Refactored ResultFormatter to reuse cached ExpressionEvaluator.UNITS BigDecimal instances, 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

This mod has no additional files