Updated
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
"$id": "blockception.minecraft.sound_definition.1.14.0.json",
|
||||
"type": "object",
|
||||
"additionalItems": false,
|
||||
"title": "The minecraft sound definition file for 1.14.0",
|
||||
"title": "Sound File For 1.14.0",
|
||||
"description": "TODO description",
|
||||
"definitions": {
|
||||
"SoundPath": {
|
||||
"$id": "SoundFilepath",
|
||||
"type": "string",
|
||||
"title": "The sound filepath schema",
|
||||
"title": "Sound Filepath Schema",
|
||||
"description": "The filepath to the sound, starts with 'sounds/'",
|
||||
"pattern": "(^sounds/.*$|^$)",
|
||||
"additionalItems": true
|
||||
@@ -18,62 +18,31 @@
|
||||
"additionalItems": false,
|
||||
"type": "object",
|
||||
"$id": "#/Sound",
|
||||
"title": "Sound specification",
|
||||
"title": "Sound ",
|
||||
"required": ["sounds"],
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": "string",
|
||||
"$id": "#/Sound/category",
|
||||
"title": "Sound category",
|
||||
"title": "Sound Category",
|
||||
"enum": ["ambient", "block", "music", "weather", "ui", "bucket", "neutral", "player", "hostile", "record", "bottle"],
|
||||
"description": "TODO description: category"
|
||||
},
|
||||
"sounds": {
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$id": "#/Sound/sounds/stringItem",
|
||||
"type": "string",
|
||||
"$ref": "#/definitions/SoundPath",
|
||||
"description": "TODO description: Todo",
|
||||
"title": "Todo"
|
||||
},
|
||||
{ "$id": "#/Sound/sounds/stringItem", "type": "string", "$ref": "#/definitions/SoundPath", "description": "TODO description: Todo", "title": "Todo" },
|
||||
{
|
||||
"additionalItems": false,
|
||||
"$id": "#/Sound/sounds/ObjectItem",
|
||||
"type": "object",
|
||||
"required": ["name"],
|
||||
"properties": {
|
||||
"pitch": {
|
||||
"description": "The pitch of the audio, 1 is nomial",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 2,
|
||||
"title": "Pitch"
|
||||
},
|
||||
"volume": {
|
||||
"description": "The volume of the audio, 1 is nomial",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"title": "Volume"
|
||||
},
|
||||
"load_on_low_memory": {
|
||||
"type": "boolean",
|
||||
"description": "Marks if this audio should be loaded or not on low memory",
|
||||
"title": "Load On Low Memory"
|
||||
},
|
||||
"stream": {
|
||||
"description": "If marked true then minecraft will stream the audio",
|
||||
"type": "boolean",
|
||||
"title": "Stream"
|
||||
},
|
||||
"name": {
|
||||
"$id": "#/Sound/sounds/stringItem",
|
||||
"type": "string",
|
||||
"$ref": "#/definitions/SoundPath",
|
||||
"description": "TODO description: name",
|
||||
"title": "Name"
|
||||
}
|
||||
"pitch": { "description": "The pitch of the audio, 1 is nomial", "type": "number", "minimum": 0, "maximum": 2, "title": "Pitch" },
|
||||
"volume": { "description": "The volume of the audio, 1 is nomial", "type": "number", "minimum": 0, "title": "Volume" },
|
||||
"load_on_low_memory": { "type": "boolean", "description": "Marks if this audio should be loaded or not on low memory", "title": "Load On Low Memory" },
|
||||
"stream": { "description": "If marked true then minecraft will stream the audio", "type": "boolean", "title": "Stream" },
|
||||
"name": { "$id": "#/Sound/sounds/stringItem", "type": "string", "$ref": "#/definitions/SoundPath", "description": "TODO description: name", "title": "Name" }
|
||||
},
|
||||
"description": "TODO description: Todo",
|
||||
"title": "Todo"
|
||||
@@ -97,18 +66,11 @@
|
||||
},
|
||||
"sound_definitions": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/SoundSpec"
|
||||
},
|
||||
"additionalProperties": { "$ref": "#/definitions/SoundSpec" },
|
||||
"description": "TODO description: sound definitions",
|
||||
"title": "Sound Definitions"
|
||||
},
|
||||
"__use_legacy_max_distance": {
|
||||
"description": "TODO description: use legacy max distance",
|
||||
"title": "Use Legacy Max Distance",
|
||||
"type": "string",
|
||||
"enum": ["true", "false"]
|
||||
}
|
||||
"__use_legacy_max_distance": { "description": "TODO description: use legacy max distance", "title": "Use Legacy Max Distance", "type": "string", "enum": ["true", "false"] }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
||||
@@ -1,24 +1,12 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.music_definitions.json",
|
||||
"examples": [
|
||||
{
|
||||
"example": {
|
||||
"event_name": "music.example",
|
||||
"min_delay": 600,
|
||||
"max_delay": 1200
|
||||
}
|
||||
}
|
||||
],
|
||||
"examples": [{ "example": { "event_name": "music.example", "min_delay": 600, "max_delay": 1200 } }],
|
||||
"type": "object",
|
||||
"title": "The minecraft music definition file",
|
||||
"title": "Music File",
|
||||
"description": "The definition file of music of the resourcepack",
|
||||
"definitions": {
|
||||
"music": {}
|
||||
},
|
||||
"propertyNames": {
|
||||
"examples": ["creative", "credits", "end", "endboss", "game", "hell", "menu", "nether", "soulsand_valley", "water"]
|
||||
},
|
||||
"definitions": { "music": {} },
|
||||
"propertyNames": { "examples": ["creative", "credits", "end", "endboss", "game", "hell", "menu", "nether", "soulsand_valley", "water"] },
|
||||
"additionalProperties": {
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
@@ -40,16 +28,8 @@
|
||||
],
|
||||
"title": "Event Name"
|
||||
},
|
||||
"min_delay": {
|
||||
"type": "integer",
|
||||
"description": "TODO description: min delay",
|
||||
"title": "Min Delay"
|
||||
},
|
||||
"max_delay": {
|
||||
"type": "integer",
|
||||
"description": "TODO description: max delay",
|
||||
"title": "Max Delay"
|
||||
}
|
||||
"min_delay": { "type": "integer", "description": "TODO description: min delay", "title": "Min Delay" },
|
||||
"max_delay": { "type": "integer", "description": "TODO description: max delay", "title": "Max Delay" }
|
||||
},
|
||||
"title": "Music"
|
||||
}
|
||||
|
||||
@@ -1,22 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.sound_definition.json",
|
||||
"examples": [
|
||||
{
|
||||
"format_version": "1.14.0",
|
||||
"sound_definitions": {
|
||||
"music.game": { "category": "music", "sounds": [""] }
|
||||
}
|
||||
}
|
||||
],
|
||||
"examples": [{ "format_version": "1.14.0", "sound_definitions": { "music.game": { "category": "music", "sounds": [""] } } }],
|
||||
"allOf": [
|
||||
{
|
||||
"if": { "properties": { "format_version": { "type": "string" } } },
|
||||
"else": { "$ref": "./sound_definitions_unknown.json" }
|
||||
},
|
||||
{
|
||||
"if": { "properties": { "format_version": { "type": "string", "const": "1.14.0" } } },
|
||||
"then": { "$ref": "./1.14.0/sound_definitions.json" }
|
||||
}
|
||||
{ "if": { "properties": { "format_version": { "type": "string" } } }, "else": { "$ref": "./sound_definitions_unknown.json" } },
|
||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.14.0" } } }, "then": { "$ref": "./1.14.0/sound_definitions.json" } }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.sound_definition.json",
|
||||
"type": "object",
|
||||
"title": "The minecraft sound definition file, unknown version",
|
||||
"title": "Sound File, Unknown Version",
|
||||
"description": "TODO description",
|
||||
"definitions": {
|
||||
"SoundPath": {
|
||||
"$id": "SoundFilepath",
|
||||
"type": "string",
|
||||
"title": "The sound filepath schema",
|
||||
"title": "Sound Filepath Schema",
|
||||
"description": "The filepath to the sound, starts with 'sounds/'",
|
||||
"pattern": "(^sounds/.*$|^$)",
|
||||
"additionalItems": true
|
||||
@@ -17,63 +17,31 @@
|
||||
"additionalItems": false,
|
||||
"type": "object",
|
||||
"$id": "#/Sound",
|
||||
"title": "Sound specification",
|
||||
"title": "Sound ",
|
||||
"required": ["sounds"],
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": "string",
|
||||
"$id": "#/Sound/category",
|
||||
"title": "Sound category",
|
||||
"title": "Sound Category",
|
||||
"enum": ["block", "music", "weather", "ui", "bucket", "neutral", "player", "hostile", "record"],
|
||||
"description": "TODO description: category"
|
||||
},
|
||||
"sounds": {
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$id": "#/Sound/sounds/stringItem",
|
||||
"type": "string",
|
||||
"$ref": "#/definitions/SoundPath",
|
||||
"description": "TODO description: Todo",
|
||||
"title": "Todo"
|
||||
},
|
||||
{ "$id": "#/Sound/sounds/stringItem", "type": "string", "$ref": "#/definitions/SoundPath", "description": "TODO description: Todo", "title": "Todo" },
|
||||
{
|
||||
"additionalItems": false,
|
||||
"$id": "#/Sound/sounds/ObjectItem",
|
||||
"type": "object",
|
||||
"required": ["name"],
|
||||
"properties": {
|
||||
"pitch": {
|
||||
"description": "The pitch of the audio, 1 is nomial",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 2,
|
||||
"title": "Pitch"
|
||||
},
|
||||
"volume": {
|
||||
"description": "The volume of the audio, 1 is nomial",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 2,
|
||||
"title": "Volume"
|
||||
},
|
||||
"load_on_low_memory": {
|
||||
"type": "boolean",
|
||||
"description": "Marks if this audio should be loaded or not on low memory",
|
||||
"title": "Load On Low Memory"
|
||||
},
|
||||
"stream": {
|
||||
"description": "If marked true then minecraft will stream the audio",
|
||||
"type": "boolean",
|
||||
"title": "Stream"
|
||||
},
|
||||
"name": {
|
||||
"$id": "#/Sound/sounds/stringItem",
|
||||
"type": "string",
|
||||
"$ref": "#/definitions/SoundPath",
|
||||
"description": "TODO description: name",
|
||||
"title": "Name"
|
||||
}
|
||||
"pitch": { "description": "The pitch of the audio, 1 is nomial", "type": "number", "minimum": 0, "maximum": 2, "title": "Pitch" },
|
||||
"volume": { "description": "The volume of the audio, 1 is nomial", "type": "number", "minimum": 0, "maximum": 2, "title": "Volume" },
|
||||
"load_on_low_memory": { "type": "boolean", "description": "Marks if this audio should be loaded or not on low memory", "title": "Load On Low Memory" },
|
||||
"stream": { "description": "If marked true then minecraft will stream the audio", "type": "boolean", "title": "Stream" },
|
||||
"name": { "$id": "#/Sound/sounds/stringItem", "type": "string", "$ref": "#/definitions/SoundPath", "description": "TODO description: name", "title": "Name" }
|
||||
},
|
||||
"description": "TODO description: Todo",
|
||||
"title": "Todo"
|
||||
@@ -89,9 +57,7 @@
|
||||
"description": "TODO description: additionalProperties"
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/SoundSpec"
|
||||
},
|
||||
"additionalProperties": { "$ref": "#/definitions/SoundSpec" },
|
||||
"properties": {
|
||||
"format_version": {
|
||||
"type": "string",
|
||||
@@ -100,9 +66,7 @@
|
||||
},
|
||||
"sound_definitions": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/SoundSpec"
|
||||
},
|
||||
"additionalProperties": { "$ref": "#/definitions/SoundSpec" },
|
||||
"description": "TODO description: sound definitions",
|
||||
"title": "Sound Definitions"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user