1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

implement composter

This commit is contained in:
p2r3
2025-08-23 15:55:46 +03:00
parent c0b903a936
commit 3c86db75fb
5 changed files with 66 additions and 1 deletions

View File

@@ -207,6 +207,24 @@ void getCraftingOutput (PlayerData *player, uint8_t *count, uint16_t *item) {
}
break;
case 7:
switch (first_item) {
case I_oak_slab:
if (
identical &&
player->craft_items[1] == 0 &&
player->craft_items[4] == 0
) {
*item = I_composter;
*count = 1;
return;
}
break;
default: break;
}
break;
case 8:
switch (first_item) {
case I_cobblestone: