Text Placeholder API

Text Placeholder API

Placeholder and Text manipulation library for your Minecraft mods.

30.9M downloads
Created Apr 9, 2026
by Patbox

About

About Placeholder API

It's a small, JIJ-able API that allows creation and parsing placeholders within strings and Minecraft Text Components. Placeholder API uses a simple format of %modid:type% or %modid:type data% (%modid:type/data% prior to 1.19). It also includes simple, general usage text format indented for simplifying user input in configs/chats/etc.

For users

It allows users to configure multiple mods in similar way without losing compatibility between mods. Placeholders allow changing what and where any information is present within compatible mods.

Additionally, Simplified Text Format allows to style them in readable way without the requirement of writing JSON manually or using generators.

Mods generally using this api should just include it directly, but you can downloaded updated version from here if needed!

For developers

Usage of Placeholder API is a simple way to achieve good mod compatibility without having to implement multiple mod specific apis. Additionally, the placeholder parsing system can be used for replacing own static (or dynamic placeholders) in Text created by player or read from config. This with combination of Simplified Text Format allows creating great user/admin experience.

*[JIJ]: Jar-in-Jar

Versions

v3.0.0-beta.1+26.1Latest
26.1-snapshot-7fabric, quiltFeb 14, 2026

First release for new cycle! Includes bunch of refactors and renames and intruduces support for common and client placeholders! For migration, most notable changes: What previously was PlaceholderContext was moved to ServerPlaceholderContext, and alike (ParserBuilder changed placeholders() -> serverPlaceholders()) for those who want previous features. Renamed getText and alike to getComponent. TextNodes are still TextNodes through. **Full Changelog**: https://github.com/Patbox/TextPlaceholderAPI/compare/2.8.1+1.21.10...3.0.0-beta.1+26.1

Download
v2.8.2+1.21.10
1.21.10, 1.21.11fabric, quiltFeb 1, 2026

**Full Changelog**: https://github.com/Patbox/TextPlaceholderAPI/compare/2.8.1+1.21.10...2.8.2+1.21.10

Download
v2.8.1+1.21.10
1.21.9, 1.21.10, 1.21.11-pre1, 1.21.11fabric, quiltOct 25, 2025

## What's Changed * Add player head texture argument by @DrexHD in https://github.com/Patbox/TextPlaceholderAPI/pull/87 **Full Changelog**: https://github.com/Patbox/TextPlaceholderAPI/compare/2.8.0+1.21.9...2.8.1+1.21.10

Download

Download

Download v3.0.0-beta.1+26.1

Minecraft: 26.1-snapshot-7

Loaders: fabric, quilt

Tags

fabricquilt1.21.71.21.81.21.91.21.101.21.11