Language

Prickle

Prickle

Modrinth

Prickle is a JSON based configuration file format brought to Minecraft.

9.6M downloads 502 followers updated 2d ago
latest v26.2.0.2 Modrinth
Fabric Forge Neoforge Quilt 1.21 – 26.2 Library

Prickle is a JSON based config format. This mod allows the format to be used in Minecraft! For technical documentation please see the GitHub page.

FaQ

What benefits does Prickle offer?
Prickle is based on JSON but adds several useful features like comments and decorators. Prickle is 100% backwards compatible with JSON and supports all of its features, tools, and syntax highlighting.

Why is this called Prickle?
Prickle is the collective noun for a group of hedgehogs. Hedgehogs are one of my favourite animals and I think they are a fitting metaphor for config files. For example, they both may seen intimidating at first but can be nice once you get to know and understand them.

Why not use an existing format?
In the past I have used JSON for my config files but there were several issues such as the lack of comments and default values. Prickle adds these features to JSON while remaining 100% backwards compatible. I have tried other formats like TOML but was disappointed with a lot of their Java implementations. They often lack features I feel are important, have serious bugs, and are no longer being maintained. Minecraft already uses JSON for datapacks and commands, making it a familiar choice for most players.

Format Specifications

In Prickle property values are wrapped in a JSON object. This allows metadata like comments to be attributed to that property.

For example a standard JSON file would look like this.

{
  "database_host": "192.168.1.222"
}

The same JSON as a Prickle file would look like this.

{
  "database_host": {
    "//": "The IP address of the database to connect to.",
    "value": "192.168.1.222"
  }
}

Comments

The // key is reserved for comments. Comments are only used to provide additional context to the reader and should never influence how the file is parsed. Comments can be a JSON string or an array of strings for multiline comments.

