This commit is contained in:
2026-10-03 16:28:09 -03:00
parent 24fe7cdede
commit 91655c28c5
53 changed files with 1752 additions and 114 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
import type { TintColor } from "./worldgen/biome_colors.ts";
import type { ItemStack } from "./inventory.ts";
import type { BlockVariant } from "./block_models.ts";
import type { BlockPart, BlockVariant } from "./block_models.ts";
export class EverythingRegistry {
static #key_to_id = new Map<string, Map<string, number>>();
@@ -119,8 +119,13 @@ export interface BlockRegistry {
alpha?: number;
has_collision: boolean;
// boxes in pixels, see BlockVariant.shape
// boxes in pixels, see BlockVariant.shape and collision_shape
shape?: number[][];
collision_shape?: number[][];
// made of pieces instead of one model, see BlockPart
parts?: BlockPart[];
// the model its item is drawn with, with the block's textures, like minecraft's fence_inventory
item_model?: string;
toughness?: number;
requires_tool?: boolean;
tool_to_break?: string;