Add all textures and models from create

This commit is contained in:
2026-10-12 18:47:41 -03:00
parent d4eff11f3e
commit 99bdcaeffc
3775 changed files with 66614 additions and 58 deletions
+8 -4
View File
@@ -584,8 +584,10 @@ export function validate_block(json: unknown): Problems {
if (variant.textures !== undefined) {
problems.push(...validate_textures(variant.textures, `${where}.textures`));
}
if (variant.y !== undefined && ![0, 90, 180, 270].includes(variant.y as number)) {
problems.push(`${where}.y must be 0, 90, 180 or 270`);
for (const axis of ["x", "y"]) {
if (variant[axis] !== undefined && ![0, 90, 180, 270].includes(variant[axis] as number)) {
problems.push(`${where}.${axis} must be 0, 90, 180 or 270`);
}
}
if (variant.shape !== undefined) problems.push(...validate_shape(variant.shape, `${where}.shape`));
if (variant.collision_shape !== undefined) {
@@ -625,8 +627,10 @@ export function validate_block(json: unknown): Problems {
if (part.textures !== undefined) {
problems.push(...validate_textures(part.textures, `${where}.textures`));
}
if (part.y !== undefined && ![0, 90, 180, 270].includes(part.y as number)) {
problems.push(`${where}.y must be 0, 90, 180 or 270`);
for (const axis of ["x", "y"]) {
if (part[axis] !== undefined && ![0, 90, 180, 270].includes(part[axis] as number)) {
problems.push(`${where}.${axis} must be 0, 90, 180 or 270`);
}
}
if (part.shape !== undefined) problems.push(...validate_shape(part.shape, `${where}.shape`));
if (part.collision_shape !== undefined) {