Updating manifests

This commit is contained in:
DaanV2
2023-08-19 14:33:09 +02:00
parent 35dd605f41
commit 7b5d18d4d4

View File

@@ -11,7 +11,13 @@
"title": "An UUID V4", "title": "An UUID V4",
"description": "A valid 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}$", "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" } "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" "description": "This defines the current version of the manifest. Don't change this unless you have a good reason to"
}, },
"capabilities": { "capabilities": {
"type": "object",
"title": "Capabilities", "title": "Capabilities",
"description": "These are the different features that the pack makes use of that aren't necessarily enabled by default.", "description": "These are the different features that the pack makes use of that aren't necessarily enabled by default.",
"properties": { "oneOf": [
"experimental_custom_ui": { {
"type": "boolean", "type": "array",
"description": "Allows HTML files in the pack to be used for custom UI, and scripts in the pack to call and manipulate custom UI.", "minItems": 1,
"title": "Experimental Custom Ui" "items": {
"enum": ["raytraced", "pbr", "script_eval", "editorExtension", "experimental_custom_ui", "chemistry"]
}
}, },
"chemistry": { {
"type": "boolean", "type": "object",
"description": "Allows the pack to add, change or replace Chemistry functionality.", "properties": {
"title": "Chemistry" "chemistry": {
}, "type": "boolean",
"raytraced": { "description": "Allows the pack to add, change or replace Chemistry functionality.",
"type": "boolean", "title": "Chemistry"
"description": "Indicates that this pack contains Raytracing Enhanced or Physical Based Materials for rendering.", },
"title": "Raytraced" "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": { "dependencies": {
"type": "array", "type": "array",
@@ -62,9 +84,9 @@
"title": "Uuid" "title": "Uuid"
}, },
"version": { "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", "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", "type": "string",
"description": "This is the name of the module that this pack depends on.", "description": "This is the name of the module that this pack depends on.",
"title": "Module Name", "title": "Module Name",
"enum": [ "examples": [
"mojang-gametest", "mojang-gametest",
"mojang-minecraft", "mojang-minecraft",
"mojang-minecraft-server-admin", "mojang-minecraft-server-admin",
"mojang-minecraft-ui", "mojang-minecraft-ui",
"mojang-net", "mojang-net",
"@minecraft/server", "@minecraft/server",
"@minecraft/server-editor",
"@minecraft/server-ui", "@minecraft/server-ui",
"@minecraft/server-gametest", "@minecraft/server-gametest",
"@minecraft/server-admin", "@minecraft/server-admin",
@@ -108,6 +131,11 @@
"title": "Header", "title": "Header",
"required": ["description", "name", "uuid", "version"], "required": ["description", "name", "uuid", "version"],
"properties": { "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": { "base_game_version": {
"$ref": "#/definitions/version", "$ref": "#/definitions/version",
"title": "Base Game Version", "title": "Base Game Version",