119 lines
4.3 KiB
JSON
119 lines
4.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.sound_definition",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"title": "Sound File For ",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"definitions": {
|
|
"SoundPath": {
|
|
"$id": "SoundFilepath",
|
|
"type": "string",
|
|
"title": "Sound Filepath Schema",
|
|
"description": "The filepath to the sound, starts with `sounds/'",
|
|
"pattern": "(^sounds/.*$|^$)",
|
|
"additionalItems": true,
|
|
"examples": ["sounds/"]
|
|
},
|
|
"SoundSpec": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"$id": "#/Sound",
|
|
"title": "Sound",
|
|
"required": ["sounds"],
|
|
"properties": {
|
|
"__use_legacy_max_distance": {
|
|
"type": "boolean",
|
|
"title": "Use Legacy Max Distance",
|
|
"description": "UNDOCUMENTED"
|
|
},
|
|
"category": {
|
|
"type": "string",
|
|
"title": "Sound Category",
|
|
"enum": ["ambient", "block", "music", "weather", "ui", "bucket", "neutral", "player", "hostile", "record", "bottle"],
|
|
"description": "UNDOCUMENTED: category"
|
|
},
|
|
"sounds": {
|
|
"title": "Sounds",
|
|
"description": "UNDOCUMENTED: sounds",
|
|
"items": {
|
|
"title": "Sounds",
|
|
"description": "UNDOCUMENTED: sounds",
|
|
"anyOf": [
|
|
{
|
|
"$id": "#/Sound/sounds/stringItem",
|
|
"type": "string",
|
|
"$ref": "#/definitions/SoundPath",
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Sounds"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"$id": "#/Sound/sounds/ObjectItem",
|
|
"type": "object",
|
|
"required": ["name"],
|
|
"properties": {
|
|
"is3D": {
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Is 3D",
|
|
"type": "boolean"
|
|
},
|
|
"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": "UNDOCUMENTED: name",
|
|
"title": "Name"
|
|
},
|
|
"weight": {
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Weight",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"description": "UNDOCUMENTED",
|
|
"$comment": "UNDOCUMENTED",
|
|
"title": "Sounds"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"max_distance": {
|
|
"title": "Max Distance",
|
|
"description": "UNDOCUMENTED",
|
|
"type": "number",
|
|
"minimum": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"properties": {
|
|
"format_version": { "$ref": "../../general/format_version.json" },
|
|
"sound_definitions": {
|
|
"type": "object",
|
|
"additionalProperties": { "$ref": "#/definitions/SoundSpec" },
|
|
"description": "UNDOCUMENTED: sound definitions",
|
|
"title": "Sound Definitions"
|
|
},
|
|
"__use_legacy_max_distance": {
|
|
"description": "UNDOCUMENTED: use legacy Maximum distance",
|
|
"title": "Use Legacy Maximum Distance",
|
|
"type": "string",
|
|
"enum": ["true", "false"]
|
|
}
|
|
}
|
|
}
|