1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00

update list of blocks requiring a pickaxe to obtain

This commit is contained in:
p2r3
2025-08-24 16:06:21 +03:00
parent 4edc21ab81
commit 5fa810b71f
2 changed files with 11 additions and 1 deletions

View File

@@ -46,7 +46,8 @@ const blockWhitelist = [
"oak_slab",
"stone_slab",
"cobblestone_slab",
"composter"
"composter",
"coal_block"
];
// Currently, only 4 biome types are supported, excluding "beach"

View File

@@ -349,8 +349,17 @@ uint16_t getMiningResult (uint16_t held_item, uint8_t block) {
case B_stone:
case B_cobblestone:
case B_stone_slab:
case B_cobblestone_slab:
case B_sandstone:
case B_furnace:
case B_coal_ore:
case B_iron_ore:
case B_iron_block:
case B_gold_block:
case B_diamond_block:
case B_redstone_block:
case B_coal_block:
// Check if player is holding (any) pickaxe
if (
held_item != I_wooden_pickaxe &&