{
  "database_host": {
    "//": [
      "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"
  }
}

Decorators

Decorators are named comments that convey a specific attribute of the property. A common example of a decorator is //default which can be used to display the default value of the property. Like comments, decorators have no influence on how the file is parsed, they only describe how the property will be parsed.

You may encounter some of the following decorators in prickle files.

  • //default - The default value of the property.
  • //reference - A resource that can be used to learn more, like a link to a wiki page.
  • //range - The acceptable range for a value. For example >=5.
  • //regex - A regex pattern that the value must match.
  • //empty-allowed - If the value can be empty or not. (default is true).

Sponsors

Nodecraft sponsor banner

This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!

Versions

Release
26.2.0.2
fabric · 26.2 · 2d ago
- Fix dependency metadata and fix how changelogs generated. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from…
6.5k
Release
26.2.0.2
neoforge · 26.2 · 2d ago
- Fix dependency metadata and fix how changelogs generated. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from…
389
Release
26.1.2.5
fabric · 26.1, 26.1.1, 26.1.2 · 2d ago
- Fix dependency metadata and changelog generation. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players…
8.5k
Release
26.1.2.5
neoforge · 26.1, 26.1.1, 26.1.2 · 2d ago
- Fix dependency metadata and changelog generation. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players…
597
Release
26.2.0.1
fabric · 26.2 · 3d ago
This is the first successful build for 26.2. You can learn more here: https://github.com/Darkhax-Minecraft/PrickleMC/commits/26.2/ This project is made…
851
Release
26.2.0.1
neoforge · 26.2 · 3d ago
This is the first successful build for 26.2. You can learn more here: https://github.com/Darkhax-Minecraft/PrickleMC/commits/26.2/ This project is made…
27
Release
26.1.2.4
fabric · 26.1, 26.1.1, 26.1.2 · 3d ago
The changelog for this build is unavailable. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you!…
3.9k
Release
26.1.2.4
neoforge · 26.1, 26.1.1, 26.1.2 · 3d ago
The changelog for this build is unavailable. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you!…
248
Release
26.1.2.3
fabric · 26.1, 26.1.1, 26.1.2 · 26d ago
The changelog for this build is unavailable. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you!…
69.8k
Release
26.1.2.3
neoforge · 26.1, 26.1.1, 26.1.2 · 26d ago
The changelog for this build is unavailable. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you!…
5.5k
Release
26.1.2.2
fabric · 26.1, 26.1.1, 26.1.2 · 2mo ago
The changelog for this build is unavailable. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you!…
71.9k
Release
26.1.2.2
neoforge · 26.1, 26.1.1, 26.1.2 · 2mo ago
The changelog for this build is unavailable. This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you!…
7.3k

Comments 0

No comments yet. Be the first to share your thoughts.

Download Prickle

R 26.2.0.2 26.2 fabric 83 KB R 26.2.0.2 26.2 neoforge 81 KB R 26.1.2.5 26.1, 26.1.1, 26.1.2 fabric 83 KB R 26.1.2.5 26.1, 26.1.1, 26.1.2 neoforge 81 KB R 26.2.0.1 26.2 fabric 83 KB R 26.2.0.1 26.2 neoforge 81 KB R 26.1.2.4 26.1, 26.1.1, 26.1.2 fabric 83 KB R 26.1.2.4 26.1, 26.1.1, 26.1.2 neoforge 81 KB R 26.1.2.3 26.1, 26.1.1, 26.1.2 fabric 83 KB R 26.1.2.3 26.1, 26.1.1, 26.1.2 neoforge 81 KB R 26.1.2.2 26.1, 26.1.1, 26.1.2 fabric 84 KB R 26.1.2.2 26.1, 26.1.1, 26.1.2 neoforge 82 KB R 26.1.2.1 26.1, 26.1.1, 26.1.2 fabric 84 KB R 26.1.2.1 26.1, 26.1.1, 26.1.2 neoforge 82 KB R 26.1.1.8 26.1, 26.1.1 fabric 84 KB R 26.1.1.8 26.1, 26.1.1 neoforge 82 KB R 26.1.1.7 26.1.1 fabric 84 KB R 26.1.1.7 26.1.1 neoforge 82 KB R 26.1.1.5 26.1.1 fabric 84 KB R 26.1.1.5 26.1.1 neoforge 82 KB R 26.1.1.3 26.1.1 fabric 84 KB R 26.1.1.3 26.1.1 neoforge 82 KB R 26.1.1.2 26.1.1 fabric 84 KB R 26.1.1.2 26.1.1 neoforge 82 KB R 26.1.1.1 26.1.1 fabric 85 KB R 26.1.1.1 26.1.1 neoforge 83 KB R 21.11.1 1.21.11 fabric, quilt 85 KB R 21.11.1 1.21.11 neoforge 83 KB R 21.10.2 1.21.10 fabric, quilt 85 KB R 21.10.2 1.21.10 neoforge 83 KB R 21.9.1 1.21.9 fabric, quilt 85 KB R 21.9.1 1.21.9 neoforge 83 KB R 21.8.2 1.21.8 fabric, quilt 85 KB R 21.8.2 1.21.8 neoforge 83 KB R 21.1.11 1.21.1 neoforge 83 KB R 21.1.11 1.21.1 forge 83 KB R 21.1.11 1.21.1 fabric, quilt 85 KB R 21.8.1 1.21.8 fabric, quilt 84 KB R 21.8.1 1.21.8 neoforge 82 KB R 21.7.1 1.21.7 fabric, quilt 84 KB R 21.7.1 1.21.7 neoforge 82 KB R 21.6.1 1.21.6 fabric, quilt 84 KB R 21.6.1 1.21.6 neoforge 82 KB R 21.5.1 1.21.5 fabric, quilt 84 KB R 21.5.1 1.21.5 neoforge 82 KB R 21.4.1 1.21.4 fabric, quilt 84 KB R 21.4.1 1.21.4 neoforge 82 KB R 21.3.1 1.21.3 fabric, quilt 84 KB R 21.3.1 1.21.3 neoforge 82 KB R 21.2.1 1.21.2 fabric, quilt 84 KB

Files are served directly from the original source. Modgrid does not host or modify them.