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
@@ -71,7 +71,7 @@ export class EverythingRegistry {
}
// one texture for everything, or the model's texture variables: { top, bottom, side } or { front, side } for
// cubes, { crop } for engine:crop and so on
// cubes, { crop } for cubi:crop and so on
export type BlockTextures = string | Record<string, string>;
export interface BlockStateDefinition {
@@ -106,7 +106,7 @@ export interface BlockRegistry {
// what players see, like "Iron Ore". made from the id when not set, see display_name in common/utils.ts
name?: string;
textures: BlockTextures;
// the block model, engine:cube when not set. see common/block_models.ts
// the block model, cubi:cube when not set. see common/block_models.ts
model?: string;
// solid when not set. anything else doesn't hide its neighbors' faces
render_layer?: RenderLayer;
@@ -199,7 +199,7 @@ export function is_fluid_block(block: BlockRegistry | undefined): boolean {
// a fluid's textures as the top, bottom and sides of a cube, for its item and its particles
export function fluid_textures(textures: BlockTextures): { still: string; flowing: string } {
if (typeof textures === "string") return { still: textures, flowing: textures };
const still = textures.still ?? "engine:missing";
const still = textures.still ?? "cubi:missing";
return { still, flowing: textures.flowing ?? still };
}