pkl4mc

Quick rating

pkl4mc

No reviews yet

Brings the PKL language as a JSON replacement to Minecraft for mod and modpack creators.

QoL & Tweaks
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
pkl4mc-0.11.0+mc.20.1
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

About

Description

pkl4mc


[DISCLAIMER] This was originally a dumb idea I had and built for self use and to learn more about PKL runtime and JVM. If it's useful to you too, great. Btw I also used Gemini for bugfixing and planning, so kill me for that.

Brings the PKL language as a JSON replacement to Minecraft for mod and modpack creators.

What the hell is PKL?

PKL is a configuration language by Apple, which has type-safetines, autocompletion, validation and schemas.

With pkl4mc you can create any vanilla datapack in PKL instead of JSON. Which brings a consistent sytax for mod support and error caughting in your ide instead of the game log (lol).

Unlike KubeJS, pkl4mc is NOT a scripting mod, it is a typed data format, where everything is reloadable at runtime with /pkl reload. This also shows up in reload times:

Both mods had the same 100 recipes, including adding, removing, replacing (input and output).

recipe step per reload (median)
pkl4mc ~ 7–9 ms
KubeJS (2001.6.5 + Rhino) ~ 30–65 ms

And to be fair KubeJS is doing way more than recipes. If you need scripting logic, use KubeJS. If you need typed, fast, reloadable data, use pkl4mc.

Who is the Project for?

Probably for modpack and datapack devs, who wanna have autocmpletion and typecheking instead of guessing, or maybe hate JSON for some reason (a camp I'm in too).

For modpack devs with companion mods, who just want a better workflow for recipe adjustments and unifications (another camp I'm in too).

Also for mod devs who wanna depend on pkl4mc as a library and load typed configs via PklConfig.load<T>(), or register their own schemas (You can guess it).

Dependencies

  • Currently only mc.20.1 and Forge
  • Kotlin for Forge
  • pkl-core (Already included inside the jar fyi)

For Dev

Installation

thats just a placeholder gif for now installation

Example

Here is a smelting recipe in JSON:

{
  "type": "minecraft:smelting",
  "category": "misc",
  "ingredient": { "item": "minecraft:sea_pickle" },
  "result": "nothingcore:cooked_sea_pickle",
  "experience": 0.7,
  "cookingtime": 200
}

And here in PKL:

amends "@pkl4mc/recipes.pkl"

smelting {
  new {
    name = "example_smelting"
    category = "misc"
    input { item = "minecraft:sea_pickle" }
    output { item = "nothingcore:cooked_sea_pickle" }
    experience = 0.7
    cookingTime = 200
  }
}

How to get help

There are docs in progress (like KubeJS LOL): docs.nothingseries.org and also examples for each mod integration.

If something is missing pls make a issue on the issue tracker.

If you need help join the Nothing Series Hub and make a ticket or ask in the support channel.

Contributing

Currently the most useful contribution is bug reporting and schema creation for a mods that doesn't have one yet.

License


Feel free to use this badges in your modpacks or mods.


Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works