Updated comments

This commit is contained in:
DaanV2
2021-04-30 17:15:07 +02:00
parent 8da8c04f7e
commit 9bcfd97f21
3 changed files with 40 additions and 25 deletions

View File

@@ -22,6 +22,7 @@
"title": "Description", "title": "Description",
"type": "object", "type": "object",
"required": ["identifier"], "required": ["identifier"],
"description": "The entity description for clientside rendering, animations and models",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"animations": { "animations": {
@@ -45,7 +46,7 @@
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "type": "string", "description": "The reference to the geometry", "title": "Geometry Reference" } "additionalProperties": { "type": "string", "description": "The reference to the geometry", "title": "Geometry Reference" }
}, },
"identifier": { "type": "string", "description": "TODO description: identifier", "title": "Identifier", "$ref": "../../../general/item/identifier.json" }, "identifier": { "type": "string", "description": "The entity indentifier", "title": "Identifier", "$ref": "../../../general/item/identifier.json" },
"materials": { "materials": {
"type": "object", "type": "object",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }, "additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
@@ -110,15 +111,25 @@
}, },
"initialize": { "initialize": {
"type": "array", "type": "array",
"description": "TODO description: initialize", "description": "Clientside molang variables that are to be evualated during the creation of the entity",
"title": "Initialize", "title": "Initialize",
"items": { "pattern": ";$", "$ref": "../../../molang/1.8.0/string.json", "description": "TODO description: initialize", "title": "Initialize" } "items": {
"pattern": ";$",
"$ref": "../../../molang/1.8.0/string.json",
"description": "Clientside molang variables that are to be evualated during the creation of the entity",
"title": "Initialize"
}
}, },
"pre_animation": { "pre_animation": {
"type": "array", "type": "array",
"description": "TODO description: pre aninamtion", "description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation", "title": "Pre Animation",
"items": { "pattern": ";$", "$ref": "../../../molang/1.8.0/string.json", "description": "TODO description: pre aninamtion", "title": "Pre Animation" } "items": {
"pattern": ";$",
"$ref": "../../../molang/1.8.0/string.json",
"description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation"
}
}, },
"parent_setup": { "type": "string", "description": "TODO description: parent setup", "title": "Parent Setup", "$ref": "../../../molang/1.8.0/number.json" }, "parent_setup": { "type": "string", "description": "TODO description: parent setup", "title": "Parent Setup", "$ref": "../../../molang/1.8.0/number.json" },
"scale": { "type": "string", "description": "TODO description: scale", "title": "Scale", "$ref": "../../../molang/1.8.0/number.json" }, "scale": { "type": "string", "description": "TODO description: scale", "title": "Scale", "$ref": "../../../molang/1.8.0/number.json" },
@@ -160,24 +171,23 @@
"spawn_egg": { "spawn_egg": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "TODO description: spawn egg", "description": "The definition of how the spawn_egg icon looks like",
"title": "Spawn Egg", "title": "Spawn Egg",
"dependencies": { "texture_index": ["texture"], "base_colour": ["overlay_color"], "overlay_color": ["base_color"] }, "dependencies": { "texture_index": ["texture"], "base_colour": ["overlay_color"], "overlay_color": ["base_color"] },
"properties": { "properties": {
"base_color": { "type": "string", "description": "TODO description: base color", "title": "Base Color", "format": "color-hex" }, "base_color": { "type": "string", "description": "The basic color of the egg", "title": "Base Color", "format": "color-hex" },
"overlay_color": { "type": "string", "description": "TODO description: overlay color", "title": "Overlay Color", "format": "color-hex" }, "overlay_color": { "type": "string", "description": "The colors of the dots on the egg", "title": "Overlay Color", "format": "color-hex" },
"texture": { "type": "string", "description": "TODO description: texture", "title": "Texture" }, "texture": { "type": "string", "description": "The texture reference in item_texture.json", "title": "Texture" },
"texture_index": { "type": "integer", "description": "TODO description: texture index", "title": "Texture Index" } "texture_index": { "type": "integer", "description": "The index of the texture", "title": "Texture Index", "default": 0 }
} }
}, },
"textures": { "textures": {
"type": "object", "type": "object",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }, "additionalProperties": { "type": "string", "description": "A reference to a texture in the resourcepack", "title": "Texture" },
"description": "TODO description: textures", "description": "A collection of references to textures in the resourcepack",
"title": "Textures" "title": "Textures"
} }
}, }
"description": "TODO description: description"
} }
}, },
"additionalProperties": false "additionalProperties": false

