Skip to main content

Add-On Configuration

OptionRequiredTypeDescription
behavior_packNoBehavior PackConfiguration for a behavior pack.
If omitted, a behavior pack is not included in the add-on.
resource_packNoResource PackConfiguration for a resource pack.
If omitted, a resource pack is not included in the add-on.
targetYes"stable"
"preview"
Whether this creation targets Minecraft (stable) or Minecraft Preview. Determines which type definitions for native script libraries are available and installed.
typeYes"addon"
"editor_extension"
Defines this creation as an add-on or Editor extension.
Editor extensions are included here because they have the same options as add-ons.

Behavior Pack

OptionRequiredTypeDescription
directoriesYesDirectoriesDetermines the source, development and build directories for the behavior pack.
generate_contentsNobooleanWhether a contents.json file should be generated in the behavior pack.
If omitted, the file is not generated.
scriptsNoScripts

Scripts

OptionRequiredTypeDescription
automatic_reloadNoboolean
Automatic Reload
Starts a WebSocket that Minecraft clients can connect to in order to automatically run the "/reload" command when scripts are built. Enabled by default.
bundleNobooleanWhether scripts should be bundled into their entry file, disregarding the source file structure.
If omitted, scripts are not bundled.
dependenciesYesDependenciesWhich other script libraries these scripts depends on.
entryYesstringFile path to be treated as the script entry.
minifyNobooleanCompresses output script files, removing comments, whitespace and shortening names.
If omitted, scripts are not minified.
source_mapNobooleanImproves debugging by mapping outputted development files to their source files.
If omitted, sourcemaps are generated during development.
tree_shakeNobooleanWhether unused code and intermediate files are removed from the outputted files.
If omitted, tree shaking occurs.

Automatic Reload

OptionRequiredTypeDescription
portYesintegerThe port of localhost to host the automatic reload websocket on.

Dependencies

KeyValueDescription
<libraryName><versionRange>Where keys are library names and values are the required string version range.

Resource Pack

OptionRequiredTypeDescription
directoriesYesDirectoriesDetermines the source, development and build directories for the resource pack.
generate_contentsNobooleanWhether a contents.json file should be automatically generated in the resource pack.
If omitted, the file is not generated.
texturesNoTextures

Textures

OptionRequiredTypeDescription
generate_listNobooleanWhether a textures_list.json file should be automatically generated in the textures folder.
If omitted, the file is not generated.

Directories

OptionRequiredTypeDescription
sourceYesstringWhere source files are located.
developmentYesstringWhere will be built to during development with the minepicker dev command.
Can be specifically cleared by running the minepicker clean dev command.
buildYesstringWhere will be built to for publishing with the minepicker build command.
Can be specifically cleared by running the minepicker clean build command.