auto: Formatted json files

This commit is contained in:
Blockception Bot
2021-06-15 17:13:13 +00:00
parent c5c135252a
commit f5bb7a3a7e
3 changed files with 241 additions and 241 deletions

View File

@@ -1,93 +1,93 @@
{ {
"$id": "blockception.minecraft.behavior.dialogue.1.14.0", "$id": "blockception.minecraft.behavior.dialogue.1.14.0",
"type": "object", "type": "object",
"title": "NPC Dialogue", "title": "NPC Dialogue",
"description": "UNDOCUMENTATED", "description": "UNDOCUMENTATED",
"additionalProperties": false, "additionalProperties": false,
"required": ["format_version", "minecraft:npc_dialogue"], "required": ["format_version", "minecraft:npc_dialogue"],
"properties": { "properties": {
"format_version": { "format_version": {
"const": "1.14.0", "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.", "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"
}, },
"minecraft:npc_dialogue": { "minecraft:npc_dialogue": {
"title": "NPC Dialogue", "title": "NPC Dialogue",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"scenes": { "scenes": {
"title": "Scenes", "title": "Scenes",
"description": "", "description": "",
"type": "array", "type": "array",
"minItems": 1, "minItems": 1,
"items": { "items": {
"title": "Scene", "title": "Scene",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"buttons": { "buttons": {
"title": "Buttons", "title": "Buttons",
"description": "", "description": "",
"type": "array", "type": "array",
"maxItems": 6, "maxItems": 6,
"items": { "items": {
"title": "Button", "title": "Button",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"name": { "name": {
"title": "Name", "title": "Name",
"description": "", "description": "",
"$ref": "../../../general/rawtext/rawtext.json" "$ref": "../../../general/rawtext/rawtext.json"
}, },
"commands": { "commands": {
"type": "array", "type": "array",
"description": "", "description": "",
"title": "Commands", "title": "Commands",
"items": { "items": {
"title": "Minecraft Command", "title": "Minecraft Command",
"description": "", "description": "",
"type": "string", "type": "string",
"pattern": "^/[a-z].*$" "pattern": "^/[a-z].*$"
} }
} }
} }
} }
}, },
"npc_name": { "npc_name": {
"title": "NPC Name", "title": "NPC Name",
"description": "", "description": "",
"$ref": "../../../general/rawtext/rawtext.json" "$ref": "../../../general/rawtext/rawtext.json"
}, },
"on_close_commands": { "on_close_commands": {
"type": "array", "type": "array",
"description": "", "description": "",
"title": "On Close Commands", "title": "On Close Commands",
"items": { "items": {
"title": "Minecraft Command", "title": "Minecraft Command",
"description": "", "description": "",
"type": "string", "type": "string",
"pattern": "^/[a-z].*$" "pattern": "^/[a-z].*$"
} }
}, },
"scene_tag": { "scene_tag": {
"title": "Scene tag", "title": "Scene tag",
"description": "", "description": "",
"type": "string" "type": "string"
}, },
"text": { "text": {
"title": "Text", "title": "Text",
"description": "", "description": "",
"$ref": "../../../general/rawtext/rawtext.json" "$ref": "../../../general/rawtext/rawtext.json"
} }
} }
} }
} }
} }
} }
} }
} }

View File

@@ -1,23 +1,23 @@
{ {
"$id": "blockception.minecraft.behavior.feature_rules", "$id": "blockception.minecraft.behavior.feature_rules",
"examples": [ "examples": [
{ {
"format_version": "1.14.0", "format_version": "1.14.0",
"minecraft:npc_dialogue": { "minecraft:npc_dialogue": {
"scenes": [ "scenes": [
{ {
"scene_tag": "fast_travel", "scene_tag": "fast_travel",
"npc_name": { "rawtext": [{ "translate": "dialogue.guide.name" }] }, "npc_name": { "rawtext": [{ "translate": "dialogue.guide.name" }] },
"text": { "rawtext": [{ "translate": "dialogue.fast_travel.body", "with": ["\n"] }] }, "text": { "rawtext": [{ "translate": "dialogue.fast_travel.body", "with": ["\n"] }] },
"buttons": [] "buttons": []
} }
] ]
} }
} }
], ],
"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" } },
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } { "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
] ]
} }

