Files
minecraft-bedrock-json-schemas/source/general/manifest/manifest.2.json

166 lines
8.1 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
"$id": "blockception.minecraft.manifest.2",
"type": "object",
"title": "Manifest V2 Schema",
"description": "The manifest file contains all the basic information about the pack that Minecraft needs to identify it. The tables below contain all the components of the manifest, their individual properties, and what they mean.",
"required": ["format_version", "header"],
"definitions": {
"uuidv4": {
"type": "string",
"title": "An UUID V4",
"description": "A valid uuid v4",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"format": "uuid"
},
"version": { "$ref": "../Version.json" }
},
"properties": {
"format_version": {
"title": "Format Version",
"type": "number",
"description": "This defines the current version of the manifest. Don't change this unless you have a good reason to"
},
"capabilities": {
"type": "object",
"title": "Capabilities",
"description": "These are the different features that the pack makes use of that aren't necessarily enabled by default.",
"properties": {
"experimental_custom_ui": {
"type": "boolean",
"description": "Allows HTML files in the pack to be used for custom UI, and scripts in the pack to call and manipulate custom UI",
"title": "Experimental Custom Ui"
},
"chemistry": { "type": "boolean", "description": "Allows the pack to add, change or replace Chemistry functionality", "title": "Chemistry" },
2021-07-01 16:37:41 +02:00
"raytraced": { "type": "boolean", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Raytraced" }
2021-06-06 10:07:19 +00:00
}
},
"dependencies": {
"type": "array",
"description": "These are the different features that the pack makes use of that aren't necessarily enabled by default.",
"items": {
"additionalProperties": false,
"type": "object",
"properties": {
"uuid": {
"type": "string",
"$ref": "#/definitions/uuidv4",
"description": "This is the unique identifier of the pack that this pack depends on. It needs to be the exact same UUID that the pack has defined in the header section of it's manifest file",
"title": "Uuid"
},
"version": {
"$ref": "#/definitions/version",
"description": "This is the specific version of the pack that your pack depends on. Should match the version the other pack has in its manifest file",
"title": "Version"
}
},
"description": "UNDOCUMENTATED: dependencies",
2021-06-06 10:07:19 +00:00
"title": "Dependencies"
},
"title": "Dependencies"
},
"header": {
"description": "This is the heading of the manifest and is required for the manifest to be valid.",
"title": "Header",
"required": ["description", "name", "uuid", "version"],
"properties": {
"base_game_version": {
"$ref": "#/definitions/version",
"title": "Base Game Version",
"description": "This is the version of the base game your world template requires, specified as [majorVersion, minorVersion, revision]. We use this to determine what version of the base game resource and behavior packs to apply when your content is used."
},
"description": {
"title": "Description",
"type": "string",
"default": 0,
"description": "This is a short description of the pack. It will appear in the game below the name of the pack. We recommend keeping it to 1-2 lines."
},
"lock_template_options": {
"title": "Lock Template Options",
"type": "boolean",
"description": "This option is required for any world templates. This will lock the player from modifying the options of the world."
},
"min_engine_version": {
"title": "Min Engine Version",
"$ref": "#/definitions/version",
"description": "This is the minimum version of the game that this pack was written for. This is a required field for resource and behavior packs. This helps the game identify whether any backwards compatibility is needed for your pack. You should always use the highest version currently available when creating packs"
},
"name": {
"title": "Name",
"type": "string",
"description": "This is the name of the pack as it appears within Minecraft. This is a required field."
},
"uuid": {
"title": "UUID",
"$ref": "#/definitions/uuidv4",
"description": "This is a special type of identifier that uniquely identifies this pack from any other pack. UUIDs are written in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where each x is a hexadecimal value (0-9 or a-f). We recommend using an online service to generate this and guarantee their uniqueness (just bing UUID Generator to find some)"
},
"version": {
"title": "Version",
"$ref": "#/definitions/version",
"description": "This is the version of your pack in the format [majorVersion, minorVersion, revision]."
}
}
},
"modules": {
"type": "array",
"title": "Modules",
"description": "This section describes the modules that comprise the pack. Each entry here defines one of the kinds of contents of the pack.",
"items": {
"type": "object",
"additionalProperties": false,
"description": "This section describes the modules that comprise the pack. Each entry here defines one of the kinds of contents of the pack.",
"title": "Module",
"required": ["type", "uuid", "version"],
"properties": {
"description": {
"type": "string",
"description": "This is a short description of the module. This is not user-facing at the moment but is a good place to remind yourself why the module is defined",
"title": "Description"
},
"type": {
"type": "string",
"enum": ["resources", "data", "client_data", "interface", "world_template"],
"description": "This is the type of the module. Can be any of the following: resources, data, client_data, interface, world_template",
"title": "Type"
},
"uuid": {
"$ref": "#/definitions/uuidv4",
"description": "This is a unique identifier for the module in the same format as the pack's UUID in the header. This should be different from the pack's UUID, and different for every module",
"title": "Uuid"
},
"version": {
"$ref": "#/definitions/version",
"description": "This is the version of your pack in the format [majorVersion, minorVersion, revision]. The version number is used when importing a pack that has been imported before. The new pack will replace the old one if the version is higher, and ignored if it's the same or lower",
"title": "Version"
}
}
}
},
"metadata": {
"additionalProperties": false,
"type": "object",
"description": "This section contains additional data about your pack and is otherwise optional.",
"title": "Metadata",
"properties": {
"authors": {
"title": "Authors",
"oneOf": [
{
"description": "Name of the author(s) of the pack",
"type": "array",
"items": { "type": "string", "title": "Name", "description": "Name of the author of the pack" }
},
{
"description": "Name of the author of the pack",
"type": "string"
}
]
},
"license": { "type": "string", "title": "License", "description": "The license of the pack" },
"url": { "type": "string", "format": "uri", "title": "Url", "description": "The home website of your pack" }
}
}
},
"additionalProperties": false
}