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

1 line
29 KiB
JSON
Raw Normal View History

{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.manifest","type":"object","title":"Manifest Schema","description":"The minecraft manifest schema.","required":["format_version","header"],"examples":[{"format_version":3,"header":{"description":"pack.description","name":"pack.name","uuid":"UUID2","min_engine_version":[1,20,40],"version":[1,0,0]},"modules":[{"type":"data","uuid":"UUID2","version":[1,0,0]}]}],"defaultSnippets":[{"label":"New Manifest","body":{"format_version":3,"header":{"description":"pack.description","name":"pack.name","uuid":"$UUID","min_engine_version":[1,20,10],"version":[1,0,0]},"modules":[{"type":"data","uuid":"$UUID","version":[1,0,0]}]}}],"allOf":[{"if":{"properties":{"format_version":{"const":1,"type":"number","title":"Format Version"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"const":2,"type":"number","title":"Format Version"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"format_version":{"const":3,"type":"number","title":"Format Version"}}},"then":{"$ref":"#/definitions/G"}}],"definitions":{"B":{"description":"A valid UUID v4.","format":"uuid","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$","title":"A UUID Format V4","type":"string","defaultSnippets":[{"label":"new UUID v4","body":"$UUID"}]},"C":{"type":"array","title":"Version Numbering","description":"A version made of 3 numbers.","examples":[[1,0,0]],"items":[{"type":"number","minimum":1,"title":""},{"type":"number","minimum":0,"title":"Major"},{"type":"number","minimum":0,"title":"Minor"}]},"D":{"title":"Semantic Version","description":"A semver.org compliant version number.","type":"string","pattern":"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$","minLength":5,"maxLength":256,"examples":["1.0.0","1.1.0-beta"]},"A":{"type":"object","title":"Manifest V1 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.","additionalProperties":false,"required":["format_version","header"],"properties":{"format_version":{"type":"number","description":"This defines the current version of the manifest. Don't change this unless you have a good reason to","title":"Format Version"},"header":{"required":["name","uuid","version"],"properties":{"name":{"type":"string","default":0,"description":"This is the name of the pack as it appears within Minecraft.","title":"Name"},"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.","title":"Description"},"uuid":{"type":"string","$ref":"#/definitions/B","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)","title":"UUID"},"version":{"title":"Version","description":"This is the version of your pack in the format [majorVersion, minorVersion, revision].","oneOf":[{"$ref":"#/definitions/C"},{"$ref":"#/definitions/D"}]},"min_engine_version":{"type":"string","$ref":"#/definitions/C","description":"This is the minimum version of the game that this pack was written for. 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","title":"Minimum Engine Version"},"pack_scope":{"title":"Pack Scope","type":"string","description":"This is the scope of the pack. This is only for resource packs","enum":["global","world","any"]},"lock_template_options":{"type":"