View File

@@ -1,125 +1,125 @@
{ {
"title": "RawText", "title": "RawText",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["rawtext"], "required": ["rawtext"],
"definitions": { "definitions": {
"rawtext": { "rawtext": {
"title": "Rawtext", "title": "Rawtext",
"description": "", "description": "",
"type": "array", "type": "array",
"items": { "items": {
"oneOf": [ "oneOf": [
{ "type": "string" }, { "type": "string" },
{ "$ref": "#/definitions/translate" }, { "$ref": "#/definitions/translate" },
{ "$ref": "#/definitions/text" }, { "$ref": "#/definitions/text" },
{ "$ref": "#/definitions/selector" }, { "$ref": "#/definitions/selector" },
{ "$ref": "#/definitions/score" } { "$ref": "#/definitions/score" }
] ]
} }
}, },
"selector": { "selector": {
"title": "Selector", "title": "Selector",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["selector"], "required": ["selector"],
"properties": { "properties": {
"selector": { "selector": {
"title": "Selector", "title": "Selector",
"description": "", "description": "",
"type": "string", "type": "string",
"examples": ["@a", "@s", "@r", "@p", "@e", "@initiator"], "examples": ["@a", "@s", "@r", "@p", "@e", "@initiator"],
"pattern": "^@.*$" "pattern": "^@.*$"
} }
} }
}, },
"score": { "score": {
"title": "Score", "title": "Score",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["score"], "required": ["score"],
"properties": { "properties": {
"score": { "score": {
"title": "Score", "title": "Score",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["name", "objective"], "required": ["name", "objective"],
"properties": { "properties": {
"name": { "name": {
"title": "Selector", "title": "Selector",
"description": "A selector, player name (can be fake), or *", "description": "A selector, player name (can be fake), or *",
"type": "string", "type": "string",
"examples": ["@a", "@s", "@r", "@p", "@e", "@initiator", "*"] "examples": ["@a", "@s", "@r", "@p", "@e", "@initiator", "*"]
}, },
"objective": { "objective": {
"title": "Objective", "title": "Objective",
"description": "", "description": "",
"type": "string" "type": "string"
} }
} }
} }
} }
}, },
"text": { "text": {
"title": "Text", "title": "Text",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["text"], "required": ["text"],
"properties": { "properties": {
"text": { "text": {
"title": "Text", "title": "Text",
"description": "", "description": "",
"type": "string" "type": "string"
} }
} }
}, },
"translate": { "translate": {
"title": "Translate", "title": "Translate",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["translate"], "required": ["translate"],
"properties": { "properties": {
"translate": { "translate": {
"title": "Translate", "title": "Translate",
"description": "", "description": "",
"type": "string" "type": "string"
}, },
"with": { "with": {
"$ref": "#/definitions/with" "$ref": "#/definitions/with"
} }
} }
}, },
"with": { "with": {
"title": "With", "title": "With",
"description": "", "description": "",
"examples": ["\n", { "rawtext": [] }], "examples": ["\n", { "rawtext": [] }],
"items": { "items": {
"oneOf": [ "oneOf": [
{ "type": "string" }, { "type": "string" },
{ {
"title": "Rawtext", "title": "Rawtext",
"description": "", "description": "",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"rawtext": { "rawtext": {
"$ref": "#/definitions/rawtext" "$ref": "#/definitions/rawtext"
} }
} }
} }
] ]
} }
} }
}, },
"properties": { "properties": {
"rawtext": { "rawtext": {
"$ref": "#/definitions/rawtext" "$ref": "#/definitions/rawtext"
} }
} }
} }