From a933b1eaa6e2467f9b00cb0b0d39d1ce382b8b55 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Mon, 4 Oct 2021 11:22:20 +0200 Subject: [PATCH] Updated dialogue --- source/behavior/dialogue/1.14.0/dialogue.json | 110 ----------------- source/behavior/dialogue/dialogue.json | 114 ++++++++++++++++-- 2 files changed, 106 insertions(+), 118 deletions(-) delete mode 100644 source/behavior/dialogue/1.14.0/dialogue.json diff --git a/source/behavior/dialogue/1.14.0/dialogue.json b/source/behavior/dialogue/1.14.0/dialogue.json deleted file mode 100644 index 0f52c20f..00000000 --- a/source/behavior/dialogue/1.14.0/dialogue.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "$id": "blockception.minecraft.behavior.dialogue.1.14.0", - "type": "object", - "title": "NPC Dialogue", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "additionalProperties": false, - "required": ["format_version", "minecraft:npc_dialogue"], - "properties": { - "format_version": { - "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.", - "title": "Format Version" - }, - "minecraft:npc_dialogue": { - "title": "NPC Dialogue", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { - "scenes": { - "title": "Scenes", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "array", - "minItems": 1, - "items": { - "title": "Scene", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "required": ["scene_tag"], - "examples": [{ "scene_tag": "foo_intro" }], - "properties": { - "buttons": { - "title": "Buttons", - "description": "This is where you can create buttons for your NPC", - "type": "array", - "maxItems": 6, - "items": { - "title": "Button", - "description": "This is where you can create buttons for your NPC", - "type": "object", - "additionalProperties": false, - "properties": { - "name": { - "title": "Name", - "description": "Set the text that is going to be displayed on your NPC’s button", - "$ref": "../../../general/rawtext/rawtext.json" - }, - "commands": { - "type": "array", - "description": "allows you to add commands which will be run in-game when the button is pressed", - "title": "Commands", - "items": { - "title": "Minecraft Command", - "description": "The commands to execute", - "type": "string", - "pattern": "^/[a-z].*$" - } - } - } - } - }, - "npc_name": { - "title": "NPC Name", - "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.", - "$ref": "../../../general/rawtext/rawtext.json" - }, - "on_close_commands": { - "type": "array", - "description": "This is where you can define which commands will fire when the NPC dialogue box closes", - "title": "On Close Commands", - "items": { - "title": "Minecraft Command", - "description": "A minecraft command to execute", - "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", - "pattern": "^/[a-z].*$" - } - }, - "scene_tag": { - "title": "Scene Tag", - "description": "This is the name you will use to call this scene in-game. This is a required property.", - "type": "string" - }, - "text": { - "title": "Text", - "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.", - "$ref": "../../../general/rawtext/rawtext.json" - } - } - } - } - } - } - } -} diff --git a/source/behavior/dialogue/dialogue.json b/source/behavior/dialogue/dialogue.json index 4eee1053..06fb9437 100644 --- a/source/behavior/dialogue/dialogue.json +++ b/source/behavior/dialogue/dialogue.json @@ -1,5 +1,5 @@ { - "$id": "blockception.minecraft.behavior.feature_rules", + "$id": "blockception.minecraft.behavior.dialogue", "examples": [ { "format_version": "1.14.0", @@ -15,11 +15,109 @@ } } ], - "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" } } }, "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" } } } - ] + "type": "object", + "title": "NPC Dialogue", + "description": "UNDOCUMENTED", + "$comment": "UNDOCUMENTED", + "additionalProperties": false, + "required": ["format_version", "minecraft:npc_dialogue"], + "properties": { + "format_version": { + "$ref": "../../general/format_version.json" + }, + "minecraft:npc_dialogue": { + "title": "NPC Dialogue", + "description": "UNDOCUMENTED", + "$comment": "UNDOCUMENTED", + "type": "object", + "additionalProperties": false, + "properties": { + "scenes": { + "title": "Scenes", + "description": "UNDOCUMENTED", + "$comment": "UNDOCUMENTED", + "type": "array", + "minItems": 1, + "items": { + "title": "Scene", + "description": "UNDOCUMENTED", + "$comment": "UNDOCUMENTED", + "type": "object", + "additionalProperties": false, + "required": ["scene_tag"], + "examples": [{ "scene_tag": "foo_intro" }], + "properties": { + "buttons": { + "title": "Buttons", + "description": "This is where you can create buttons for your NPC", + "type": "array", + "maxItems": 6, + "items": { + "title": "Button", + "description": "This is where you can create buttons for your NPC", + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "title": "Name", + "description": "Set the text that is going to be displayed on your NPC’s button", + "$ref": "../../../general/rawtext/rawtext.json" + }, + "commands": { + "type": "array", + "description": "allows you to add commands which will be run in-game when the button is pressed", + "title": "Commands", + "items": { + "title": "Minecraft Command", + "description": "The commands to execute", + "type": "string", + "pattern": "^/[a-z].*$" + } + } + } + } + }, + "npc_name": { + "title": "NPC Name", + "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.", + "$ref": "../../../general/rawtext/rawtext.json" + }, + "on_close_commands": { + "type": "array", + "description": "This is where you can define which commands will fire when the NPC dialogue box closes", + "title": "On Close Commands", + "items": { + "title": "Minecraft Command", + "description": "A minecraft command to execute", + "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", + "pattern": "^/[a-z].*$" + } + }, + "scene_tag": { + "title": "Scene Tag", + "description": "This is the name you will use to call this scene in-game. This is a required property.", + "type": "string" + }, + "text": { + "title": "Text", + "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.", + "$ref": "../../../general/rawtext/rawtext.json" + } + } + } + } + } + } + } }