Updated descrption/titles

This commit is contained in:
DaanV2
2021-04-04 14:14:02 +02:00
parent 7cafb5cfc6
commit 251aeaebaa
5 changed files with 137 additions and 89 deletions

View File

@@ -1,3 +1,10 @@
{ {
"json.schemas": [{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": ".vscode/schema-validation.json" }] "json.schemas": [{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": ".vscode/schema-validation.json" }],
"editor.formatOnSave": true,
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"prettier.printWidth": 150,
"prettier.useTabs": false,
"prettier.tabWidth": 2
} }

View File

@@ -4,6 +4,7 @@
"type": "object", "type": "object",
"title": "Biomes Client", "title": "Biomes Client",
"description": "The minecraft biomes definition file", "description": "The minecraft biomes definition file",
"additionalProperties": false,
"definitions": { "definitions": {
"biomespec": { "biomespec": {
"additionalProperties": false, "additionalProperties": false,
@@ -16,17 +17,17 @@
"water_fog_color": { "$ref": "#/definitions/colorhex", "title": "Water Fog Color", "description": "The color of the water fog" }, "water_fog_color": { "$ref": "#/definitions/colorhex", "title": "Water Fog Color", "description": "The color of the water fog" },
"water_fog_distance": { "type": "integer", "title": "Water Fog Distance", "description": "The distance the water fog start at" }, "water_fog_distance": { "type": "integer", "title": "Water Fog Distance", "description": "The distance the water fog start at" },
"water_surface_color": { "$ref": "#/definitions/colorhex", "title": "Water Surface Color", "description": "The color of the water surface" }, "water_surface_color": { "$ref": "#/definitions/colorhex", "title": "Water Surface Color", "description": "The color of the water surface" },
"water_surface_transparency": { "type": "number", "title": "Water Surface Transparency", "description": "TODO" } "water_surface_transparency": { "type": "number", "title": "Water Surface Transparency", "description": "The amount of transpareny the surface of the water has" }
} }
}, },
"colorhex": { "description": "TODO description: colorhex", "title": "Colorhex", "format": "color-hex" } "colorhex": { "description": "The colouration of this object", "title": "Colorhex", "format": "color-hex" }
}, },
"properties": { "properties": {
"biomes": { "biomes": {
"additionalProperties": false,
"description": "TODO description: biomes",
"title": "Biomes",
"type": "object", "type": "object",
"title": "Biomes",
"additionalProperties": false,
"description": "A collection of predefined biomes",
"properties": { "properties": {
"bamboo_jungle": { "$ref": "#/definitions/biomespec" }, "bamboo_jungle": { "$ref": "#/definitions/biomespec" },
"bamboo_jungle_hills": { "$ref": "#/definitions/biomespec" }, "bamboo_jungle_hills": { "$ref": "#/definitions/biomespec" },
@@ -99,6 +100,5 @@
"warped_forest": { "$ref": "#/definitions/biomespec" } "warped_forest": { "$ref": "#/definitions/biomespec" }
} }
} }
}, }
"additionalProperties": false
} }

View File

@@ -31,14 +31,14 @@
"additionalProperties": { "additionalProperties": {
"additionalProperties": false, "additionalProperties": false,
"title": "Block", "title": "Block",
"description": "TODO", "description": "Block texture definition",
"type": "object", "type": "object",
"properties": { "properties": {
"brightness_gamma": { "type": "number", "title": "Brightness Gamma", "description": "TODO" }, "brightness_gamma": { "type": "number", "title": "Brightness Gamma", "description": "TODO" },
"carried_textures": { "$ref": "#/definitions/texture", "title": "Carried Textures", "description": "TODO" }, "carried_textures": { "$ref": "#/definitions/texture", "title": "Carried Textures", "description": "TODO" },
"isotropic": { "isotropic": {
"title": "Isotropic", "title": "Isotropic",
"description": "TODO", "description": "Marks if this block is isotropic or not, or which side are",
"oneOf": [ "oneOf": [
{ "type": "boolean" }, { "type": "boolean" },
{ {
@@ -56,7 +56,7 @@
} }
] ]
}, },
"sound": { "type": "string", "title": "Sound", "description": "TODO" }, "sound": { "type": "string", "title": "Sound", "description": "The sound definition of this block" },
"textures": { "$ref": "#/definitions/texture", "title": "Sound", "description": "Textures" } "textures": { "$ref": "#/definitions/texture", "title": "Sound", "description": "Textures" }
} }
} }

View File

