forked from Blockception/Minecraft-bedrock-json-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sound_definitions.json
1 lines (1 loc) · 3.2 KB
/
sound_definitions.json
1
{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.sound_definition","type":"object","additionalProperties":false,"title":"Sound Definitions","description":"The collection of sound definitions this resourcepack has defined.","$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":"Whenever or not use legacy distance checking."},"category":{"type":"string","title":"Sound Category","enum":["ambient","block","music","weather","ui","bucket","neutral","player","hostile","record","bottle"],"description":"The category this sound belongs to, for the user to control the volume on."},"sounds":{"title":"Sounds","description":"The collection of sounds minecraft can choice from.","items":{"title":"Sounds","description":"UNDOCUMENTED: sounds.","anyOf":[{"type":"string","$ref":"#/definitions/SoundPath"},{"title":"Sounds","description":"A collection of sounds to choice from.","$comment":"UNDOCUMENTED","additionalProperties":false,"type":"object","required":["name"],"examples":[{"load_on_low_memory":false,"name":"sounds/fx/example"}],"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}}}]}},"max_distance":{"title":"Max Distance","description":"UNDOCUMENTED.","type":"number","minimum":0}}},"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.19.40","examples":["1.19.40","1.18.0","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19|}.${3|2|0|}"}]}},"properties":{"format_version":{"$ref":"#/definitions/A"},"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"]}}}