حول Placeholder API
إنها API صغيرة قابلة للتضمين بـ JIJ تتيح إنشاء وتحليل العناصر النائبة داخل النصوص ومكونات نص Minecraft. تستخدم Placeholder API تنسيقًا بسيطًا هو %modid:type% أو %modid:type data% (%modid:type/data% قبل 1.19). كما تتضمن تنسيق نص بسيطًا وعام الاستخدام مخصصًا لتبسيط إدخال المستخدم في ملفات الإعدادات والمحادثات وغيرها.
للمستخدمين
يتيح للمستخدمين إعداد عدة مودات بطريقة مشابهة دون فقدان التوافق بين المودات. تتيح العناصر النائبة تغيير ما وأين تظهر أي معلومات ضمن المودات المتوافقة.
بالإضافة إلى ذلك، يتيح Simplified Text Format تنسيقها بطريقة قابلة للقراءة دون الحاجة إلى كتابة JSON يدويًا أو استخدام المولدات.
- استخدام العناصر النائبة
- قائمة العناصر النائبة الافتراضية
- قائمة العناصر النائبة للمود
- QuickText
- Simplified Text Format
المودات التي تستخدم هذه الـ api عمومًا يجب أن تتضمنها مباشرة، لكن يمكنك تنزيل نسخة محدثة من هنا إذا لزم الأمر!
للمطورين
استخدام Placeholder API طريقة بسيطة لتحقيق توافق جيد بين المودات دون الحاجة إلى تطبيق عدة apis خاصة بكل مود. بالإضافة إلى ذلك، يمكن استخدام نظام تحليل العناصر النائبة لاستبدال العناصر النائبة الثابتة (أو الديناميكية) الخاصة بك في النص الذي ينشئه اللاعب أو يُقرأ من الإعدادات. هذا مع دمج Simplified Text Format يتيح إنشاء تجربة رائعة للمستخدم والمسؤول.
- البدء
- إضافة العناصر النائبة
- تحليل العناصر النائبة
- TextNodes و NodeParsers
- استخدام Simplified Text Format (TextParserV1)
[JIJ]: Jar-in-Jar
كيفية تثبيت Text Placeholder API
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.17–26.3 on Fabric or Quilt automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric or Quilt
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file placeholder-api-3.2.0+26.3.jar (249 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: Text Placeholder API should be in the list.
On a server
A server on Fabric or Quilt
The mod only works on a server with the same loader and game version, for example 26.3.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
الإصدارات
مع المتطلبات
| Minecraft | المشغّل | الملف | التاريخ | الإجراءات |
|---|---|---|---|---|
| 26.3 | Fabric | 26.3249 KB 1,417 | ||
| 26.2 | Fabric | 26.2249 KB 787 | — | |
| 26.1 | Fabric | 26.1248 KB 246 | — | |
| 1.21.11 | Fabric, Quilt | 1.21.11262 KB 2,735 | — | |
| 1.21.1 | Fabric, Quilt | 1.21.1227 KB 363 | — | |
| 1.21 | Fabric, Quilt | 1.21227 KB | — | |
| 1.20.4 | Fabric, Quilt | 1.20.4225 KB 50 | — | |
| 1.20.1 | Fabric, Quilt | 1.20.1143 KB 343 | — |
محتوى يتطلبه
التقييمات
كن أول من يقيّم Text Placeholder API


