From f5bb7a3a7e1471b77e8501ca9c6d0f5371959e05 Mon Sep 17 00:00:00 2001 From: Blockception Bot Date: Tue, 15 Jun 2021 17:13:13 +0000 Subject: [PATCH] auto: Formatted json files --- source/behavior/dialogue/1.14.0/dialogue.json | 186 ++++++------- source/behavior/dialogue/dialogue.json | 46 ++-- source/general/rawtext/rawtext.json | 250 +++++++++--------- 3 files changed, 241 insertions(+), 241 deletions(-) diff --git a/source/behavior/dialogue/1.14.0/dialogue.json b/source/behavior/dialogue/1.14.0/dialogue.json index e488f450..2a815c17 100644 --- a/source/behavior/dialogue/1.14.0/dialogue.json +++ b/source/behavior/dialogue/1.14.0/dialogue.json @@ -1,93 +1,93 @@ -{ - "$id": "blockception.minecraft.behavior.dialogue.1.14.0", - "type": "object", - "title": "NPC Dialogue", - "description": "UNDOCUMENTATED", - "additionalProperties": false, - "required": ["format_version", "minecraft:npc_dialogue"], - "properties": { - "format_version": { - "const": "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" - }, - "minecraft:npc_dialogue": { - "title": "NPC Dialogue", - "description": "", - "type": "object", - "additionalProperties": false, - "properties": { - "scenes": { - "title": "Scenes", - "description": "", - "type": "array", - "minItems": 1, - "items": { - "title": "Scene", - "description": "", - "type": "object", - "additionalProperties": false, - "properties": { - "buttons": { - "title": "Buttons", - "description": "", - "type": "array", - "maxItems": 6, - "items": { - "title": "Button", - "description": "", - "type": "object", - "additionalProperties": false, - "properties": { - "name": { - "title": "Name", - "description": "", - "$ref": "../../../general/rawtext/rawtext.json" - }, - "commands": { - "type": "array", - "description": "", - "title": "Commands", - "items": { - "title": "Minecraft Command", - "description": "", - "type": "string", - "pattern": "^/[a-z].*$" - } - } - } - } - }, - "npc_name": { - "title": "NPC Name", - "description": "", - "$ref": "../../../general/rawtext/rawtext.json" - }, - "on_close_commands": { - "type": "array", - "description": "", - "title": "On Close Commands", - "items": { - "title": "Minecraft Command", - "description": "", - "type": "string", - "pattern": "^/[a-z].*$" - } - }, - "scene_tag": { - "title": "Scene tag", - "description": "", - "type": "string" - }, - "text": { - "title": "Text", - "description": "", - "$ref": "../../../general/rawtext/rawtext.json" - } - } - } - } - } - } - } -} +{ + "$id": "blockception.minecraft.behavior.dialogue.1.14.0", + "type": "object", + "title": "NPC Dialogue", + "description": "UNDOCUMENTATED", + "additionalProperties": false, + "required": ["format_version", "minecraft:npc_dialogue"], + "properties": { + "format_version": { + "const": "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" + }, + "minecraft:npc_dialogue": { + "title": "NPC Dialogue", + "description": "", + "type": "object", + "additionalProperties": false, + "properties": { + "scenes": { + "title": "Scenes", + "description": "", + "type": "array", + "minItems": 1, + "items": { + "title": "Scene", + "description": "", + "type": "object", + "additionalProperties": false, + "properties": { + "buttons": { + "title": "Buttons", + "description": "", + "type": "array", + "maxItems": 6, + "items": { + "title": "Button", + "description": "", + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "title": "Name", + "description": "", + "$ref": "../../../general/rawtext/rawtext.json" + }, + "commands": { + "type": "array", + "description": "", + "title": "Commands", + "items": { + "title": "Minecraft Command", + "description": "", + "type": "string", + "pattern": "^/[a-z].*$" + } + } + } + } + }, + "npc_name": { + "title": "NPC Name", + "description": "", + "$ref": "../../../general/rawtext/rawtext.json" + }, + "on_close_commands": { + "type": "array", + "description": "", + "title": "On Close Commands", + "items": { + "title": "Minecraft Command", + "description": "", + "type": "string", + "pattern": "^/[a-z].*$" + } + }, + "scene_tag": { + "title": "Scene tag", + "description": "", + "type": "string" + }, + "text": { + "title": "Text", + "description": "", + "$ref": "../../../general/rawtext/rawtext.json" + } + } + } + } + } + } + } +} diff --git a/source/behavior/dialogue/dialogue.json b/source/behavior/dialogue/dialogue.json index 1fc6fea6..1613bea3 100644 --- a/source/behavior/dialogue/dialogue.json +++ b/source/behavior/dialogue/dialogue.json @@ -1,23 +1,23 @@ -{ - "$id": "blockception.minecraft.behavior.feature_rules", - "examples": [ - { - "format_version": "1.14.0", - "minecraft:npc_dialogue": { - "scenes": [ - { - "scene_tag": "fast_travel", - "npc_name": { "rawtext": [{ "translate": "dialogue.guide.name" }] }, - "text": { "rawtext": [{ "translate": "dialogue.fast_travel.body", "with": ["\n"] }] }, - "buttons": [] - } - ] - } - } - ], - "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" } }, - { "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } - ] -} +{ + "$id": "blockception.minecraft.behavior.feature_rules", + "examples": [ + { + "format_version": "1.14.0", + "minecraft:npc_dialogue": { + "scenes": [ + { + "scene_tag": "fast_travel", + "npc_name": { "rawtext": [{ "translate": "dialogue.guide.name" }] }, + "text": { "rawtext": [{ "translate": "dialogue.fast_travel.body", "with": ["\n"] }] }, + "buttons": [] + } + ] + } + } + ], + "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" } }, + { "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } + ] +} diff --git a/source/general/rawtext/rawtext.json b/source/general/rawtext/rawtext.json index 4278cf78..47ee9dff 100644 --- a/source/general/rawtext/rawtext.json +++ b/source/general/rawtext/rawtext.json @@ -1,125 +1,125 @@ -{ - "title": "RawText", - "description": "", - "type": "object", - "additionalProperties": false, - "required": ["rawtext"], - "definitions": { - "rawtext": { - "title": "Rawtext", - "description": "", - "type": "array", - "items": { - "oneOf": [ - { "type": "string" }, - { "$ref": "#/definitions/translate" }, - { "$ref": "#/definitions/text" }, - { "$ref": "#/definitions/selector" }, - { "$ref": "#/definitions/score" } - ] - } - }, - "selector": { - "title": "Selector", - "description": "", - "type": "object", - "additionalProperties": false, - "required": ["selector"], - "properties": { - "selector": { - "title": "Selector", - "description": "", - "type": "string", - "examples": ["@a", "@s", "@r", "@p", "@e", "@initiator"], - "pattern": "^@.*$" - } - } - }, - "score": { - "title": "Score", - "description": "", - "type": "object", - "additionalProperties": false, - "required": ["score"], - "properties": { - "score": { - "title": "Score", - "description": "", - "type": "object", - "additionalProperties": false, - "required": ["name", "objective"], - "properties": { - "name": { - "title": "Selector", - "description": "A selector, player name (can be fake), or *", - "type": "string", - "examples": ["@a", "@s", "@r", "@p", "@e", "@initiator", "*"] - }, - "objective": { - "title": "Objective", - "description": "", - "type": "string" - } - } - } - } - }, - "text": { - "title": "Text", - "description": "", - "type": "object", - "additionalProperties": false, - "required": ["text"], - "properties": { - "text": { - "title": "Text", - "description": "", - "type": "string" - } - } - }, - "translate": { - "title": "Translate", - "description": "", - "type": "object", - "additionalProperties": false, - "required": ["translate"], - "properties": { - "translate": { - "title": "Translate", - "description": "", - "type": "string" - }, - "with": { - "$ref": "#/definitions/with" - } - } - }, - "with": { - "title": "With", - "description": "", - "examples": ["\n", { "rawtext": [] }], - "items": { - "oneOf": [ - { "type": "string" }, - { - "title": "Rawtext", - "description": "", - "type": "object", - "additionalProperties": false, - "properties": { - "rawtext": { - "$ref": "#/definitions/rawtext" - } - } - } - ] - } - } - }, - "properties": { - "rawtext": { - "$ref": "#/definitions/rawtext" - } - } -} +{ + "title": "RawText", + "description": "", + "type": "object", + "additionalProperties": false, + "required": ["rawtext"], + "definitions": { + "rawtext": { + "title": "Rawtext", + "description": "", + "type": "array", + "items": { + "oneOf": [ + { "type": "string" }, + { "$ref": "#/definitions/translate" }, + { "$ref": "#/definitions/text" }, + { "$ref": "#/definitions/selector" }, + { "$ref": "#/definitions/score" } + ] + } + }, + "selector": { + "title": "Selector", + "description": "", + "type": "object", + "additionalProperties": false, + "required": ["selector"], + "properties": { + "selector": { + "title": "Selector", + "description": "", + "type": "string", + "examples": ["@a", "@s", "@r", "@p", "@e", "@initiator"], + "pattern": "^@.*$" + } + } + }, + "score": { + "title": "Score", + "description": "", + "type": "object", + "additionalProperties": false, + "required": ["score"], + "properties": { + "score": { + "title": "Score", + "description": "", + "type": "object", + "additionalProperties": false, + "required": ["name", "objective"], + "properties": { + "name": { + "title": "Selector", + "description": "A selector, player name (can be fake), or *", + "type": "string", + "examples": ["@a", "@s", "@r", "@p", "@e", "@initiator", "*"] + }, + "objective": { + "title": "Objective", + "description": "", + "type": "string" + } + } + } + } + }, + "text": { + "title": "Text", + "description": "", + "type": "object", + "additionalProperties": false, + "required": ["text"], + "properties": { + "text": { + "title": "Text", + "description": "", + "type": "string" + } + } + }, + "translate": { + "title": "Translate", + "description": "", + "type": "object", + "additionalProperties": false, + "required": ["translate"], + "properties": { + "translate": { + "title": "Translate", + "description": "", + "type": "string" + }, + "with": { + "$ref": "#/definitions/with" + } + } + }, + "with": { + "title": "With", + "description": "", + "examples": ["\n", { "rawtext": [] }], + "items": { + "oneOf": [ + { "type": "string" }, + { + "title": "Rawtext", + "description": "", + "type": "object", + "additionalProperties": false, + "properties": { + "rawtext": { + "$ref": "#/definitions/rawtext" + } + } + } + ] + } + } + }, + "properties": { + "rawtext": { + "$ref": "#/definitions/rawtext" + } + } +}