ModsFinder
TP

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.

FabricServer-side onlyGNU General Public License v3.0 onlyOpen source1.21 – 1.21.11

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

  1. Math expressions

    Placeholders can combine numbers, functions and constants with arithmetic operators in a single expression.

  2. Conditional logic

    Expressions can branch on a condition, so a placeholder can show different text depending on a computed value.

  3. String manipulation

    Text values can be joined, trimmed or otherwise reshaped inside an expression before they are displayed.

  4. 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.

1.21.111.1.0
1.211.1.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Text Placeholder APIPlaceholder and Text manipulation library for your Minecraft mods.
Required

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
Text Placeholder API ExpressionsFabric1.21 – 1.21.11Server-side only2026-02-19
Text Placeholder API ExtrasFabric1.21.1 – 1.21.9Server-side only2025-10-01
PlaceholderMakerFabric1.21 – 1.21.4Server-side only2025-01-27
Fabric PlaceholderFabricrd-132211 – 26.3Client or server, optional2025-12-07

Questions

Does Text Placeholder API Expressions require Text Placeholder API?

Yes. Text Placeholder API is a required dependency and must be installed alongside this mod on Fabric.

Do players need to install the mod?

No. Players join without it, since only the server has to run the mod.

Which game versions does the mod support?

Files are published for 1.21 and 1.21.11, with 1.1.0 for 1.21.11 as the latest Fabric file.

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…
tgrekov, on the Modrinth page

Official listing

Owner
tgrekov
Published
2024-06-23
Updated on Modrinth
2026-02-19
Facts verified
2026-10-15

Tags