Updated dialogue schema to fit microsoft documentation
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
"required": ["format_version", "minecraft:npc_dialogue"],
|
"required": ["format_version", "minecraft:npc_dialogue"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"format_version": {
|
"format_version": {
|
||||||
"const": "1.14.0",
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Specifies the version of the game this entity was made in. Minimum supported version is 1.14.0. Current supported version is 1.14.0.",
|
"description": "Specifies the version of the game this entity was made in. Minimum supported version is 1.14.0. Current supported version is 1.14.0.",
|
||||||
"title": "Format Version"
|
"title": "Format Version"
|
||||||
@@ -32,35 +31,32 @@
|
|||||||
"$comment": "UNDOCUMENTED",
|
"$comment": "UNDOCUMENTED",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
"required": ["scene_tag"],
|
||||||
|
"examples": [{ "scene_tag": "foo_intro" }],
|
||||||
"properties": {
|
"properties": {
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"title": "Buttons",
|
"title": "Buttons",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "This is where you can create buttons for your NPC",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"maxItems": 6,
|
"maxItems": 6,
|
||||||
"items": {
|
"items": {
|
||||||
"title": "Button",
|
"title": "Button",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "This is where you can create buttons for your NPC",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"title": "Name",
|
"title": "Name",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "Set the text that is going to be displayed on your NPC’s button",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"$ref": "../../../general/rawtext/rawtext.json"
|
"$ref": "../../../general/rawtext/rawtext.json"
|
||||||
},
|
},
|
||||||
"commands": {
|
"commands": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "allows you to add commands which will be run in-game when the button is pressed",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"title": "Commands",
|
"title": "Commands",
|
||||||
"items": {
|
"items": {
|
||||||
"title": "Minecraft Command",
|
"title": "Minecraft Command",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "The commands to execute",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^/[a-z].*$"
|
"pattern": "^/[a-z].*$"
|
||||||
}
|
}
|
||||||
@@ -70,33 +66,39 @@
|
|||||||
},
|
},
|
||||||
"npc_name": {
|
"npc_name": {
|
||||||
"title": "NPC Name",
|
"title": "NPC Name",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "This is where you can add or change a name for your NPC dialogue box. This is an optional property that is useful for dynamically changing NPC names.",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"$ref": "../../../general/rawtext/rawtext.json"
|
"$ref": "../../../general/rawtext/rawtext.json"
|
||||||
},
|
},
|
||||||
"on_close_commands": {
|
"on_close_commands": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "This is where you can define which commands will fire when the NPC dialogue box closes",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"title": "On Close Commands",
|
"title": "On Close Commands",
|
||||||
"items": {
|
"items": {
|
||||||
"title": "Minecraft Command",
|
"title": "Minecraft Command",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "A minecraft command to execute",
|
||||||
"$comment": "UNDOCUMENTED",
|
"type": "string",
|
||||||
|
"pattern": "^/[a-z].*$"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"on_open_commands": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "This is where you can define which commands will fire when the NPC dialogue box opens",
|
||||||
|
"title": "On Close Commands",
|
||||||
|
"items": {
|
||||||
|
"title": "Minecraft Command",
|
||||||
|
"description": "A minecraft command to execute",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^/[a-z].*$"
|
"pattern": "^/[a-z].*$"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scene_tag": {
|
"scene_tag": {
|
||||||
"title": "Scene Tag",
|
"title": "Scene Tag",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "This is the name you will use to call this scene in-game. This is a required property.",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"text": {
|
"text": {
|
||||||
"title": "Text",
|
"title": "Text",
|
||||||
"description": "UNDOCUMENTED",
|
"description": "This is where you enter the dialogue you want your NPC to display in-game for this scene. You can type the dialogue text directly here or use raw text if you are using a language file. This is an optional property, but without it your NPC dialogue box will be empty.",
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"$ref": "../../../general/rawtext/rawtext.json"
|
"$ref": "../../../general/rawtext/rawtext.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
"allOf": [
|
"allOf": [
|
||||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.14.0" } } }, "then": { "$ref": "./1.14.0/dialogue.json" } },
|
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.14.0" } } }, "then": { "$ref": "./1.14.0/dialogue.json" } },
|
||||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.14" } } }, "then": { "$ref": "./1.14.0/dialogue.json" } },
|
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.14" } } }, "then": { "$ref": "./1.14.0/dialogue.json" } },
|
||||||
|
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.17.0" } } }, "then": { "$ref": "./1.14.0/dialogue.json" } },
|
||||||
|
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.17" } } }, "then": { "$ref": "./1.14.0/dialogue.json" } },
|
||||||
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
|
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user