Update geometry identifier to allow for : in it (#297)

* - Add : to 1.16.0 model

* - Add : to 1.8.0 model

* - Fix

* - Fix 2
This commit is contained in:
Xterionix
2024-07-03 22:39:09 +05:00
committed by GitHub
parent c4b023ce74
commit 1638a68050
2 changed files with 928 additions and 577 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,149 +1,383 @@
{ {
"$id": "blockception.minecraft.resource.model.1.8.0", "$id": "blockception.minecraft.resource.model.1.8.0",
"type": "object",
"title": "Model Schema For 1.8.0",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"required": ["format_version"],
"properties": {
"debug": { "type": "boolean", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Debug" },
"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."
}
},
"propertyNames": { "pattern": "(^geometry\\.[a-zA-Z0-9_.'\\-:]+|format_version)" },
"additionalProperties": {
"additionalProperties": false,
"type": "object", "type": "object",
"description": "Geometry specification.", "title": "Model Schema For 1.8.0",
"title": "Geometry", "description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"required": [
"format_version"
],
"properties": { "properties": {
"bones": { "debug": {
"type": "array", "type": "boolean",
"description": "The bones definitions.", "description": "UNDOCUMENTED.",
"title": "Bones", "$comment": "UNDOCUMENTED",
"items": { "title": "Debug"
"additionalProperties": false, },
"type": "object", "format_version": {
"description": "The bone definition.", "title": "1.8.0 Format Version",
"title": "Bone", "type": "string",
"required": ["name"], "pattern": "^1.8.0$",
"properties": { "description": "A version that tells minecraft what type of data format can be expected when reading this file."
"bind_pose_rotation": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] }, }
"cubes": { },
"type": "array", "propertyNames": {
"items": { "pattern": "(^geometry.[\\:a-zA-Z0-9_\\-\\.]+|format_version)"
"additionalProperties": false, },
"type": "object", "additionalProperties": {
"properties": { "additionalProperties": false,
"inflate": { "type": "number" }, "type": "object",
"mirror": { "type": "boolean" }, "description": "Geometry specification.",
"origin": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] }, "title": "Geometry",
"size": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] }, "properties": {
"uv": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }] } "bones": {
} "type": "array",
} "description": "The bones definitions.",
}, "title": "Bones",
"debug": { "type": "boolean" }, "items": {
"inflate": { "type": "number" }, "additionalProperties": false,
"locators": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "number" } } }, "type": "object",
"mirror": { "type": "boolean" }, "description": "The bone definition.",
"name": { "type": "string" }, "title": "Bone",
"neverRender": { "type": "boolean" }, "required": [
"parent": { "type": "string" }, "name"
"pivot": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] }, ],
"poly_mesh": { "properties": {
"type": "object", "bind_pose_rotation": {
"required": ["polys"], "type": "array",
"title": "Poly Mesh", "items": [
"description": "UNDOCUMENTED.", {
"$comment": "UNDOCUMENTED", "type": "number"
"additionalProperties": false, },
"properties": { {
"normalized_uvs": { "title": "Normalized Uvs", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "type": "boolean" }, "type": "number"
"positions": { },
"title": "Positions", {
"description": "UNDOCUMENTED.", "type": "number"
"$comment": "UNDOCUMENTED", }
"type": "array", ]
"items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] },
}, "cubes": {
"normals": { "type": "array",
"title": "Normals", "items": {
"description": "UNDOCUMENTED.", "additionalProperties": false,
"$comment": "UNDOCUMENTED", "type": "object",
"type": "array", "properties": {
"items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] "inflate": {
}, "type": "number"
"polys": { },
"title": "Polys", "mirror": {
"description": "UNDOCUMENTED.", "type": "boolean"
"$comment": "UNDOCUMENTED", },
"type": "array", "origin": {
"items": { "type": "array",
"type": "array", "items": [
"minItems": 3, {
"maxItems": 4, "type": "number"
"items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] },
} {
} "type": "number"
} },
}, {
"render_group_id": { "type": "number"
"title": "Render Group Id", }
"description": "UNDOCUMENTED.", ]
"$comment": "UNDOCUMENTED", },
"type": "integer", "size": {
"minimum": 0 "type": "array",
}, "items": [
"reset": { {
"title": "Reset", "type": "number"
"description": "UNDOCUMENTED.", },
"$comment": "UNDOCUMENTED", {
"type": "boolean" "type": "number"
}, },
"rotation": { {
"title": "Rotation", "type": "number"
"description": "UNDOCUMENTED.", }
"$comment": "UNDOCUMENTED", ]
"type": "array", },
"items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] "uv": {
}, "type": "array",
"texture_meshes": { "items": [
"type": "array", {
"title": "Texture Meshes", "type": "number"
"description": "UNDOCUMENTED.", },
"$comment": "UNDOCUMENTED", {
"items": { "type": "number"
"type": "object", }
"additionalProperties": false, ]
"properties": { }
"texture": { "type": "string" }, }
"local_pivot": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] }, }
"position": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] }, },
"rotation": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] }, "debug": {
"scale": { "type": "array", "items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] } "type": "boolean"
} },
} "inflate": {
} "type": "number"
} },
"locators": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "number"
}
}
},
"mirror": {
"type": "boolean"
},
"name": {
"type": "string"
},
"neverRender": {
"type": "boolean"
},
"parent": {
"type": "string"
},
"pivot": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"poly_mesh": {
"type": "object",
"required": [
"polys"
],
"title": "Poly Mesh",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"properties": {
"normalized_uvs": {
"title": "Normalized Uvs",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "boolean"
},
"positions": {
"title": "Positions",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"normals": {
"title": "Normals",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"polys": {
"title": "Polys",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": {
"type": "array",
"minItems": 3,
"maxItems": 4,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
}
}
}
},
"render_group_id": {
"title": "Render Group Id",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "integer",
"minimum": 0
},
"reset": {
"title": "Reset",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "boolean"
},
"rotation": {
"title": "Rotation",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"texture_meshes": {
"type": "array",
"title": "Texture Meshes",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"texture": {
"type": "string"
},
"local_pivot": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"position": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"rotation": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"scale": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
}
}
}
}
}
}
},
"cape": {
"title": "Cape",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "string"
},
"debug": {
"title": "Debug",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "boolean"
},
"texturewidth": {
"type": "integer",
"description": "UNDOCUMENTED: texturewidth.",
"title": "Texturewidth"
},
"textureheight": {
"type": "integer",
"description": "UNDOCUMENTED: textureheight.",
"title": "Textureheight"
},
"visible_bounds_width": {
"type": "number",
"description": "UNDOCUMENTED: visible bounds width.",
"title": "Visible Bounds Width"
},
"visible_bounds_height": {
"type": "number",
"description": "UNDOCUMENTED: visible bounds height.",
"title": "Visible Bounds Height"
},
"visible_bounds_offset": {
"type": "array",
"description": "UNDOCUMENTED: visible bounds offset.",
"title": "Visible Bounds Offset",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
}
} }
},
"cape": { "title": "Cape", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "type": "string" },
"debug": { "title": "Debug", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "type": "boolean" },
"texturewidth": { "type": "integer", "description": "UNDOCUMENTED: texturewidth.", "title": "Texturewidth" },
"textureheight": { "type": "integer", "description": "UNDOCUMENTED: textureheight.", "title": "Textureheight" },
"visible_bounds_width": { "type": "number", "description": "UNDOCUMENTED: visible bounds width.", "title": "Visible Bounds Width" },
"visible_bounds_height": { "type": "number", "description": "UNDOCUMENTED: visible bounds height.", "title": "Visible Bounds Height" },
"visible_bounds_offset": {
"type": "array",
"description": "UNDOCUMENTED: visible bounds offset.",
"title": "Visible Bounds Offset",
"items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }]
}
} }
}
} }