update ore generation

This commit is contained in:
p2r3
2025-08-31 22:23:19 +03:00
parent d608014470
commit 6bef88f60d
4 changed files with 89 additions and 62 deletions

View File

@@ -31,34 +31,14 @@ void getCraftingOutput (PlayerData *player, uint8_t *count, uint16_t *item) {
case 1:
switch (first_item) {
case I_oak_log:
*item = I_oak_planks;
*count = 4;
return;
case I_oak_planks:
*item = I_oak_button;
*count = 1;
return;
case I_iron_block:
*item = I_iron_ingot;
*count = 9;
return;
case I_gold_block:
*item = I_gold_ingot;
*count = 9;
return;
case I_diamond_block:
*item = I_diamond;
*count = 9;
return;
case I_redstone_block:
*item = I_redstone;
*count = 9;
return;
case I_coal_block:
*item = I_coal;
*count = 9;
return;
case I_oak_log: *item = I_oak_planks; *count = 4; return;
case I_oak_planks: *item = I_oak_button; *count = 1; return;
case I_iron_block: *item = I_iron_ingot; *count = 9; return;
case I_gold_block: *item = I_gold_ingot; *count = 9; return;
case I_diamond_block: *item = I_diamond; *count = 9; return;
case I_redstone_block: *item = I_redstone; *count = 9; return;
case I_coal_block: *item = I_coal; *count = 9; return;
case I_copper_block: *item = I_copper_ingot; *count = 9; return;
default: break;
}
@@ -345,6 +325,7 @@ void getCraftingOutput (PlayerData *player, uint8_t *count, uint16_t *item) {
case I_diamond: *item = I_diamond_block; *count = 1; return;
case I_redstone: *item = I_redstone_block; *count = 1; return;
case I_coal: *item = I_coal_block; *count = 1; return;
case I_copper_ingot: *item = I_copper_block; *count = 1; return;
default: break;
}
break;