Updating uuid reference

This commit is contained in:
DaanV2
2023-11-28 19:52:40 +01:00
parent 47344e20ae
commit 7d3a8a441a
4 changed files with 62 additions and 39 deletions

View File

@@ -3,7 +3,7 @@
"description": "A valid UUID v4.", "description": "A valid UUID v4.",
"format": "uuid", "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}$", "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", "title": "A UUID Format V4",
"type": "string", "type": "string",
"defaultSnippets": [{ "label": "new UUID v4", "body": "$UUID" }] "defaultSnippets": [{ "label": "new UUID v4", "body": "$UUID" }]
} }

View File

@@ -8,8 +8,20 @@
"examples": [ "examples": [
{ {
"format_version": 2, "format_version": 2,
"header": { "description": "pack.description", "name": "pack.name", "uuid": "UUID2", "min_engine_version": [1, 20, 10], "version": [1, 0, 0] }, "header": {
"modules": [{ "type": "data", "uuid": "UUID2", "version": [1, 0, 0] }] "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": [ "defaultSnippets": [
@@ -17,18 +29,46 @@
"label": "New Manifest", "label": "New Manifest",
"body": { "body": {
"format_version": 2, "format_version": 2,
"header": { "description": "pack.description", "name": "pack.name", "uuid": "$UUID", "min_engine_version": [1, 20, 10], "version": [1, 0, 0] }, "header": {
"modules": [{ "type": "data", "uuid": "$UUID", "version": [1, 0, 0] }] "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": [ "allOf": [
{ {
"if": { "properties": { "format_version": { "const": 1, "type": "number", "title": "Format Version" } } }, "if": {
"properties": {
"format_version": {
"const": 1,
"type": "number",
"title": "Format Version"
}
}
},
"then": { "$ref": "./manifest/manifest.1.json" } "then": { "$ref": "./manifest/manifest.1.json" }
}, },
{ {
"if": { "properties": { "format_version": { "const": 2, "type": "number", "title": "Format Version" } } }, "if": {
"properties": {
"format_version": {
"const": 2,
"type": "number",
"title": "Format Version"
}
}
},
"then": { "$ref": "./manifest/manifest.2.json" } "then": { "$ref": "./manifest/manifest.2.json" }
} }
] ]

View File

@@ -5,7 +5,6 @@
"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.", "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, "additionalProperties": false,
"required": ["format_version", "header"], "required": ["format_version", "header"],
"definitions": { "uuidv4": { "$ref": "../UUIDV4.json" }, "version": { "$ref": "../Version.json" } },
"properties": { "properties": {
"format_version": { "format_version": {
"type": "number", "type": "number",
@@ -24,23 +23,23 @@
}, },
"uuid": { "uuid": {
"type": "string", "type": "string",
"$ref": "#/definitions/uuidv4", "$ref": "../UUIDV4.json",
"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)", "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" "title": "UUID"
}, },
"version": { "version": {
"$ref": "#/definitions/version", "$ref": "../Version.json",
"description": "This is the version of your pack in the format [majorVersion, minorVersion, revision].", "description": "This is the version of your pack in the format [majorVersion, minorVersion, revision].",
"title": "Version" "title": "Version"
}, },
"min_engine_version": { "min_engine_version": {
"type": "string", "type": "string",
"$ref": "#/definitions/version", "$ref": "../Version.json",
"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", "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" "title": "Minimum Engine Version"
}, },
"lock_template_options": { "type": "boolean", "description": "UNDOCUMENTED: lock template options.", "title": "Lock Template Options" }, "lock_template_options": { "type": "boolean", "description": "UNDOCUMENTED: lock template options.", "title": "Lock Template Options" },
"base_game_version": { "$ref": "#/definitions/version", "description": "UNDOCUMENTED: base game version.", "title": "Base Game Version" } "base_game_version": { "$ref": "../Version.json", "description": "UNDOCUMENTED: base game version.", "title": "Base Game Version" }
}, },
"description": "UNDOCUMENTED: header.", "description": "UNDOCUMENTED: header.",
"title": "Header" "title": "Header"
@@ -68,12 +67,12 @@
"default": "" "default": ""
}, },
"uuid": { "uuid": {
"$ref": "#/definitions/uuidv4", "$ref": "../UUIDV4.json",
"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", "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" "title": "UUID"
}, },
"version": { "version": {
"$ref": "#/definitions/version", "$ref": "../Version.json",
"description": "This is the version of the module in the same format as the pack's version in the header. This can be used to further identify changes in your pack", "description": "This is the version of the module in the same format as the pack's version in the header. This can be used to further identify changes in your pack",
"title": "Version" "title": "Version"
} }
@@ -90,12 +89,12 @@
"properties": { "properties": {
"uuid": { "uuid": {
"type": "string", "type": "string",
"$ref": "#/definitions/uuidv4", "$ref": "../UUIDV4.json",
"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", "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" "title": "UUID"
}, },
"version": { "version": {
"$ref": "#/definitions/version", "$ref": "../Version.json",
"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" "title": "Version"
} }

View File

@@ -5,22 +5,6 @@
"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.", "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"], "required": ["format_version", "header"],
"additionalProperties": false, "additionalProperties": false,
"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",
"defaultSnippets": [
{
"label": "New UUID",
"body": "$UUID"
}
]
},
"version": { "$ref": "../Version.json" }
},
"properties": { "properties": {
"format_version": { "format_version": {
"title": "Format Version", "title": "Format Version",
@@ -79,7 +63,7 @@
"properties": { "properties": {
"uuid": { "uuid": {
"type": "string", "type": "string",
"$ref": "#/definitions/uuidv4", "$ref": "../UUIDV4.json",
"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", "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" "title": "Uuid"
}, },
@@ -137,7 +121,7 @@
"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." "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": "../Version.json",
"title": "Base Game 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": "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."
}, },
@@ -154,7 +138,7 @@
}, },
"min_engine_version": { "min_engine_version": {
"title": "Minimum Engine Version", "title": "Minimum Engine Version",
"$ref": "#/definitions/version", "$ref": "../Version.json",
"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" "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": { "name": {
@@ -164,12 +148,12 @@
}, },
"uuid": { "uuid": {
"title": "UUID", "title": "UUID",
"$ref": "#/definitions/uuidv4", "$ref": "../UUIDV4.json",
"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)" "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": { "version": {
"title": "Version", "title": "Version",
"$ref": "#/definitions/version", "$ref": "../Version.json",
"description": "This is the version of your pack in the format [majorVersion, minorVersion, revision]." "description": "This is the version of your pack in the format [majorVersion, minorVersion, revision]."
} }
} }
@@ -203,12 +187,12 @@
"enum": ["javascript"] "enum": ["javascript"]
}, },
"uuid": { "uuid": {
"$ref": "#/definitions/uuidv4", "$ref": "../UUIDV4.json",
"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", "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" "title": "Uuid"
}, },
"version": { "version": {
"$ref": "#/definitions/version", "$ref": "../Version.json",
"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", "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" "title": "Version"
}, },