From 7b5d18d4d490ae7f26a362ad1bb79d6b925f01dc Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Sat, 19 Aug 2023 14:33:09 +0200 Subject: [PATCH] Updating manifests --- source/general/manifest/manifest.2.json | 68 +++++++++++++++++-------- 1 file changed, 48 insertions(+), 20 deletions(-) diff --git a/source/general/manifest/manifest.2.json b/source/general/manifest/manifest.2.json index b7fd2b1e..a3d93e0a 100644 --- a/source/general/manifest/manifest.2.json +++ b/source/general/manifest/manifest.2.json @@ -11,7 +11,13 @@ "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" + "format": "uuid", + "defaultSnippets": [ + { + "label": "New UUID", + "body": "$UUID" + } + ] }, "version": { "$ref": "../Version.json" } }, @@ -22,26 +28,42 @@ "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" + "oneOf": [ + { + "type": "array", + "minItems": 1, + "items": { + "enum": ["raytraced", "pbr", "script_eval", "editorExtension", "experimental_custom_ui", "chemistry"] + } }, - "raytraced": { - "type": "boolean", - "description": "Indicates that this pack contains Raytracing Enhanced or Physical Based Materials for rendering.", - "title": "Raytraced" + { + "type": "object", + "properties": { + "chemistry": { + "type": "boolean", + "description": "Allows the pack to add, change or replace Chemistry functionality.", + "title": "Chemistry" + }, + "editorExtension": { + "type": "boolean", + "description": "Indicates that this pack contains extensions for editing.", + "title": "Editor Extension" + }, + "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" + }, + "raytraced": { + "type": "boolean", + "description": "Indicates that this pack contains Raytracing Enhanced or Physical Based Materials for rendering.", + "title": "Raytraced" + } + } } - } + ] }, "dependencies": { "type": "array", @@ -62,9 +84,9 @@ "title": "Uuid" }, "version": { - "$ref": "#/definitions/version", + "title": "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" + "oneOf": [{ "$ref": "../Version.json" }, { "$ref": "../format_version.json" }] } } }, @@ -78,13 +100,14 @@ "type": "string", "description": "This is the name of the module that this pack depends on.", "title": "Module Name", - "enum": [ + "examples": [ "mojang-gametest", "mojang-minecraft", "mojang-minecraft-server-admin", "mojang-minecraft-ui", "mojang-net", "@minecraft/server", + "@minecraft/server-editor", "@minecraft/server-ui", "@minecraft/server-gametest", "@minecraft/server-admin", @@ -108,6 +131,11 @@ "title": "Header", "required": ["description", "name", "uuid", "version"], "properties": { + "allow_random_seed": { + "title": "Allow Random Seed", + "type": "boolean", + "description": "This option is required for any world templates. This will allow the player to use a random seed when creating a new world from your template." + }, "base_game_version": { "$ref": "#/definitions/version", "title": "Base Game Version",