About Text Placeholder API
Text Placeholder API is a lightweight library enabling mods to handle dynamic text and placeholders. It provides a standardized way to insert and parse data into strings and Minecraft Text Components using formats like %modid:type% or %modid:type data%. This allows for flexible text customization without requiring complex JSON formatting.
The API changes gameplay by making text customization more accessible. Players can use simplified text formats to style messages, configure settings, or create chat commands without manual JSON. Developers can integrate placeholders into their mods, enabling features like dynamic tooltips or config-based text formatting.
Ideal for mod developers looking to improve compatibility and for players managing complex mod setups. It suits mods that need to display dynamic information, such as stats, achievements, or configuration options, while maintaining readability and ease of use.
In a modpack, this API helps unify text formatting across multiple mods. It reduces conflicts by providing a shared system for placeholders and text parsing, making it easier to create cohesive user experiences and manage configuration files across different mods.
Features
- Supports placeholder creation and parsing in strings and Text Components
- Simplified text format for easy styling without manual JSON
- Standardized placeholder syntax for mod compatibility
- No required dependencies for mod integration
- Optional client/server-side implementation
- JAR-in-JAR compatibility for mod distribution
- Version range from 1.17 to 26.3
Tips
- Start with simplified text format for config files and chat messages
- Check mod placeholder lists to avoid conflicts with other mods
- Use placeholder parsing for dynamic text in UI elements or tooltips
- Test placeholder compatibility across different mod versions
How to install
- Install Fabric / Quilt for your Minecraft version (use the official installer).
- Download the file that matches your Minecraft version and Fabric / Quilt.
- Open the .minecraft folder and put the file into the "mods" folder (create it if missing).
- Launch Minecraft with the Fabric / Quilt profile.
FAQ
Does this work with multiple Minecraft versions?
Supports 1.17 to 26.3, including latest 26.3 and 1.21.11.
Are there any required dependencies?
No dependencies needed for mod integration.
Can it be used on servers?
Optional server-side implementation available for mod compatibility.