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

1 line
14 KiB
JSON
Raw Normal View History

2021-10-21 14:21:18 +00:00
{"$id":"blockception.minecraft.render_controllers.json","examples":[{"format_version":"1.8.0","render_controllers":{"controller.render.example":{"geometry":"Geometry.default","materials":[{"*":"Material.default"}],"textures":["Texture.default"]}}}],"type":"object","title":"Render Controllers","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/C"}},{"properties":{"format_version":{"$ref":"#/definitions/D"}}}],"definitions":{"A_color":{"anyOf":[{"type":"number","description":"A color definition as number, between 0 and 1","title":"Color Number","minimum":0,"maximum":1},{"type":"string","description":"A color definition in molang, must result in a float between 0 and 1","title":"Molang Color"}]},"B":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0},{"type":"number"}],"examples":[0,"query.variant"]},"A":{"additionalProperties":false,"type":"object","title":"Render Controllers 1.8.0","description":"Render_Controllers 1.8.0","required":["render_controllers","format_version"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"render_controllers":{"type":"object","propertyNames":{"pattern":"^controller\\.render\\.[a-z\\.]+","examples":["controller.render.example"]},"additionalProperties":{"additionalProperties":false,"type":"object","title":"Render Controller","description":"A single render_controller definition","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"},"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":{"description":"UNDOCUMENTED: color","title":"Color","additionalProperties":false,"type":"object","properties":{"r":{"$ref":"#/definitions/A_color","description":"The value of red, must result in a float between 0 and 1","title":"R"},"g":{"$ref":"#/definitions/A_color","description":"The value of green, must result in a float between 0 and 1","title":"G"},"b":{"$ref":"#/definitions/A_color","description":"The value of blue, must result in a float between 0 and 1","title":"B"},"a":{"$ref":"#/definitions/A_color","description":"The value of alpha, must result in a float between 0 and 1","title":"A"}}},"filter_lighting":{"type":"boolean","description":"UNDOCUMENTED: filter lighting","title":"Filter Lighting"},"geometry":{"type":"string","description":"UNDOCUMENTED: geometry","title":"Geometry"},"ignore_lighting":{"type":"boolean","description":"UNDOCUMENTED: ignore lighting","title":"Ignore Lighting"},"is_hurt_color":{"type":"objec