Files
minecraft-bedrock-json-schemas/resource/render_controllers/render_controllers.json

1 line
8.2 KiB
JSON
Raw Normal View History

{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.render_controllers","defaultSnippets":[{"label":"New render controller","body":{"format_version":"${1:1.10.0}","render_controllers":{"controller.render.${2:${TM_FILENAME/[\\.].*//}}":{"geometry":"Geometry.${3:default}","materials":[{"*":"Material.${4:default}"}],"textures":["Texture.${5:default}"]}}}}],"examples":[{"format_version":"1.10.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":{"type":"string","title":"Molang","description":"Molang definition.","format":"molang","examples":["query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"B":{"title":"Molang Number","description":"The minecraft molang definition that results in a float.","anyOf":[{"type":"string","minLength":0},{"type":"number"}],"examples":["(1.0)","(0.0)"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]}},"properties":{"format_version":{"type":"string","enum":["1.8.0","1.10.0"]},"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/A","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":{"additio