Initial Commit
This commit is contained in:
114
resource/sounds/1.14.0/sound_definitions.json
Normal file
114
resource/sounds/1.14.0/sound_definitions.json
Normal file
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.sound_definition.1.14.0.json",
|
||||
"type": "object",
|
||||
"additionalItems": false,
|
||||
"title": "The minecraft sound definition file for 1.14.0",
|
||||
"description": "TODO description",
|
||||
"definitions": {
|
||||
"SoundPath": {
|
||||
"$id": "SoundFilepath",
|
||||
"type": "string",
|
||||
"title": "The sound filepath schema",
|
||||
"description": "The filepath to the sound, starts with 'sounds/'",
|
||||
"pattern": "(^sounds/.*$|^$)",
|
||||
"additionalItems": true
|
||||
},
|
||||
"SoundSpec": {
|
||||
"additionalItems": false,
|
||||
"type": "object",
|
||||
"$id": "#/Sound",
|
||||
"title": "Sound specification",
|
||||
"required": ["sounds"],
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": "string",
|
||||
"$id": "#/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"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"description": "TODO description: Todo",
|
||||
"title": "Todo"
|
||||
}
|
||||
],
|
||||
"description": "TODO description: sounds",
|
||||
"title": "Sounds"
|
||||
},
|
||||
"description": "TODO description: sounds",
|
||||
"title": "Sounds"
|
||||
}
|
||||
},
|
||||
"description": "TODO description: additionalProperties"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"format_version": {
|
||||
"type": "string",
|
||||
"description": "A version that tells minecraft what type of data format can be expected when reading this file.",
|
||||
"title": "Format Version"
|
||||
},
|
||||
"sound_definitions": {
|
||||
"type": "object",
|
||||
"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"]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
47
resource/sounds/music_definitions.json
Normal file
47
resource/sounds/music_definitions.json
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.music_definitions.json",
|
||||
"type": "object",
|
||||
"title": "The minecraft music definition 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"]
|
||||
},
|
||||
"additionalProperties": {
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"description": "A music defintion",
|
||||
"required": ["event_name"],
|
||||
"properties": {
|
||||
"event_name": {
|
||||
"description": "The name of the minecraft music event",
|
||||
"type": "string",
|
||||
"examples": [
|
||||
"music.game",
|
||||
"music.game.creative",
|
||||
"music.game.end",
|
||||
"music.game.endboss",
|
||||
"music.game.nether",
|
||||
"music.game.credits",
|
||||
"music.game.nether_wastes",
|
||||
"music.menu"
|
||||
],
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"title": "Music"
|
||||
}
|
||||
}
|
||||
14
resource/sounds/sound_definitions.json
Normal file
14
resource/sounds/sound_definitions.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.sound_definition.json",
|
||||
"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" }
|
||||
}
|
||||
]
|
||||
}
|
||||
110
resource/sounds/sound_definitions_unknown.json
Normal file
110
resource/sounds/sound_definitions_unknown.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.sound_definition.json",
|
||||
"type": "object",
|
||||
"title": "The minecraft sound definition file, unknown version",
|
||||
"description": "TODO description",
|
||||
"definitions": {
|
||||
"SoundPath": {
|
||||
"$id": "SoundFilepath",
|
||||
"type": "string",
|
||||
"title": "The sound filepath schema",
|
||||
"description": "The filepath to the sound, starts with 'sounds/'",
|
||||
"pattern": "(^sounds/.*$|^$)",
|
||||
"additionalItems": true
|
||||
},
|
||||
"SoundSpec": {
|
||||
"additionalItems": false,
|
||||
"type": "object",
|
||||
"$id": "#/Sound",
|
||||
"title": "Sound specification",
|
||||
"required": ["sounds"],
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": "string",
|
||||
"$id": "#/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"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"description": "TODO description: Todo",
|
||||
"title": "Todo"
|
||||
}
|
||||
],
|
||||
"description": "TODO description: sounds",
|
||||
"title": "Sounds"
|
||||
},
|
||||
"description": "TODO description: sounds",
|
||||
"title": "Sounds"
|
||||
}
|
||||
},
|
||||
"description": "TODO description: additionalProperties"
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/SoundSpec"
|
||||
},
|
||||
"properties": {
|
||||
"format_version": {
|
||||
"type": "string",
|
||||
"description": "A version that tells minecraft what type of data format can be expected when reading this file.",
|
||||
"title": "Format Version"
|
||||
},
|
||||
"sound_definitions": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/SoundSpec"
|
||||
},
|
||||
"description": "TODO description: sound definitions",
|
||||
"title": "Sound Definitions"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user