Render geo models in items

This commit is contained in:
2026-11-22 12:24:14 -03:00
parent dee07eaa0c
commit e751d22c6e
10 changed files with 171 additions and 29 deletions
+2 -1
View File
@@ -284,7 +284,8 @@ export interface ItemRegistry<T = unknown | undefined> {
texture_id: string | ((item: ItemStack<T>) => string);
// shown in place of texture_id while the stack's data has that key set, like a cast fishing rod. the first wins
data_textures?: Record<string, string>;
// a model it's drawn with instead of its texture, with the model's own textures, like a 3d wrench
// a model it's drawn with instead of its texture, with the model's own textures, like a 3d wrench. or an entity
// model (see EntityModelJson), drawn in its texture
model?: string;
// what players see, like "Iron Ingot". made from the id when not set, see display_name in common/utils.ts
name?: string;