From b740ac808cd8623bc62355454bb404dcca338267 Mon Sep 17 00:00:00 2001 From: Orbi-bot Date: Tue, 24 Oct 2023 19:58:33 +0000 Subject: [PATCH] auto: Generated Json Schemas --- resource/render_controllers/render_controllers.json | 2 +- resource/sounds/sound_definitions.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/render_controllers/render_controllers.json b/resource/render_controllers/render_controllers.json index a0689faa..2a0f9428 100644 --- a/resource/render_controllers/render_controllers.json +++ b/resource/render_controllers/render_controllers.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.render_controllers","examples":[{"format_version":"1.20.0","render_controllers":{"controller.render.example":{"geometry":"Geometry.default","materials":[{"*":"Material.default"}],"textures":["Texture.default"]}}}],"additionalProperties":false,"type":"object","title":"Render Controllers","description":"A collection of render controllers to apply.","definitions":{"color":{"anyOf":[{"type":"number","description":"A color definition as number, between 0 and 1.","minimum":0,"maximum":1,"title":"Color Number"},{"type":"string","description":"A color definition in molang, between 0 and 1.","title":"Molang Color"}]},"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.20.10","examples":["1.20.10","1.19.0","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,20|}.${3|2|0|}"}]},"B":{"type":"string","title":"Molang","description":"Molang definition.","format":"molang","examples":["query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float.","anyOf":[{"type":"string","minLength":0},{"type":"number"}],"examples":[0,"query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]}},"properties":{"format_version":{"$ref":"#/definitions/A"},"render_controllers":{"title":"Render Controllers","description":"The collection of render controllers, each property is the identifier of a render controller.","type":"object","propertyNames":{"pattern":"^controller\\.render\\.[a-z\\.]+"},"additionalProperties":{"title":"Render Controller","additionalProperties":false,"type":"object","description":"A single render_controller.","required":["geometry","materials"],"properties":{"arrays":{"type":"object","title":"Arrays","additionalProperties":false,"description":"A collection of definition of arrays.","properties":{"geometries":{"type":"object","minProperties":1,"description":"A collection of Geometry array.","title":"Geometries","additionalProperties":{"type":"array","items":{"type":"string","pattern":"^[Gg]eometry\\..+","description":"A geometry item, must be defined in the entity.","title":"Geometry Reference"},"description":"A geometry array definition.","title":"Geometries"}},"materials":{"type":"object","minProperties":1,"description":"A collection of materials array.","title":"Materials","additionalProperties":{"type":"array","items":{"type":"string","pattern":"^[Mm]aterial\\..+","description":"A material item, must be defined in the entity.","title":"Material"},"description":"A material array definition.","title":"Materials"}},"textures":{"type":"object","minProperties":1,"description":"A collection of texture array.","title":"Textures","additionalProperties":{"type":"array","description":"Textures.","title":"Texture","items":{"type":"string","pattern":"^[Tt]exture\\..+","default":"texture.","description":"An texture item.","title":"Texture"}}}}},"color":{"additionalProperties":false,"type":"object","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, between 0 and 1.","title":"A"}},"description":"The color to apply.","title":"Color"},"filter_lighting":{"type":"boolean","description":"Whenever or not to apply enviroment lighting to this object.","title":"Filter Lighting"},"geometry":{"$ref":"#/definitions/B","description":"The model data to use.","title":"Geometry","examples":["geometry.default"]},"ignore_lighting":{"type":"boolean","description":"Whenever or not to apply enviroment lighting to this object.","title":"Ignore Lighting"},"is_hurt_color":{"additionalProperties":false,"type":"object","description":"The color to overlay on the entity when hurt.","title":"Is Hurt Color","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, between 0 and 1.","title":"A"}}},"light_color_multiplier":{"$ref":"#/definitions/C","description":"The amount of light that blends into what is being rendered, lower values gives darker rendering, (1 = 100%).","title":"Light Color Multiplier"},"materials":{"title":"Materials","description":"The specification where to apply materials to.","type":"array","minItems":1,"examples":[[{"*":"material.default"}],[{"Alpha_*":"material.alpha"}]],"items":{"type":"object","description":"The definitions of what material to apply to what set of bones, can be done through specific names, or patterns using * as a wildcard.","title":"Materials","additionalProperties":{"type":"string","description":"The material to apply, or patterns using * as a wildcard.","$comment":"UNDOCUMENTED","title":"Material"}}},"on_fire_color":{"title":"On Fire Color","description":"The color that will be overlayed when the object is on fire.","additionalProperties":false,"type":"object","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, must result in a float between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, must result in a float between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, must result in a float between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, must result in a float between 0 and 1.","title":"A"}}},"overlay_color":{"additionalProperties":false,"type":"object","description":"The color to put over the object.","title":"Overlay Color","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, between 0 and 1.","title":"A"}}},"part_visibility":{"title":"Part Visibility","description":"Determines what part of the object to show or hide.","type":"array","minItems":1,"items":{"description":"The object that describe different bone visibility.","title":"Part Visibility","type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"boolean"},{"type":"number"}]}}},"textures":{"title":"Textures","description":"The texture to apply, multiple texture can be used as to create an overlay effect, a specific material is required though.","type":"array","minItems":1,"items":{"description":"The texture definition to apply.","title":"Textures","$ref":"#/definitions/B","examples":["texture.default","Array.skins[query.variant]"]}},"uv_anim":{"title":"Uv Anim","description":"The UV animation to apply to the render texture.","additionalProperties":false,"type":"object","required":["offset","scale"],"properties":{"offset":{"title":"Offset","description":"The offset to apply the UV, this will cause the texture on the object to shift by said amount, can be molang. The value for how much to offset is usually specified between 0 and 1","type":"array","minItems":2,"maxItems":2,"items":{"$ref":"#/definitions/C","description":"The offset to apply on the texture, can be molang.","title":"Offset"}},"scale":{"type":"array","description":"The scale to apply to the texture, this will cause texture to seem to grow and shrink if done per frame.","title":"Scale","minItems":2,"maxItems":2,"items":{"$ref":"#/definitions/C","description":"The scale to apply on the texture, can be molang.","title":"Scale"}}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.render_controllers","examples":[{"format_version":"1.20.0","render_controllers":{"controller.render.example":{"geometry":"Geometry.default","materials":[{"*":"Material.default"}],"textures":["Texture.default"]}}}],"additionalProperties":false,"type":"object","title":"Render Controllers","description":"A collection of render controllers to apply.","definitions":{"color":{"anyOf":[{"type":"number","description":"A color definition as number, between 0 and 1.","minimum":0,"maximum":1,"title":"Color Number"},{"type":"string","description":"A color definition in molang, between 0 and 1.","title":"Molang Color"}]},"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.20.10","examples":["1.20.10","1.19.0","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,20|}.${3|2|0|}"}]},"B":{"type":"string","title":"Molang","description":"Molang definition.","format":"molang","examples":["query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float.","anyOf":[{"type":"string","minLength":0},{"type":"number"}],"examples":[0,"query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]}},"properties":{"format_version":{"$ref":"#/definitions/A"},"render_controllers":{"title":"Render Controllers","description":"The collection of render controllers, each property is the identifier of a render controller.","type":"object","propertyNames":{"pattern":"^controller\\.render\\.[a-z\\.]+"},"additionalProperties":{"title":"Render Controller","additionalProperties":false,"type":"object","description":"A single render_controller.","required":["geometry","materials"],"properties":{"arrays":{"type":"object","title":"Arrays","additionalProperties":false,"description":"A collection of definition of arrays.","properties":{"geometries":{"type":"object","minProperties":1,"description":"A collection of Geometry array.","title":"Geometries","additionalProperties":{"type":"array","items":{"type":"string","pattern":"^[Gg]eometry\\..+","description":"A geometry item, must be defined in the entity.","title":"Geometry Reference"},"description":"A geometry array definition.","title":"Geometries"}},"materials":{"type":"object","minProperties":1,"description":"A collection of materials array.","title":"Materials","additionalProperties":{"type":"array","items":{"type":"string","pattern":"^[Mm]aterial\\..+","description":"A material item, must be defined in the entity.","title":"Material"},"description":"A material array definition.","title":"Materials"}},"textures":{"type":"object","minProperties":1,"description":"A collection of texture array.","title":"Textures","additionalProperties":{"type":"array","description":"Textures.","title":"Texture","items":{"type":"string","pattern":"^[Tt]exture\\..+","default":"texture.","description":"An texture item.","title":"Texture"}}}}},"color":{"additionalProperties":false,"type":"object","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, between 0 and 1.","title":"A"}},"description":"The color to apply.","title":"Color"},"filter_lighting":{"type":"boolean","description":"Whenever or not to apply enviroment lighting to this object.","title":"Filter Lighting"},"geometry":{"$ref":"#/definitions/B","description":"The model data to use.","title":"Geometry","examples":["geometry.default"]},"ignore_lighting":{"type":"boolean","description":"Whenever or not to apply enviroment lighting to this object.","title":"Ignore Lighting"},"is_hurt_color":{"additionalProperties":false,"type":"object","description":"The color to overlay on the entity when hurt.","title":"Is Hurt Color","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, between 0 and 1.","title":"A"}}},"light_color_multiplier":{"$ref":"#/definitions/C","description":"The amount of light that blends into what is being rendered, lower values gives darker rendering, (1 = 100%).","title":"Light Color Multiplier"},"materials":{"title":"Materials","description":"The specification where to apply materials to.","type":"array","minItems":1,"examples":[[{"*":"material.default"}],[{"Alpha_*":"material.alpha"}]],"items":{"type":"object","description":"The definitions of what material to apply to what set of bones, can be done through specific names, or patterns using * as a wildcard.","title":"Materials","additionalProperties":{"type":"string","description":"The material to apply, or patterns using * as a wildcard.","$comment":"UNDOCUMENTED","title":"Material"}}},"on_fire_color":{"title":"On Fire Color","description":"The color that will be overlayed when the object is on fire.","additionalProperties":false,"type":"object","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, must result in a float between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, must result in a float between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, must result in a float between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, must result in a float between 0 and 1.","title":"A"}}},"overlay_color":{"additionalProperties":false,"type":"object","description":"The color to put over the object.","title":"Overlay Color","properties":{"r":{"$ref":"#/definitions/color","description":"The value of red, between 0 and 1.","title":"R"},"g":{"$ref":"#/definitions/color","description":"The value of green, between 0 and 1.","title":"G"},"b":{"$ref":"#/definitions/color","description":"The value of blue, between 0 and 1.","title":"B"},"a":{"$ref":"#/definitions/color","description":"The value of alpha, between 0 and 1.","title":"A"}}},"part_visibility":{"title":"Part Visibility","description":"Determines what part of the object to show or hide.","type":"array","minItems":1,"items":{"description":"The object that describe different bone visibility.","title":"Part Visibility","type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"boolean"},{"type":"number"}]}}},"rebuild_animation_matrices":{"type":"boolean","description":"Whenever or not to rebuild the animation matrices.","title":"Rebuild Animation Matrices"},"textures":{"title":"Textures","description":"The texture to apply, multiple texture can be used as to create an overlay effect, a specific material is required though.","type":"array","minItems":1,"items":{"description":"The texture definition to apply.","title":"Textures","$ref":"#/definitions/B","examples":["texture.default","Array.skins[query.variant]"]}},"uv_anim":{"title":"Uv Anim","description":"The UV animation to apply to the render texture.","additionalProperties":false,"type":"object","required":["offset","scale"],"properties":{"offset":{"title":"Offset","description":"The offset to apply the UV, this will cause the texture on the object to shift by said amount, can be molang. The value for how much to offset is usually specified between 0 and 1","type":"array","minItems":2,"maxItems":2,"items":{"$ref":"#/definitions/C","description":"The offset to apply on the texture, can be molang.","title":"Offset"}},"scale":{"type":"array","description":"The scale to apply to the texture, this will cause texture to seem to grow and shrink if done per frame.","title":"Scale","minItems":2,"maxItems":2,"items":{"$ref":"#/definitions/C","description":"The scale to apply on the texture, can be molang.","title":"Scale"}}}}}}}}} \ No newline at end of file diff --git a/resource/sounds/sound_definitions.json b/resource/sounds/sound_definitions.json index c6eb81ff..f55ffcb4 100644 --- a/resource/sounds/sound_definitions.json +++ b/resource/sounds/sound_definitions.json @@ -1 +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.20.10","examples":["1.20.10","1.19.0","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,20|}.${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"]}}} \ No newline at end of file +{"$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","null"],"minimum":0},"min_distance":{"title":"Min Distance","description":"UNDOCUMENTED.","type":["number","null"],"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.20.10","examples":["1.20.10","1.19.0","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,20|}.${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"]}}} \ No newline at end of file