Installation & IDE Setup
Requirements
pkl-core is already shaded into the jar.
Install the mod
Download the mod
I probably don’t need to tell you how to install a Minecraft mod.
Start the game once
pkl4mc will create its working directory:
- PklProject
- README.txt
data/holds loose.pklfiles, with some example filesdatapacks/holds full.pkldatapacks (folders or zips)schemas/holds bundled schemas, copied out for your editorregistries/holds registry id modules made by /pkl dumpPklProjectis the auto-generated editor project config
All important files are in data/, datapacks/, and assets/. ALL other files are just auto-generated and will probably rewrite on restart.
IDE setup
Install the PKL extension
Install the PKL extension for your editor of choice:
Patched pkl-lsp (optional)
For now install the patched pkl-lsp, which has way better performance, then the default one. Some day I will make a PR, but for now just install the patched release.
In your editor’s settings change the pkl.lsp.path to the downloaded jar. For more information, look up the PKL documentation
Setup
Run the
/pkl dumpcommand once in game. The command exports every registry id of your running modpack toconfig/pkl4mc/registries/, which makes item, tag and fluid ids autocomplete.Open
config/pkl4mc/as your editor workspace root.Re-run
/pkl dumpafter adding or removing mods. A stale dump only affects editor completion. The runtime never validates against it, so it cannot break world loads.
Install the PKL CLI (optional)
Most editor extensions will not need it.