Skip to content

适用于 Minecraft 1.21, 26.3 的 Prickle 模组

Prickle 是一种引入 Minecraft 的基于 JSON 的配置文件格式。

起价 Darkhax · Modrinth
次下载
143 次下载
次浏览
344 次浏览
已更新
已更新 26.09.2026

关于 Prickle 模组

Prickle 是一种基于 JSON 的配置格式。这个模组让该格式可以在 Minecraft 中使用!技术文档请见 GitHub 页面。

常见问题

Prickle 有什么优势?Prickle 基于 JSON,但增加了若干实用功能,例如注释和装饰器。Prickle 与 JSON 100% 向后兼容,并支持其所有功能、工具和语法高亮。

为什么叫 Prickle?Prickle 是刺猬群的集合名词。刺猬是我最喜欢的动物之一,我认为它们是配置文件的绝佳比喻。例如,它们乍看之下可能令人生畏,但一旦你了解并理解它们,就会觉得它们很可爱。

为什么不使用现有的格式?过去我曾用 JSON 来写配置文件,但存在若干问题,例如缺少注释和默认值。Prickle 在保持 100% 向后兼容的同时为 JSON 增加了这些功能。我尝试过 TOML 等其他格式,但对它们的许多 Java 实现感到失望。它们往往缺少我认为重要的功能,存在严重缺陷,并且不再维护。Minecraft 已经将 JSON 用于数据包和命令,这使其成为大多数玩家熟悉的选择。

格式规范

在 Prickle 中,属性值被包裹在一个 JSON 对象中。这样可以给该属性附加注释等元数据。

例如,一个标准 JSON 文件看起来是这样的。

{ "databasehost": "192.168.1.222" }

同样的 JSON 作为 Prickle 文件看起来是这样的。

{ "databasehost": { "//": "要连接的数据库的 IP 地址。", "value": "192.168.1.222" } }

注释

// 键保留用于注释。注释仅用于为读者提供额外上下文,绝不应影响文件的解析方式。注释可以是 JSON 字符串,也可以是字符串数组以实现多行注释。

{ "databasehost": { "//": [ "要连接的数据库的 IP 地址。", "端口可以在末尾使用 : 定义" ], "value": "192.168.1.222:1273" } }

装饰器

装饰器是具名注释,用于传达属性的特定特性。一个常见的装饰器示例是 //default,可用于显示属性的默认值。与注释一样,装饰器不影响文件的解析方式,它们只描述属性将如何被解析。

你可能会在 prickle 文件中遇到以下一些装饰器。

  • //default - 属性的默认值。
  • //reference - 可用于了解更多信息的资源,例如指向 wiki 页面的链接。
  • //range - 值的可接受范围。例如 >=5。
  • //regex - 值必须匹配的正则表达式模式。
  • //empty-allowed - 值是否可以为空。(默认为 true)。

赞助商

本项目由 Nodecraft 赞助。使用优惠码 DARKHAX 可享受首月服务 30% 折扣!

如何安装 Prickle

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. 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.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. 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.

  2. 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.

  3. 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.

  4. Launch the loader profile

    Open “Mods” in the main menu: Prickle should be in the list.

On a server

  1. 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.

  2. File goes into the server’s mods folder

    Stop the server, put the mod file into the mods folder and start the server again.

  3. 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.3NeoForge26.380.4 KB 4
26.3Fabric26.383.4 KB 84
26.2Fabric26.282.9 KB 40—
26.1Fabric26.182.9 KB 9—
1.21.11Fabric, Quilt1.21.1185.2 KB 6—
1.21NeoForge1.2181.6 KB—

常见问题

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 的人

评论 0

登录后即可评论登录

相似模组

全部模组

了解更多

作者: Darkhax许可证: LGPL-2.1-only源代码

您是作者吗? 联系我们 —— 我们将在 48 小时内下架。