2021-06-06 10:07:19 +00:00
|
|
|
{
|
2021-11-20 11:30:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
2021-06-06 10:07:19 +00:00
|
|
|
"$id": "blockception.minecraft.resource.sounds.json",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Sounds.json",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Sound definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"definitions": {
|
|
|
|
|
"pitch": {
|
|
|
|
|
"title": "Pitch",
|
|
|
|
|
"oneOf": [
|
2022-07-22 19:41:04 +02:00
|
|
|
{ "default": 1, "type": "number", "description": "A defined pitch." },
|
2021-06-06 10:07:19 +00:00
|
|
|
{
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A random selection between a minimum and maximum.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"type": "array",
|
|
|
|
|
"items": [
|
|
|
|
|
{ "type": "number", "minimum": 0, "title": "Minimum" },
|
|
|
|
|
{ "type": "number", "minimum": 0, "title": "Maximum" }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"volume": {
|
|
|
|
|
"title": "Volume",
|
|
|
|
|
"oneOf": [
|
2022-07-22 19:41:04 +02:00
|
|
|
{ "default": 1, "type": "number", "description": "A defined volume." },
|
2021-06-06 10:07:19 +00:00
|
|
|
{
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A random selection between a minimum and maximum.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"type": "array",
|
|
|
|
|
"items": [
|
|
|
|
|
{ "type": "number", "minimum": 0, "title": "Minimum" },
|
|
|
|
|
{ "type": "number", "minimum": 0, "title": "Maximum" }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"sound_event": {
|
|
|
|
|
"title": "Sound Event",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A single sound event definition.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"oneOf": [
|
|
|
|
|
{ "type": "string" },
|
|
|
|
|
{
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": false,
|
2025-03-03 12:44:05 +05:00
|
|
|
"required": [ "sound" ],
|
2021-06-06 10:07:19 +00:00
|
|
|
"properties": {
|
|
|
|
|
"volume": { "$ref": "#/definitions/volume" },
|
|
|
|
|
"sound": { "type": "string", "title": "Sound Event", "description": "The sound event described in sound_definitions.json" },
|
|
|
|
|
"pitch": { "$ref": "#/definitions/pitch" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"entity_event": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Sound",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Entity sound definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"properties": {
|
|
|
|
|
"volume": { "$ref": "#/definitions/volume" },
|
|
|
|
|
"pitch": { "$ref": "#/definitions/pitch" },
|
|
|
|
|
"events": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Events",
|
|
|
|
|
"propertyNames": { "pattern": "[a-z\\._]+" },
|
|
|
|
|
"additionalProperties": { "$ref": "#/definitions/sound_event" }
|
2025-03-03 12:44:05 +05:00
|
|
|
},
|
|
|
|
|
"variants": {
|
|
|
|
|
"title": "Variants",
|
|
|
|
|
"description": "Defines sound variants based on the runtime entity",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"key": {
|
|
|
|
|
"title": "Key",
|
|
|
|
|
"description": "Key returning the enum string for variants, can use any Molang expression resulting in a string.",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"map": {
|
|
|
|
|
"title": "Map",
|
|
|
|
|
"description": "Contains key-value pairs of a variant identifier and the sound events it overrides",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"volume": { "$ref": "#/definitions/volume" },
|
|
|
|
|
"pitch": { "$ref": "#/definitions/pitch" },
|
|
|
|
|
"events": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Events",
|
|
|
|
|
"propertyNames": { "pattern": "[a-z\\._]+" },
|
|
|
|
|
"additionalProperties": { "$ref": "#/definitions/sound_event" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-06-06 10:07:19 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_sounds": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Block Sounds",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Block sound definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Block Sound",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A single block sound definition.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2025-02-13 18:38:27 +05:00
|
|
|
"base": {
|
|
|
|
|
"title": "Base",
|
|
|
|
|
"description": "Specifying another block sound they should use sounds for if they do not define a sound themselves",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2021-06-06 10:07:19 +00:00
|
|
|
"volume": { "$ref": "#/definitions/volume" },
|
|
|
|
|
"pitch": { "$ref": "#/definitions/pitch" },
|
|
|
|
|
"events": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Events",
|
2024-01-06 23:32:11 +01:00
|
|
|
"propertyNames": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"break_pot",
|
|
|
|
|
"break",
|
|
|
|
|
"button.click_off",
|
|
|
|
|
"button.click_on",
|
|
|
|
|
"default",
|
|
|
|
|
"door.close",
|
|
|
|
|
"door.open",
|
|
|
|
|
"fall",
|
|
|
|
|
"fence_gate.close",
|
|
|
|
|
"fence_gate.open",
|
|
|
|
|
"hit",
|
|
|
|
|
"item.use.on",
|
|
|
|
|
"place",
|
|
|
|
|
"power.off",
|
|
|
|
|
"power.on",
|
|
|
|
|
"pressure_plate.click_off",
|
|
|
|
|
"pressure_plate.click_on",
|
|
|
|
|
"shatter_pot",
|
|
|
|
|
"step",
|
|
|
|
|
"trapdoor.close",
|
|
|
|
|
"trapdoor.open"
|
|
|
|
|
]
|
|
|
|
|
},
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": { "$ref": "#/definitions/sound_event" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"entity_sounds": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Sounds",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Entity sounds definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"defaults": { "$ref": "#/definitions/entity_event" },
|
|
|
|
|
"entities": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entities",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Entities definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": { "$ref": "#/definitions/entity_event" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"individual_event_sounds": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Individual Event Sounds",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Individual event sounds definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2022-07-22 19:41:04 +02:00
|
|
|
"events": { "type": "object", "title": "Events", "description": "Events.", "additionalProperties": { "$ref": "#/definitions/sound_event" } }
|
2021-06-06 10:07:19 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"interactive_sounds": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Interactive Sounds",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Interactive sounds definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_sounds": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Block Sounds",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Block sound definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Block Sound",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A single block sound definition.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"volume": { "$ref": "#/definitions/volume" },
|
|
|
|
|
"pitch": { "$ref": "#/definitions/pitch" },
|
|
|
|
|
"events": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Events",
|
2025-03-03 12:44:05 +05:00
|
|
|
"propertyNames": { "enum": [ "default", "fall", "step", "hit", "jump", "land" ] },
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": {
|
|
|
|
|
"title": "Sound Event",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A single sound event definition.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"oneOf": [
|
|
|
|
|
{ "type": "string" },
|
|
|
|
|
{
|
|
|
|
|
"type": "object",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"minProperties": 1,
|
|
|
|
|
"properties": {
|
|
|
|
|
"volume": { "$ref": "#/definitions/volume" },
|
|
|
|
|
"sound": { "type": "string", "title": "Sound Event", "description": "The sound event described in sound_definitions.json" },
|
|
|
|
|
"pitch": { "$ref": "#/definitions/pitch" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"entity_sounds": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Sounds",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Entity sound definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Defaults",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Default sound definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Sounds",
|
|
|
|
|
"properties": {
|
|
|
|
|
"events": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Events",
|
|
|
|
|
"propertyNames": { "pattern": "[a-z0-9\\.]+" },
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Event",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A single entity event.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": { "type": "string", "title": "A Sound Interaction" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"properties": { "volume": { "$ref": "#/definitions/volume" }, "pitch": { "$ref": "#/definitions/pitch" } }
|
|
|
|
|
},
|
|
|
|
|
"entities": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entites Sounds",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Entities sound definitions.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Sounds",
|
|
|
|
|
"properties": {
|
|
|
|
|
"volume": { "$ref": "#/definitions/volume" },
|
|
|
|
|
"pitch": { "$ref": "#/definitions/pitch" },
|
|
|
|
|
"events": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Events",
|
|
|
|
|
"propertyNames": { "pattern": "[a-z0-9\\.]+" },
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Entity Event",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A single entity event.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": { "type": "string", "title": "A Sound Interaction" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|