Skip to content

dpconfig format

Bee edited this page Apr 21, 2025 · 10 revisions

dpconfig is a format that allows you to define a config screen for your data pack. That screen can then be viewed in Datapack Toolkit, and be used to modify the data pack in a plethora of ways! :3

If you're just starting out, a good, up-to-date example of a config file will always be here, on Geophilic's repo, so check that out.


The config is defined in the dpconfig.json file in the root of your data pack.

Inside the file is the config object containing the following things:

  • meta - an object containing some metadata.
  • widgets - an ordered list/array of widget objects.
  • methods - an object containing method objects, keys being their names.
  • slots - an optional object describing variables and their default values.

Metadata

As of version 1, the following data is necessary inside the meta object:

  • ver - the format version. Currently 1.
  • tab - the name of the config tab in Datapack Toolkit. Should be the name of your pack.

Clone this wiki locally