Better recipe api and port smithing to it

This commit is contained in:
2026-11-01 19:21:40 -03:00
parent ad782839ec
commit c8b5f2a3bd
50 changed files with 371 additions and 120 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ export function client_of(game: GameServer, area: Area) {
items: shared_items_api("bworld"),
// only its blocks are looked at here
fluids: { register() {} },
recipes: { register() {}, list: () => [] },
recipes: { register() {}, list: () => [], register_type() {}, find: () => undefined, all: () => [] },
world,
components: { register_block: (id, block_rules) => rules.register("bworld", id, block_rules) },
});