Text Placeholder API

Placeholder and Text manipulation library for your Minecraft mods.

Редакция NLZONE · 1 мин чтения · 4 просмотра
Text Placeholder API
Скачать Text Placeholder API1.17 – 26w14a · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Placeholder and Text manipulation library for your Minecraft mods.

  • Тип: мод
  • Загрузчик: fabric, quilt
  • Версии Minecraft: 1.17 – 26w14a
  • Скачиваний на Modrinth: 76 404 363

Подробно

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.

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. - Using placeholders - Default placeholder list - Mod placeholder list - QuickText - Simplified Text Format

Mods generally using this api should just include it directly, but you can downloaded updated version from here if needed!

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)

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также