Fences
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user