QMine

QMine is a vein mining, terraforming, and mass-harvesting mod for Fabric. It provides multi-block harvesting with real-time in-world wireframe previews, customizable excavation patterns, tree felling, and built-in tool safety protections.

QMine (Quick Mine)

QMine is a vein mining, terraforming, and mass-harvesting mod for Fabric. It provides multi-block harvesting with real-time in-world wireframe previews, customizable excavation patterns, tree felling, and built-in tool safety protections.


Key Features

Vein Mining and Excavation

  • Multiple Excavation Shapes: Switch between Shapeless, Mining Tunnel, Diagonal Tunnel, Staircase, Escape Tunnel, Strip Miner, Wall, Floor, Room, and Miner Passage.
  • Real-Time Wireframe Previews: Dynamic block outline rendering showing targeted blocks in real time before breaking.
  • Dynamic Resizing: Adjust excavation dimensions (depth, width, height) on the fly using keybinds and mouse wheel scrolling.
  • Drop Accumulation: Drops and experience points coalesce at the mined block or transfer directly into the player's inventory, preventing lag from excessive entities.

Tree Harvesting and Forestry

  • Natural Tree Detection: Distinguishes between naturally grown trees and player-placed log structures.
  • Multiple Felling Modes: Supports Instant break, Cascade (top-down), Shift-Down, and Falling Trunk animation modes.
  • Fast Leaf Decay: Surrounding leaves decay rapidly upon felling the trunk.

Farming and Landscaping

  • Right-Click Crop Harvesting: Harvest mature crops and auto-replant seeds with a single right-click across entire crop fields.
  • Area Farmland Tilling: Till large plots of soil into farmland in one action using a hoe.
  • Area Path Flattening: Convert grass or dirt into dirt paths across an area using a shovel.
  • Area Bark Stripping: Strip bark from connected logs efficiently using an axe.

Mining Utilities and Protections

  • Tool Durability Protection: Stops harvesting before tools break, preventing accidental destruction of valuable equipment.
  • Auto Tool Swapping: Automatically switches to the most effective tool in your hotbar for the targeted block.
  • Auto Torch Placement: Places torches on dark surfaces or floors as you excavate underground.
  • Lava Replacer: Converts adjacent lava into cobblestone or obsidian to safeguard mined items from burning.
  • Hunger and Cooldown Balance: Configurable exhaustion and hunger costs per block mined, with optional operation cooldowns.

Server and Client Support

QMine operates in two environments:

  • Client and Server (Recommended): Provides the full feature set, including live in-world wireframe previews, HUD status overlays, and mouse-wheel shape cycling.
  • Server-Side Only: Can be installed on dedicated servers without requiring clients to install the mod. Unmodified vanilla clients can trigger vein mining by sneaking while breaking blocks.

Default Controls

  • Vein Mine Key (grave / ~): Hold while breaking a block or right-clicking to activate QMine.
  • Cycle Shape (grave + Mouse Wheel): Scroll through available excavation shapes.
  • Resize Shape (grave + Sneak + Mouse Wheel): Adjust shape size parameters (such as tunnel depth or wall width).
  • Open Config GUI: Accessible via Mod Menu when YetAnotherConfigLib (YACL) is installed.

Configuration and Extensibility

Configuration

QMine includes extensive server and client configuration options located in config/qmine.json and config/qmine-client.json:

  • Maximum harvest limit and mining range.
  • Exhaustion and hunger multiplier settings.
  • Tool durability stop thresholds.
  • Felling mechanics and animation choices.
  • Cooldown and protection toggles.

Data Pack Tags

Customize behavior without writing code using Minecraft tags:

  • qmine:included_tools - Items allowed to activate vein mining.
  • qmine:excluded_tools - Items prohibited from vein mining.
  • qmine:excluded_blocks - Blocks protected against vein mining.
  • qmine:block_whitelist - If defined, limits vein mining exclusively to these blocks.
  • qmine:farmland_tillable - Blocks converted by hoes.
  • qmine:shovel_flattenable - Blocks flattened by shovels.
  • qmine:single_crop_harvesting_blacklist - Crops excluded from right-click mass harvesting.

Modder API

Addon developers can register custom excavation patterns using ShapeRegistry and hook into events provided by QMineMiningEvents, QMineCropEvents, and QMineRightClickEvents.


Requirements

  • Fabric Loader (0.16.0 or newer)
  • Fabric API
  • YetAnotherConfigLib (YACL) (Optional, for in-game configuration screens)
  • Mod Menu (Optional, for configuration screen access from the mod list)

License & Credits

  • Distributed under the GNU Affero General Public License v3.0 (AGPL-3.0).
  • Inspired by FTB Ultimine.

QMine Team

profile avatar
Owner
  • 1
    Projects
  • 20
    Downloads