Curios slots rendering !

This commit is contained in:
2026-10-01 17:57:22 -03:00
parent ea9f3f61bb
commit f2c3cb8135
39 changed files with 1032 additions and 226 deletions
+14
View File
@@ -163,6 +163,19 @@ export interface ToolProperties {
durability: number;
}
// how an item looks worn on a player, like bedrock's attachables: an entity model (see EntityModelJson) whose bones
// named like the player's parts (PLAYER_PARTS) move with them, drawn with a texture from the atlas. the slim ones are
// for players with 3 pixel wide arms, the others when not set. see docs/modding/items/index.md
export interface WornProperties {
model: string;
texture: string;
slim_model?: string;
slim_texture?: string;
}
// the parts of minecraft's player model, the bones of a worn model that move with them
export const PLAYER_PARTS = ["head", "body", "right_arm", "left_arm", "right_leg", "left_leg"] as const;
// what eating an item does, like minecraft's food properties
export interface FoodProperties {
// hunger points it restores, a bar is 20
@@ -187,6 +200,7 @@ export interface ItemRegistry<T = unknown | undefined> {
max_stack?: number;
lore?: string;
food?: FoodProperties;
worn?: WornProperties;
components?: Record<string, unknown>;
on_create?(item: ItemStack<T>): void;