View File

@@ -17,7 +17,7 @@
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"title": "Client Entity", "title": "Client Entity",
"description": "The definition of an entity's models, materials, textures, and animations", "description": "The entity description for clientside rendering, animations and models",
"properties": { "properties": {
"description": { "description": {
"additionalProperties": false, "additionalProperties": false,
@@ -92,14 +92,14 @@
"spawn_egg": { "spawn_egg": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "TODO description: spawn egg", "description": "The definition of how the spawn_egg icon looks like",
"title": "Spawn Egg", "title": "Spawn Egg",
"dependencies": { "texture_index": ["texture"], "base_colour": ["overlay_color"], "overlay_color": ["base_color"] }, "dependencies": { "texture_index": ["texture"], "base_colour": ["overlay_color"], "overlay_color": ["base_color"] },
"properties": { "properties": {
"base_color": { "type": "string", "description": "TODO description: base color", "title": "Base Color", "format": "color-hex" }, "base_color": { "type": "string", "description": "The basic color of the egg", "title": "Base Color", "format": "color-hex" },
"overlay_color": { "type": "string", "description": "TODO description: overlay color", "title": "Overlay Color", "format": "color-hex" }, "overlay_color": { "type": "string", "description": "The colors of the dots on the egg", "title": "Overlay Color", "format": "color-hex" },
"texture": { "type": "string", "description": "TODO description: texture", "title": "Texture" }, "texture": { "type": "string", "description": "The texture reference in item_texture.json", "title": "Texture" },
"texture_index": { "type": "integer", "description": "TODO description: texture index", "title": "Texture Index" } "texture_index": { "type": "integer", "description": "The index of the texture", "title": "Texture Index", "default": 0 }
} }
}, },
"scripts": { "scripts": {
@@ -110,9 +110,14 @@
"properties": { "properties": {
"pre_animation": { "pre_animation": {
"type": "array", "type": "array",
"description": "TODO description: pre aninamtion", "description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation", "title": "Pre Animation",
"items": { "pattern": ";$", "$ref": "../../../molang/1.8.0/number.json", "description": "TODO description: pre aninamtion", "title": "Pre Animation" } "items": {
"pattern": ";$",
"$ref": "../../../molang/1.8.0/string.json",
"description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation"
}
}, },
"parent_setup": { "$ref": "../../../molang/1.8.0/number.json" }, "parent_setup": { "$ref": "../../../molang/1.8.0/number.json" },
"scale": { "type": "string", "description": "TODO description: scale", "title": "Scale" }, "scale": { "type": "string", "description": "TODO description: scale", "title": "Scale" },
@@ -123,8 +128,8 @@
}, },
"textures": { "textures": {
"type": "object", "type": "object",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }, "additionalProperties": { "type": "string", "description": "A reference to a texture in the resourcepack", "title": "Texture" },
"description": "TODO description: textures", "description": "A collection of references to textures in the resourcepack",
"title": "Textures" "title": "Textures"
} }
} }

View File

@@ -120,7 +120,7 @@
}, },
"light_color_multiplier": { "light_color_multiplier": {
"$ref": "../../../molang/1.8.0/number.json", "$ref": "../../../molang/1.8.0/number.json",
"description": "TODO description: light color multiplier", "description": "The amount of light that blends into what is being rendered, lower values gives darker rendering, (1 = 100%)",
"title": "Light Color Multiplier" "title": "Light Color Multiplier"
}, },
"materials": { "materials": {