Skip to content

Introduction

OneKeyMiner Logo

Chain Mining, Interaction & Planting - All in One!

Release License Minecraft Version Java Version


  • ⛏️ Chain Mining - Break connected blocks of the same type at once
  • ✂️ Chain Interaction - Batch shearing, hoeing, stripping, path making
  • 🌱 Chain Planting - Auto-plant crops on adjacent farmland
  • 🎮 Multi-Platform - Supports Fabric, NeoForge, and Forge
  • ⚙️ Highly Configurable - Customize max blocks, distance, activation mode
  • 🏷️ Tag Support - Use tags like #minecraft:logs, #c:ores
  • 🛡️ Protection - Auto-stop when tool durability or hunger is low
  • 🔌 API Available - Easy integration for other mods

ComponentVersion
Minecraft1.21.9
Java21+
Fabric Loader0.15.0+
NeoForge21.0+
Forge59.0+

Download the latest release from GitHub Releases.

Choose the correct version for your platform:

  • onekeyminer-fabric-x.x.x-1.21.9.jar for Fabric
  • onekeyminer-neoforge-x.x.x-1.21.9.jar for NeoForge
  • onekeyminer-forge-x.x.x-1.21.9.jar for Forge
  • onekeyminer-x.x.x-1.21.9.jar for universal (auto-detect)

  1. Hold a pickaxe or axe
  2. Hold the activation key (default: ` backtick)
  3. Break an ore or log
  4. Watch connected blocks break automatically!
  1. Hold a hoe, axe, shovel, or shears
  2. Hold the activation key
  3. Right-click to interact with blocks
  4. Adjacent interactable blocks are also processed!
  1. Hold seeds or crops
  2. Hold the activation key
  3. Right-click on farmland
  4. Adjacent empty farmland is planted automatically!

Configuration file location: config/onekeyminer.json

OptionDefaultDescription
enabledtrueEnable/disable the mod
maxBlocks64Maximum blocks per chain operation
maxDistance16Maximum search distance
allowDiagonaltrueAllow diagonal block connections
consumeDurabilitytrueConsume tool durability
preserveDurability1Stop when durability reaches this value
consumeHungertrueConsume hunger for each block
minHungerLevel1Stop when hunger reaches this value
allowBareHandtrueAllow chain mining without tools
teleportDropsfalseTeleport drops to player inventory
teleportExpfalseTeleport experience to player
{
"customWhitelist": ["mymod:custom_ore"],
"blacklist": ["minecraft:bedrock"],
"toolWhitelist": [],
"toolBlacklist": ["minecraft:wooden_pickaxe"]
}

OneKeyMiner provides a comprehensive API for mod developers.

// Fabric
modImplementation "org.xiyu:onekeyminer-fabric:2.0.0"
// NeoForge/Forge
implementation "org.xiyu:onekeyminer-neoforge:2.0.0"
import org.xiyu.onekeyminer.api.OneKeyMinerAPI;
// Register custom blocks
OneKeyMinerAPI.registerBlock("mymod:custom_ore");
OneKeyMinerAPI.registerBlockTag("#mymod:ores");
// Register custom tools
OneKeyMinerAPI.registerTool("mymod:super_pickaxe");
// Listen to events
ChainEvents.registerPreActionListener(event -> {
// Custom logic before chain operation
});

See API Documentation for complete API reference.


Want to add preview highlighting or other features? You can create addon mods using our API!

Check out LiteMiner’s BlockHighlightRenderer for reference on implementing block preview highlighting.


  • ✅ Fabric (with Fabric API)
  • ✅ NeoForge
  • ✅ Forge
  • Mod Menu (Fabric)
  • Most ore/tool mods

Uses ServerPlayerGameMode#destroyBlock() for proper integration with:

  • FTB Chunks
  • Claim plugins
  • Other protection mods

Found a bug or have a suggestion?


This project is licensed under All Rights Reserved (ARR). You may not copy, modify, or distribute the code without permission from the author.


  • Author: Mai_xiyu
  • Project Origin: The original OneKeyMiner had separate projects and branches for each mod loader and Minecraft version. This unified version was created to consolidate all platforms into a single codebase with completely refactored code.
  • Special Thanks: All contributors and testers

Made with ❤️ for the Minecraft community