Java Edition data pack

OreVeinMiner

Mine one ore normally and the connected remainder enters a bounded, player-owned queue. Every additional block keeps its original loot table, tool context and ore family.

Choose versionServer-sideVanilla ore families26-neighbor default

01 / Install

Install the file for your exact range

1

Remove older OreVeinMiner copies from the world's datapacks folder.

2

Put the selected ZIP in world/datapacks without extracting it.

3

Run /reload, crouch, then mine a supported ore with a valid pickaxe.

Do not load OreVeinMiner with VeinMiner. VeinMiner already handles ores, so both packs would observe the same first block. TreeVeinMiner handles a different block set and does not replace OreVeinMiner.

02 / Use

The first block is always normal Minecraft mining

  1. Play in Survival, hold a pickaxe able to harvest the selected ore and crouch under the default activation mode.
  2. Break the first ore normally. The pack confirms the targeted block disappeared and the matching mined statistic increased.
  3. Connected blocks of the same ore family are processed through the queue. Stone and deepslate variants can belong to one vein.

03 / Commands

Operator controls

/function oreveinminer:admin/enable

Enable new operations globally.

/function oreveinminer:admin/disable

Disable new operations globally.

/function oreveinminer:admin/adjacency_immediate

Follow all 26 immediately touching positions. This is the default.

/function oreveinminer:admin/adjacency_faces

Follow only the six face-sharing positions.

/function oreveinminer:admin/safety_on

Stop before an additional block would consume the tool's final durability point.

/function oreveinminer:admin/safety_off

Allow normal tool exhaustion. This is the default.

04 / Supported ores

Eleven separate ore families

Only blocks present in the selected Minecraft version can be mined. Overworld stone and deepslate variants share a family, but different materials do not merge into one operation.

Overworld

Coal, copper, diamond, emerald, gold, iron, lapis and redstone ore.

Nether

Nether gold ore and nether quartz ore remain separate families.

Debris

Ancient debris has its own family and still requires a suitable harvest tier.

Same family only. A diamond vein will not cross through iron ore, even when the blocks touch.

05 / Add blocks

Tags extend matching, not first-block detection

OreVeinMiner does not include VeinMiner's arbitrary custom-block configuration. Its starting detector is built from the shipped vanilla mined-stat objectives.

  • Adding a block to an existing family can let it be followed after a built-in vanilla ore starts that family.
  • Adding a modded block to a tag does not create the mined-stat objective needed for that block to start a vein by itself.
  • Use VeinMiner when arbitrary mod blocks must start their own operations through its custom-block system.

06 / Loot & durability

Loot uses the held pickaxe against the original block

Every accepted additional block runs its Minecraft loot table with the owner's main hand before becoming air. Fortune and Silk Touch therefore follow the block's normal loot behavior. Ore experience is added only where normal non-Silk mining awards it.

First block

Mined entirely by Minecraft before the queue starts.

Extra drops

Generated from each original block with the owner's main-hand tool.

Harvest tier

Rechecked before each queued block is accepted.

07 / Performance

Work is capped per player and per operation

The default limit is 128 additional blocks, with 16 queue visits per player per tick. Only matching neighboring blocks enter the modern 3.1.0 frontier; no operation means there is no vein queue to drain.

Default limit

128 additional blocks after the normally mined first ore.

Default budget

16 queue visits per active player per tick.

Ownership

Each operation remains attached to the player who started it.

08 / Troubleshooting

Check the trigger conditions first

  • Nothing happens: confirm the selected ZIP matches the server version, run /reload, crouch and use a pickaxe that can harvest the ore.
  • Only one block breaks: nearby blocks must belong to the same ore family and touch through the selected six- or 26-neighbor rule.
  • The feature stopped for one player: use the version-specific player command shown in the Use section.
  • Duplicate drops or competing effects: remove VeinMiner or another ore-mining pack that observes the same block break.
  • A modded ore does not start: this is expected from a tag-only edit; use VeinMiner's custom-block system for arbitrary starting blocks.