From 483d69472d9e114eefab995e5631967f001468e1 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Fri, 23 Apr 2021 23:57:03 +0200 Subject: [PATCH] Updated --- .../1.10.0/render_controllers.json | 31 ++++++++-------- .../1.8.0/render_controllers.json | 36 +++++++++---------- 2 files changed, 35 insertions(+), 32 deletions(-) diff --git a/source/resource/render_controllers/1.10.0/render_controllers.json b/source/resource/render_controllers/1.10.0/render_controllers.json index 16d45f15..697a4b8f 100644 --- a/source/resource/render_controllers/1.10.0/render_controllers.json +++ b/source/resource/render_controllers/1.10.0/render_controllers.json @@ -9,7 +9,7 @@ "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", "title": "Molang Color" } + { "type": "string", "description": "A color definition in molang, between 0 and 1", "title": "Molang Color" } ] } }, @@ -21,7 +21,10 @@ }, "render_controllers": { "type": "object", - "propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+" }, + "propertyNames": { + "pattern": "^controller\\.render\\.[a-z\\.]+", + "examples": ["controller.render.example"] + }, "additionalProperties": { "title": "Render Controller", "additionalProperties": false, @@ -93,10 +96,10 @@ "additionalProperties": false, "type": "object", "properties": { - "r": { "$ref": "#/definitions/color", "description": "TODO description: r", "title": "R" }, - "g": { "$ref": "#/definitions/color", "description": "TODO description: g", "title": "G" }, - "b": { "$ref": "#/definitions/color", "description": "TODO description: b", "title": "B" }, - "a": { "$ref": "#/definitions/color", "description": "TODO description: a", "title": "A" } + "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": "TODO description: color", "title": "Color" @@ -110,10 +113,10 @@ "description": "The color to overlay on the entity when hurt", "title": "Is Hurt Color", "properties": { - "r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" }, - "g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" }, - "b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" }, - "a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" } + "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" } } }, "materials": { @@ -134,10 +137,10 @@ "description": "TODO description: overlay color", "title": "Overlay Color", "properties": { - "r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" }, - "g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" }, - "b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" }, - "a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" } + "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" } } }, "textures": { diff --git a/source/resource/render_controllers/1.8.0/render_controllers.json b/source/resource/render_controllers/1.8.0/render_controllers.json index d219138d..5c802320 100644 --- a/source/resource/render_controllers/1.8.0/render_controllers.json +++ b/source/resource/render_controllers/1.8.0/render_controllers.json @@ -23,7 +23,7 @@ }, "render_controllers": { "type": "object", - "propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+" }, + "propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+", "examples": ["controller.render.example"] }, "additionalProperties": { "additionalProperties": false, "type": "object", @@ -97,10 +97,10 @@ "additionalProperties": false, "type": "object", "properties": { - "r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" }, - "g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" }, - "b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" }, - "a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" } + "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" } } }, "filter_lighting": { "type": "boolean", "description": "TODO description: filter lighting", "title": "Filter Lighting" }, @@ -112,10 +112,10 @@ "additionalProperties": false, "description": "The color that is overlay when hurt", "properties": { - "r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" }, - "g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" }, - "b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" }, - "a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" } + "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" } } }, "light_color_multiplier": { @@ -139,10 +139,10 @@ "additionalProperties": false, "type": "object", "properties": { - "r": { "$ref": "#/definitions/color" }, - "g": { "$ref": "#/definitions/color" }, - "b": { "$ref": "#/definitions/color" }, - "a": { "$ref": "#/definitions/color" } + "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" } }, "description": "TODO description: on fire color", "title": "On Fire Color" @@ -151,12 +151,12 @@ "additionalProperties": false, "type": "object", "properties": { - "r": { "$ref": "#/definitions/color" }, - "g": { "$ref": "#/definitions/color" }, - "b": { "$ref": "#/definitions/color" }, - "a": { "$ref": "#/definitions/color" } + "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" } }, - "description": "TODO description: overlay color", + "description": "Overlays this color ontop of any rendering parts", "title": "Overlay Color" }, "part_visibility": {