2024-12-15 03:03:52|Myriagame |source:minecraft skins
Prickle is a JSON configuration format.This module allows the format in Minecraft!For technical documents, see the GitHub page.
Common problem
What are the benefits of Prickle?
Prickle is based on JSON, but adds some useful functions such as comments and decoratives.Prickle and JSON are fully compatible and support all its functions, tools and grammar highlights.
Why is this prickle?
Prickle is a collection of hedgehog groups.Hedgehog is one of the most favorite animals of the author, and the author believes that they are a proper metaphor for configuration files.For example, they may look a bit scary, but once you understand and understand them, you will find that they are actually good.
Why not use the existing format?
In the past, the author used JSON as a configuration file, but there were some problems, such as lack of comments and default values.Prickle adds these functions while retaining completely backward compatibility with JSON.The author has tried other formats, such as Toml, but disappointed with many of their Java implementation.They often lack the author's consideration of important functions, have serious loopholes, and no longer maintain.Minecraft has used JSON for data packets and control, making it a familiar choice for most players.
Format
In Prickle, the attribute value is packaged in the JSON object.This allows metadata such as annotations to be attached to the attribute.
For example, the standard json file is shown below:
{"database_host": "192.168.1.222"}
The JSON file of the Prickle format is shown below:
{"database_host": {"//": "The IP Address of the DataBase to connect to.", "Value": "192.168.1.222"}
Annotation
// The key is reserved for annotation.Note is only used to provide readers with additional context, and does not affect the analysis of files.Note can be a JSON string or a string array of multi -line annotation.
{"database_host": {"//": [the ip address of the database to connect to. "," The port can be defined the the end using an: "], "Value": "192.168.1.222:1273"}}
Decorator
The decorator is a comment with a specific attribute name to express specific attributes.A common example of the decorative is // default, which can be used to display the default value of the attribute.Like annotations, the decorator does not affect the parsing method of the file, but only describes how the attribute will be parsed.
You may encounter the following decorations in the Prickle file:
// The default value of the default attribute; // Reference is used to learn more information, such as links pointing to the wiki page;
// The acceptable range of the range value, such as> = 5;
// The RegEx value must match the regular expression template;
// Empty-Allowed values can be empty (default).
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57
The story between humans and
2025-01-28 09:16:27
Capture "Trinity 3: Artifact
2025-01-28 09:15:27
Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27
Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27
Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26
Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25
King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25
Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24
Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23
Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23
Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22
Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22
Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22