حول مود Prickle
Prickle هو تنسيق إعدادات قائم على JSON. تتيح هذه الإضافة استخدام هذا التنسيق في Minecraft! للاطلاع على الوثائق التقنية، يُرجى مراجعة صفحة GitHub.
الأسئلة الشائعة
ما المزايا التي يقدمها Prickle؟ يستند Prickle إلى JSON لكنه يضيف عدة ميزات مفيدة مثل التعليقات والمُزيّنات. Prickle متوافق بنسبة 100% مع الإصدارات السابقة من JSON ويدعم جميع ميزاته وأدواته وإبراز الصياغة فيه.
لماذا يُسمى هذا Prickle؟ Prickle هو الاسم الجمعي لمجموعة من القنافذ. القنافذ من حيواناتي المفضلة وأعتقد أنها استعارة مناسبة لملفات الإعدادات. فكلاهما قد يبدو مخيفًا في البداية لكنه يمكن أن يكون لطيفًا بمجرد التعرف عليه وفهمه.
لماذا لا تستخدم تنسيقًا موجودًا بالفعل؟ في الماضي استخدمت JSON لملفات الإعدادات الخاصة بي لكن ظهرت عدة مشكلات مثل غياب التعليقات والقيم الافتراضية. يضيف Prickle هذه الميزات إلى JSON مع بقائه متوافقًا بنسبة 100% مع الإصدارات السابقة. جربت تنسيقات أخرى مثل TOML لكنني خُيّبت في كثير من تطبيقاتها بلغة Java. فغالبًا ما تفتقر إلى ميزات أراها مهمة، وتحتوي على أخطاء جسيمة، ولم تعد تُصان. يستخدم Minecraft بالفعل JSON لحزم البيانات والأوامر، مما يجعله خيارًا مألوفًا لمعظم اللاعبين.
مواصفات التنسيق
في Prickle تُغلَّف قيم الخصائص داخل كائن JSON. يتيح ذلك إسناد بيانات وصفية مثل التعليقات إلى تلك الخاصية.
على سبيل المثال، يبدو ملف JSON القياسي هكذا.
{ "databasehost": "192.168.1.222" }
نفس JSON في ملف Prickle يبدو هكذا.
{ "databasehost": { "//": "The IP address of the database to connect to.", "value": "192.168.1.222" } }
التعليقات
المفتاح // محجوز للتعليقات. تُستخدم التعليقات فقط لتقديم سياق إضافي للقارئ ولا ينبغي أن تؤثر أبدًا في كيفية تحليل الملف. يمكن أن يكون التعليق نصًا JSON أو مصفوفة من النصوص للتعليقات متعددة الأسطر.
{ "databasehost": { "//": [ "The IP address of the database to connect to.", "The port can be defined at the end using an :" ], "value": "192.168.1.222:1273" } }
المُزيّنات
المُزيّنات هي تعليقات مسماة تنقل سمة محددة للخاصية. من الأمثلة الشائعة على المُزيّن //default الذي يمكن استخدامه لعرض القيمة الافتراضية للخاصية. مثل التعليقات، لا تؤثر المُزيّنات في كيفية تحليل الملف، بل تصف فقط كيفية تحليل الخاصية.
قد تصادف بعض المُزيّنات التالية في ملفات prickle.
- //default - القيمة الافتراضية للخاصية.
- //reference - مصدر يمكن استخدامه لمعرفة المزيد، مثل رابط إلى صفحة ويكي.
- //range - النطاق المقبول للقيمة. على سبيل المثال >=5.
- //regex - نمط regex يجب أن تطابقه القيمة.
- //empty-allowed - ما إذا كانت القيمة يمكن أن تكون فارغة أم لا. (الافتراضي هو true).
الرعاة
هذا المشروع برعاية Nodecraft. استخدم الرمز DARKHAX للحصول على خصم 30% على أول شهر من الخدمة!
كيفية تثبيت Prickle
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.21–26.3 on Fabric, NeoForge or Quilt automatically, together with its dependencies: Fabric API.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, NeoForge 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 PrickleMC-neoforge-MC26.3-26.3.0.2.jar (80 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. Required dependencies go there too: Fabric API.
Launch the loader profile
Open “Mods” in the main menu: Prickle should be in the list.
On a server
A server on Fabric, NeoForge 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 | NeoForge | 26.380.4 KB 4 | ||
| 26.3 | Fabric | 26.383.4 KB 84 | ||
| 26.2 | Fabric | 26.282.9 KB 39 | — | |
| 26.1 | Fabric | 26.182.9 KB 9 | — | |
| 1.21.11 | Fabric, Quilt | 1.21.1185.2 KB 6 | — | |
| 1.21 | NeoForge | 1.2181.6 KB | — |
ما يلزم لتشغيله
- Fabric APIمطلوب
الأسئلة الشائعة
Which Minecraft versions does Prickle work on?
There are files for 1.21–26.3, 7 versions in total. The newest is 26.3.
Is Prickle for Forge or Fabric?
There are files for Fabric: 1.21.11–26.3, for NeoForge: 1.21–26.3 and for Quilt: 1.21.11. There are no files for Forge: a mod for another loader will not start.
What does Prickle need to work?
Required: Fabric API. Without it the mod will not start: dependencies go into the same mods folder.
Does Prickle work on a server?
Yes. Prickle works both in singleplayer and on a server.
Where can I download Prickle safely?
On this page: the file PrickleMC-neoforge-MC26.3-26.3.0.2.jar (80 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: d8e977765bcfd80ee87728bf9f6891adcbfd25b1.
التقييمات
كن أول من يقيّم Prickle


