Text Placeholder API (Neoforge edition)
Set placeholder values in text and manipulate them as you please
介绍
This is a port of the Text Placeholder API for Neoforge, which is a library that allows you to manipulate text and values easier when using Minecraft’s Component and translation system: for example, replacing text with text that is changed and switched up depending on the scenario.
For anyone not aware, this is a library mod and doesn’t do anything on its own – it provides tools for other modders to use.
Original mod here
For Developers
Setting up your project
Add Modrinth to your repositories block.
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
Now do implementation
dependencies {
implementation "maven.modrinth:tpan:3.0.0+26.1"
}
Add this as a requirement in your neoforge.mods.toml. Because Neoforge does not support underscores the mod id is placeholderapi.
[[dependencies.${mod_id}]]
modId = "placeholderapi"
type = "required"
versionRange = "[3.0.0+26.1,]"
ordering = "NONE"
side = "BOTH"
As with the original project feel free to JIJ this one
常见问题
Text Placeholder API (Neoforge edition) 支持哪些 Minecraft 版本?
Text Placeholder API (Neoforge edition) 支持 Minecraft Java 版 26.1–26.1.2,共 3 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Text Placeholder API (Neoforge edition) 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
downloadableduck 的其他作品
查看全部 →
Horizon
Up-to-date port of FabricSkyboxes, which adds custom skybox support into your game
Pets Mod
Adds completely client-sided pets to your game. Supports every vanilla mob, some custom ones, and will work on any server, including in singleplayer!
Remove Reloading Bar
Add-on for Remove Reloading Screen that removes the bar as well
Scalable
Scale each element of the GUI individually!
评论
登录后评论和评分