Text Placeholder API [Unofficial Forge]
Placeholder and Text manipulation library for your Minecraft mods. Unofficial Forge Port
介绍
This is unofficial Forge port of Text Placeholder API mod by Patbox. Do not report any issues to Patbox, their discord or github.
You can find official/fabric version here: https://www.curseforge.com/minecraft/mc-mods/text-placeholder-api
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.
- Getting Started
- Adding placeholders
- Parsing placeholders
- TextNodes and NodeParsers
- Using Simplified Text Format (TextParserV1)
*[JIJ]: Jar-in-Jar
常见问题
Text Placeholder API [Unofficial Forge] 支持哪些 Minecraft 版本?
Text Placeholder API [Unofficial Forge] 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Text Placeholder API [Unofficial Forge] 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Delesk1JX 的其他作品
查看全部 →Mining Speed Info
Adds information about tool mining speed.
Styled Nicknames [Unnoficial Port]
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support. Unofficial Forge & NeoForge Port.
Styled Sidebars [Unofficial Port]
Customisable sidebars for your Minecraft server! Unofficial Forge & NeoForge Port.
评论
登录后评论和评分