Text Placeholder API (Neoforge edition)

Quick rating

Community listing page, reviews here may not be monitored by the author.

Text Placeholder API (Neoforge edition)

No reviews yet

Set placeholder values in text and manipulate them as you please

Mod Loaders
Minecraft

About

Description

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