Text Placeholder API Expressions
by tgrekov
Text Placeholder API Expressions adds math, conditional and string manipulation expressions to Text Placeholder API, letting placeholders compute their results.
What it does
Expressions are assembled from parts: a number, a function, a constant or a placeholder that yields a number. Binary operators such as addition and subtraction sit between two parts, while unary operators such as negation and factorial act on a single part. Together they let a placeholder show a calculated value instead of a fixed one.
The mod treats placeholder handling as three distinct types, so each kind of expression is resolved in its own step. It is a Fabric mod that depends on Text Placeholder API and runs on the server side only, so players join without installing it. Files are published for 1.21 and 1.21.11, with 1.1.0 for 1.21.11 as the latest build, released under the GNU General Public License v3.0 only and open source with public source code.
Key features
Math expressions
Placeholders can combine numbers, functions and constants with arithmetic operators in a single expression.
Conditional logic
Expressions can branch on a condition, so a placeholder can show different text depending on a computed value.
String manipulation
Text values can be joined, trimmed or otherwise reshaped inside an expression before they are displayed.
Typed placeholder handling
Numbers, text and boolean results are each handled as their own type during resolution.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Computed scoreboard values
A server can show derived figures, such as a percentage of a player's health, instead of raw numbers.
Formatted chat text
Server owners can build chat or tab-list lines whose parts depend on other placeholder values.
Who it’s for: Server owners and modpack authors who already use Text Placeholder API and want placeholders that calculate or branch on their results. Players need nothing installed, because the mod is server-side only.
How it compares
Text Placeholder API Extras covers 1.21.1 – 1.21.9 for Fabric and runs on the server side only, so it targets an older range than this mod. PlaceholderMaker is server-side only and released under the GNU General Public License v3.0 only, with files for 1.21 – 1.21.4. Fabric Placeholder works on either side, and neither needs it, under the Mozilla Public License 2.0.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Text Placeholder API Expressions | Fabric | 1.21 – 1.21.11 | Server-side only | 2026-02-19 |
| Text Placeholder API Extras | Fabric | 1.21.1 – 1.21.9 | Server-side only | 2025-10-01 |
| PlaceholderMaker | Fabric | 1.21 – 1.21.4 | Server-side only | 2025-01-27 |
| Fabric Placeholder | Fabric | rd-132211 – 26.3 | Client or server, optional | 2025-12-07 |
Questions
Does Text Placeholder API Expressions require Text Placeholder API?
Do players need to install the mod?
Which game versions does the mod support?
In the catalog
Text Placeholder API Expressions is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 19,862 mods support Minecraft 1.21.11.
Similar mods
What the author says
You can think of this placeholder as handling three distinct 'types': Components, such as numbers, functions, constants, and placeholders that resolve to numbers. Binary operators, such as addition or subtraction, which go between two components. * Unary operators, such as negation and factorial, which apply to a…
Official listing
- Modrinth page
- modrinth.com/mod/text-placeholder-api-expr
- Owner
- tgrekov
- Published
- 2024-06-23
- Updated on Modrinth
- 2026-02-19
- Facts verified
- 2026-10-15