Description
Sneak and mine an ore with a pickaxe: the whole connected vein comes out, Fortune and Silk Touch count, and the pickaxe pays the durability.
What it does
- Sneak, mine one ore with a pickaxe, and every touching ore of the same kind comes out too, through sides, edges and corners. Not sneaking? Ores break one at a time as usual.
- Stone and deepslate kinds count as one vein (coal and deepslate coal, and so on), as do lit and unlit redstone. Covers coal, iron, copper, gold, redstone, lapis, diamond, emerald, nether quartz, nether gold and ancient debris (the tests mined coal, iron, diamond, redstone, quartz and debris).
- Drops come from the game's own rules for that ore and that pickaxe, so Fortune gives more and Silk Touch gives the ore block itself. Everything drops where you broke the first ore.
- The pickaxe has to be good enough: a wooden pickaxe on iron gets nothing, as in vanilla, and no vein.
- One durability per extra ore, Unbreaking included. It stops with 1 durability left instead of breaking the pickaxe.
- Extra ores give their experience (none with Silk Touch). This needs Minecraft 26.60 or newer; on older versions the extra ores give no XP.
- At most 64 ores in one go by default. Creative mode is left alone.
Not done: mining a vein doesn't make you hungrier, because the stable Script API has no way to add exhaustion. Logs are not included; for trees use our Tree Feller and Replant.
Commands and settings
/veinminerturns it on or off for yourself.- Operators:
/veinminerconfiglists the settings,/veinminerconfig maxBlocks 32changes one. Saved in the world. They are also at the top ofscripts/main.js, each with a comment.
requireSneak, maxBlocks, durabilityPerBlock, keepToolAlive, dropsAtFirstBlock, giveXp, ancientDebris, workInCreative, showMessage, onByDefault.
Tested
Tested on Bedrock Dedicated Server 1.26.63; not yet seen in a real game client.
- 31 checks with a simulated player mining real ore on the server: whole veins of coal (stone and deepslate mixed), iron, diamond, redstone, quartz and ancient debris; a touching ore of another kind left alone; drops counted (20 diamond ore gave 20 diamonds, with Fortune III 42 to 46); Silk Touch gave the ore blocks and no XP; XP from a 5-diamond vein; durability per ore, stopping with 1 left; Unbreaking; no vein without sneaking, with a shovel, with a wooden pickaxe on iron, or in creative; the 64-block limit; the toggle and the settings.
- 54 checks with two real network clients in a world with no experiments and cheats off, shared by Building Wand, Vein Miner for Ores and Hold to Power: commands, operator-only settings, survival payment with a real inventory, limits, unloaded land refused, the menu, settings surviving a restart and /reload, then level.dat read back (cheats off, no experiments, never creative).
Needs Minecraft 1.21.110 or newer. Stable Script API only, no experiments, so achievements stay on. Licence: MIT. Not affiliated with Mojang or Microsoft.
More free tools: actuallyop.com





