This commit is contained in:
DaanV2
2022-10-28 15:13:52 +02:00
parent 836d5679fc
commit e4dc49b722

View File

@@ -56,14 +56,22 @@
} }
} }
}, },
"enable_attachables": { "type": "boolean", "description": "UNDOCUMENTED: enable attachables.", "title": "Enable Attachables" }, "enable_attachables": {
"type": "boolean",
"description": "UNDOCUMENTED: enable attachables.",
"title": "Enable Attachables"
},
"geometry": { "geometry": {
"title": "Geometry", "title": "Geometry",
"description": "The reference to defined geometries in `<resource pack>/models/'.", "description": "The reference to defined geometries in `<resource pack>/models/'.",
"type": "object", "type": "object",
"propertyNames": { "pattern": "[a-zA-Z0-9_\\.\\-]+" }, "propertyNames": { "pattern": "[a-zA-Z0-9_\\.\\-]+" },
"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"
}
}, },
"hide_armor": { "hide_armor": {
"type": "boolean", "type": "boolean",
@@ -105,7 +113,11 @@
"particle_emitters": { "particle_emitters": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "type": "string", "description": "Particle emitter reference.", "title": "Particle Emitter" }, "additionalProperties": {
"type": "string",
"description": "Particle emitter reference.",
"title": "Particle Emitter"
},
"description": "A collection of particle emitters definitions.", "description": "A collection of particle emitters definitions.",
"title": "Particle Emitters" "title": "Particle Emitters"
}, },
@@ -116,7 +128,11 @@
"minItems": 1, "minItems": 1,
"items": { "items": {
"oneOf": [ "oneOf": [
{ "type": "string", "title": "Render Controller", "description": "A single render controller definition." }, {
"type": "string",
"title": "Render Controller",
"description": "A single render controller definition."
},
{ {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": {
@@ -141,7 +157,7 @@
"items": { "items": {
"pattern": ";$", "pattern": ";$",
"$ref": "../../../molang/string.json", "$ref": "../../../molang/string.json",
"description": "Clientside molang variables that are to be evualated during the animation.", "description": "Clientside molang variables that are to be evaluated during the animation.",
"title": "Pre Animation" "title": "Pre Animation"
} }
}, },
@@ -167,14 +183,22 @@
"description": "A collection of sound effect definition.", "description": "A collection of sound effect definition.",
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "type": "string", "description": "A sound effect definition.", "title": "Sound Effect" } "additionalProperties": {
"type": "string",
"description": "A sound effect definition.",
"title": "Sound Effect"
}
}, },
"spawn_egg": { "spawn_egg": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "The definition of how the spawn_egg icon looks like.", "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"]
},
"examples": [ "examples": [
{ "base_color": "#FFFFFF", "overlay_color": "#000000" }, { "base_color": "#FFFFFF", "overlay_color": "#000000" },
{ "texture": "example_egg", "texture_index": 0 } { "texture": "example_egg", "texture_index": 0 }
@@ -194,13 +218,26 @@
"format": "color-hex", "format": "color-hex",
"examples": ["#FFFFFF"] "examples": ["#FFFFFF"]
}, },
"texture": { "type": "string", "description": "The texture reference in item_texture.json", "title": "Texture" }, "texture": {
"texture_index": { "type": "integer", "description": "The index of the texture.", "title": "Texture Index", "default": 0 } "type": "string",
"description": "The texture reference in item_texture.json",
"title": "Texture"
},
"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": "A reference to a texture in the resourcepack.", "title": "Texture" }, "additionalProperties": {
"type": "string",
"description": "A reference to a texture in the resourcepack.",
"title": "Texture"
},
"description": "A collection of references to textures in the resourcepack.", "description": "A collection of references to textures in the resourcepack.",
"title": "Textures" "title": "Textures"
} }