Tooltips
This commit is contained in:
@@ -99,6 +99,8 @@ export function block_light_emission(block: BlockRegistry | undefined): number {
|
||||
|
||||
export interface BlockRegistry {
|
||||
id: string;
|
||||
// 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
|
||||
model?: string;
|
||||
@@ -135,6 +137,8 @@ export interface BlockRegistry {
|
||||
|
||||
export interface ItemRegistry<T = unknown | undefined> {
|
||||
texture_id: string | ((item: ItemStack<T>) => string);
|
||||
// what players see, like "Iron Ingot". made from the id when not set, see display_name in common/utils.ts
|
||||
name?: string;
|
||||
block_id?: string;
|
||||
tool_type?: string;
|
||||
max_stack?: number;
|
||||
|
||||
Reference in New Issue
Block a user