@@ -22,7 +22,7 @@
"render_controllers": { "render_controllers": {
"type": "object", "type": "object",
"propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+" }, "propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+" },
"additionalProperties": { "additionalProperties": {
"title": "Render Controller", "title": "Render Controller",
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
@@ -30,48 +30,64 @@
"required": ["geometry", "materials"], "required": ["geometry", "materials"],
"properties": { "properties": {
"arrays": { "arrays": {
"additionalProperties": false,
"type": "object", "type": "object",
"title": "Arrays",
"additionalProperties": false,
"description": "A collection of definition of arrays",
"properties": { "properties": {
"geometries": { "geometries": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"description": "A collection of Geometry array",
"title": "Geometries",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"items": { "type": "string", "pattern": "^[Gg]eometry\\..+", "description": "TODO description: additionalProperties", "title": "TODO" }, "items": {
"description": "TODO description: additionalProperties", "type": "string",
"title": "TODO" "pattern": "^[Gg]eometry\\..+",
}, "description": "A geometry item, must be defined in the entity",
"description": "TODO description: geometries", "title": "Geometry reference"
"title": "Geometries" },
"description": "A geometry array definition",
"title": "Geometry array"
}
}, },
"materials": { "materials": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"description": "A collection of materials array",
"title": "Materials",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"items": { "type": "string", "pattern": "^[Mm]aterial\\..+", "description": "TODO description: additionalProperties", "title": "TODO" }, "items": {
"description": "TODO description: additionalProperties", "type": "string",
"title": "TODO" "pattern": "^[Mm]aterial\\..+",
}, "description": "A material item, must be defined in the entity",
"description": "TODO description: materials", "title": "Material reference"
"title": "Materials" },
"description": "A material array definition",
"title": "Material array"
}
}, },
"textures": { "textures": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"description": "A collection of texture array",
"title": "Textures",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"description": "Textures", "description": "Textures",
"title": "Texture", "title": "Texture",
"items": { "type": "string", "pattern": "^[Tt]exture\\..+", "default": "texture.", "description": "An texture item", "title": "Texture" } "items": {
}, "type": "string",
"description": "TODO description: textures", "pattern": "^[Tt]exture\\..+",
"title": "Textures" "default": "texture.",
"description": "An texture item",
"title": "Texture"
}
}
} }
}, }
"description": "TODO description: arrays",
"title": "Arrays"
}, },
"color": { "color": {
"additionalProperties": false, "additionalProperties": false,
@@ -91,14 +107,14 @@
"is_hurt_color": { "is_hurt_color": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "The color to overlay on the entity when hurt",
"title": "Is Hurt Color",
"properties": { "properties": {
"r": { "$ref": "#/definitions/color" }, "r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" },
"g": { "$ref": "#/definitions/color" }, "g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" },
"b": { "$ref": "#/definitions/color" }, "b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" },
"a": { "$ref": "#/definitions/color" } "a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" }
}, }
"description": "TODO description: is hurt color",
"title": "Is Hurt Color"
}, },
"materials": { "materials": {
"type": "array", "type": "array",
@@ -115,14 +131,14 @@
"overlay_color": { "overlay_color": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "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" }
},
"description": "TODO description: overlay color", "description": "TODO description: overlay color",
"title": "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" }
}
}, },
"textures": { "textures": {
"type": "array", "type": "array",
@@ -168,7 +184,11 @@
"description": "TODO description: part visibility", "description": "TODO description: part visibility",
"title": "Part Visibility" "title": "Part Visibility"
}, },
"rebuild_animation_matrices": { "type": "boolean", "description": "TODO description: rebuild animation matrices", "title": "Rebuild Animation Matrices" } "rebuild_animation_matrices": {
"type": "boolean",
"description": "TODO description: rebuild animation matrices",
"title": "Rebuild Animation Matrices"
}
} }
}, },
"description": "TODO description: render controllers", "description": "TODO description: render controllers",

View File

