Rename engine to cubi

This commit is contained in:
2026-11-03 17:17:37 -03:00
parent 68b78f053a
commit 98fa45ebd1
109 changed files with 643 additions and 788 deletions
+3 -3
View File
@@ -43,7 +43,7 @@ import {
export const FORMAT_VERSION = 1;
export const NAMESPACE_PATTERN = /^[a-z0-9_]{1,32}$/;
export const RESERVED_NAMESPACES = ["bworld", "engine"];
export const RESERVED_NAMESPACES = ["bworld", "cubi"];
// the namespace for tags every mod shares, like neoforge's. no mod owns it
export const SHARED_TAG_NAMESPACE = "c";
export const TAG_REGISTRIES = ["blocks", "items", "entities", "biomes"] as const;
@@ -256,7 +256,7 @@ function check_block(block: z.infer<typeof block_fields>, ctx: z.RefinementCtx)
problem(["states"], `can't have "${FLUID_LEVEL.name}", a fluid gets that state of its own`);
}
if (block.waterloggable !== undefined) problem(["waterloggable"], "isn't for fluids");
} else if (block.parts === undefined && (block.model ?? "engine:cube") === "engine:cube") {
} else if (block.parts === undefined && (block.model ?? "cubi:cube") === "cubi:cube") {
if (!cube_textures.safeParse(block.textures).success) {
problem(["textures"], "must be a texture id, { top, bottom, side } or { front, side }");
}
@@ -484,7 +484,7 @@ const fluid_schema = z.object({
name: text.optional(),
// for whatever shows it, like a layer tinted "fluid" on a full container
color,
// what a box of it is drawn with, tinted by its color, like neoforge's still texture. engine:missing when not set
// what a box of it is drawn with, tinted by its color, like neoforge's still texture. cubi:missing when not set
texture: z.string().optional(),
// what 1000 mB of it is worth when sold in a fluid container, like an item's base_sell_value
base_sell_value: z.int().min(0).optional(),