Add cooking pot from farmer's delight !

This commit is contained in:
2026-09-27 01:08:50 -03:00
parent 52587aabf7
commit e4c9a2f7f4
43 changed files with 913 additions and 10 deletions
+3
View File
@@ -1431,6 +1431,9 @@ function death_message(name: string, cause: string) {
return `${name} fell out of the world`;
case "starve":
return `${name} starved to death`;
// standing on something hot, like a lit stove
case "hot_floor":
return `${name} discovered the floor was lava`;
default:
return `${name} died`;
}
+6
View File
@@ -467,6 +467,11 @@ export class ModRuntime {
if (!item) throw new Error(`unknown item ${id}`);
return item.max_stack ?? 64;
},
tool: (id) => {
const item = EverythingRegistry.get<ItemRegistry>("items", id);
if (!item) throw new Error(`unknown item ${id}`);
return item.tool_type;
},
},
recipes: {
furnace_result: (input) => {
@@ -482,6 +487,7 @@ export class ModRuntime {
);
return recipe && { result: recipe.result, material_count: recipe.material.count };
},
list: (type) => structuredClone(game().recipes.by_type.get(type) ?? []),
},
containers: {
create: (size) => {