Skip to content
Poplar

Docs / Reference

Project

my_pack/
├── poplar.json the project config (optional)
├── src/
│ └── **/*.poplar every source file, each starting with `namespace <name>;`
└── poplar-out/
├── <zipName>/ the datapack
└── <zipName>.zip the same datapack as a zip

Each build deletes and rewrites poplar-out/. All fields of poplar.json are optional:

FieldDefaultDescription
zipNamethe folder namethe name of the pack folder and the zip; no / or \
namespacethe folder namethe pack namespace, for Poplar’s own files and the standard library: a-z 0-9 _ . -
descriptionzipNamethe pack description, any JSON text component
minFormatthe targeted versionthe lowest pack format: a number or [major, minor], at least 88 (1.21.9)
maxFormatminFormatthe highest pack format
$schemaignored by the compiler; lets editors check the file

Costs and caveats

  • Poplar needs Minecraft 1.21.9 or newer (pack format 88 or higher).

MIT licensed. The standard library is MIT-0.Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.