跳到正文

Placeholder API NeoForge

Unofficial NeoForge port of Patbox's Text Placeholder API

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

About Placeholder API NeoForge

This is an unofficial port of Placeholder API to NeoForge, check out the original by Patbox here and a Paper port here.

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

For information about usage (for developers and users) you can check official docs of the original Fabric version at https://placeholders.pb4.eu/!

Developers

To depend on Placeholder API NeoForge, add the following to your buildscript:

repositories {
    // ... other repositories
    maven("https://maven.offsetmonkey538.top/releases") { name = "OffsetMonkey538" }
}

dependencies {
    // ... other dependencies
    implementation "eu.pb4:placeholder-api-neoforge:[VERSION]"
}

This will allow you to use the library in your project, but requires users to manually download it.
If you want to JIJ the library, see the NeoForge documentation for how to do so here.

Make sure to replace the [VERSION] with an actual valid version. For a list of available versions, check the maven here.

常见问题

Placeholder API NeoForge 支持哪些 Minecraft 版本?

Placeholder API NeoForge 支持 Minecraft Java 版 1.21.11–26.3,共 6 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Placeholder API NeoForge 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

OffsetMonkey538 的其他作品

查看全部 →