@@ -32,80 +32,97 @@
"required": ["geometry", "materials"], "required": ["geometry", "materials"],
"properties": { "properties": {
"arrays": { "arrays": {
"additionalProperties": false,
"description": "TODO description: arrays",
"title": "Arrays",
"type": "object", "type": "object",
"title": "Arrays",
"additionalProperties": false,
"description": "A collection of definition of arrays",
"properties": { "properties": {
"geometries": { "geometries": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"propertyNames": { "pattern": "^[Aa]rray\\..+" }, "description": "A collection of Geometry array",
"title": "Geometries",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"items": { "type": "string", "pattern": "^[Gg]eometry\\..+", "description": "TODO description: additionalProperties", "title": "TODO" }, "items": {
"description": "TODO description: additionalProperties", "type": "string",
"title": "TODO" "pattern": "^[Gg]eometry\\..+",
}, "description": "A geometry item, must be defined in the entity",
"description": "TODO description: geometries", "title": "Geometry reference"
"title": "Geometries" },
"description": "A geometry array definition",
"title": "Geometry array"
}
}, },
"materials": { "materials": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"propertyNames": { "pattern": "^[Aa]rray\\..+" }, "description": "A collection of materials array",
"title": "Materials",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"items": { "type": "string", "pattern": "^[Mm]aterial\\..+", "description": "TODO description: additionalProperties", "title": "TODO" }, "items": {
"description": "TODO description: additionalProperties", "type": "string",
"title": "TODO" "pattern": "^[Mm]aterial\\..+",
}, "description": "A material item, must be defined in the entity",
"description": "TODO description: materials", "title": "Material reference"
"title": "Materials" },
"description": "A material array definition",
"title": "Material array"
}
}, },
"textures": { "textures": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"propertyNames": { "pattern": "^[Aa]rray\\..+" }, "description": "A collection of texture array",
"title": "Textures",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"items": { "type": "string", "pattern": "^[Tt]exture\\..+", "description": "TODO description: additionalProperties", "title": "TODO" }, "description": "Textures",
"description": "TODO description: additionalProperties", "title": "Texture",
"title": "TODO" "items": {
}, "type": "string",
"description": "TODO description: textures", "pattern": "^[Tt]exture\\..+",
"title": "Textures" "default": "texture.",
"description": "An texture item",
"title": "Texture"
}
}
} }
} }
}, },
"color": { "color": {
"description": "TODO description: color",
"title": "Color",
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"properties": { "properties": {
"r": { "$ref": "#/definitions/color" }, "r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" },
"g": { "$ref": "#/definitions/color" }, "g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" },
"b": { "$ref": "#/definitions/color" }, "b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" },
"a": { "$ref": "#/definitions/color" } "a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" }
}, }
"description": "TODO description: color",
"title": "Color"
}, },
"filter_lighting": { "type": "boolean", "description": "TODO description: filter lighting", "title": "Filter Lighting" }, "filter_lighting": { "type": "boolean", "description": "TODO description: filter lighting", "title": "Filter Lighting" },
"geometry": { "type": "string", "description": "TODO description: geometry", "title": "Geometry" }, "geometry": { "type": "string", "description": "TODO description: geometry", "title": "Geometry" },
"ignore_lighting": { "type": "boolean", "description": "TODO description: ignore lighting", "title": "Ignore Lighting" }, "ignore_lighting": { "type": "boolean", "description": "TODO description: ignore lighting", "title": "Ignore Lighting" },
"is_hurt_color": { "is_hurt_color": {
"additionalProperties": false,
"type": "object", "type": "object",
"title": "Is hurt color",
"additionalProperties": false,
"description": "The color that is overlay when hurt",
"properties": { "properties": {
"r": { "$ref": "#/definitions/color" }, "r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" },
"g": { "$ref": "#/definitions/color" }, "g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" },
"b": { "$ref": "#/definitions/color" }, "b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" },
"a": { "$ref": "#/definitions/color" } "a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" }
}, }
"description": "TODO description: is hurt color", },
"title": "Is Hurt Color" "light_color_multiplier": {
"$ref": "../../../molang/1.8.0/number.json",
"description": "TODO description: light color multiplier",
"title": "Light Color Multiplier"
}, },
"light_color_multiplier": { "$ref": "../../../molang/1.8.0/number.json", "description": "TODO description: light color multiplier", "title": "Light Color Multiplier" },
"materials": { "materials": {
"type": "array", "type": "array",
"minItems": 1, "minItems": 1,
@@ -159,7 +176,11 @@
"description": "TODO description: part visibility", "description": "TODO description: part visibility",
"title": "Part Visibility" "title": "Part Visibility"
}, },
"rebuild_animation_matrices": { "type": "boolean", "description": "TODO description: rebuild animation matrices", "title": "Rebuild Animation Matrices" }, "rebuild_animation_matrices": {
"type": "boolean",
"description": "TODO description: rebuild animation matrices",
"title": "Rebuild Animation Matrices"
},
"textures": { "textures": {
"type": "array", "type": "array",
"minItems": 1, "minItems": 1,