
About Placeholder API Compat
This modification is a fork of the latest release of Patbox's Text Placeholder API, maintaining full compatibility with all Minecraft Fabric versions starting from 1.14.4.
This project was originally developed for integration with my multi-version mod Discord-MC-Chat.
Usage
For Players
Place the downloaded JAR file in the mods
directory of your Minecraft installation.
Important points:
- This mod functions as a library dependency and only activates when called by other mods
- Compatible operation with Patbox's official Placeholder API version doesn't cause conflicts due to independent library calls
For Developers
Ensure your mainProject
points to the most current version of Minecraft.
Work exclusively with the common.gradle
file. Remove the eu.pb4:placeholder-api
dependency from the appropriate section.
Do not add the following code to the wrapper's build.gradle
, as this will break library functionality for versions other than those specified in mainProject
:
repositories {
maven {
name = "Jitpack"
url = "https://jitpack.io"
}
}
dependencies {
modCompileOnly("com.github.Xujiayao:TextPlaceholderAPI-Compat:2.6.1-compat.1")
}
Edit all existing fabric.mod.json
files:
{
"depends": {
"fabricloader": ">=0.16.10",
"java": ">=21",
"placeholder-api-compat": "*"
}
}
Finally, change the imported package in your code from eu.pb4.placeholders
to com.xujiayao.placeholder_api_compat
.
Support
If you discover errors or have questions, you can create an issue on GitHub. Compatibility issues are considered in this repository, but issues related directly to Placeholder API should be directed to the original project repository.
About Placeholder API
Placeholder API is a compact, Jar-in-Jar embeddable library for creating and processing text placeholders in strings and Minecraft Text Components. The placeholder format uses a simple scheme of %modid:type%
or %modid:type data%
(in versions prior to 1.19, %modid:type/data%
format was used).
Also includes simplified text formats for streamlining user input in configurations, chats, and similar elements.
The project is licensed under LGPL-3.0.