Skip to content

User Guide

OneKeyMiner Logo

OneKeyMiner - Making mining, farming, and planting easy and efficient!



OneKeyMiner is a powerful Minecraft mod that goes beyond just chain mining! It offers three core features:

  • ⛏️ Chain Mining: Mine large connected clusters of similar blocks (ores, logs, etc.) at once
  • ✂️ Chain Interaction: Batch shear sheep, till soil, strip bark, create paths, and more
  • 🌱 Chain Planting: Automatically plant crops on adjacent farmland
  • ⚙️ Highly Configurable: Customize max block count, search distance, activation mode, and more
  • 🏷️ Tag Support: Use tags like #minecraft:logs and #c:shears for configuration
  • 🛡️ Safety Features: Automatically protect tool durability and hunger levels
  • 🎮 Multi-Platform Support: Compatible with Fabric, NeoForge, and Forge
  • 🔧 Mod Compatibility: Works seamlessly with items and blocks from other mods

  • Minecraft 1.21.9
  • Java 21 or higher
  • Corresponding platform loaders:
    • Fabric: Fabric Loader 0.15.0+ and Fabric API
    • NeoForge: NeoForge 21.0+
    • Forge: Forge 51.0+
  1. Download the mod file for your platform
  2. Place the .jar file into the .minecraft/mods folder
  3. Launch the game
  • Mod Menu (Fabric): Displays a configuration button in the mod list
  • Cloth Config (Fabric): Provides a better configuration interface

  1. Hold a pickaxe or axe
  2. Hold the sneak key (Shift)
  3. Mine an ore or log
  4. Watch connected similar blocks being mined together!
  1. Hold a hoe, axe, shovel, or shears
  2. Hold the sneak key (Shift)
  3. Right-click a block to interact
  4. Adjacent interactable blocks will also be processed!
  1. Hold seeds or crops
  2. Hold the sneak key (Shift)
  3. Right-click farmland
  4. Adjacent empty farmland will also be planted!

💡 Tip: By default, you need to hold the sneak key to activate chain operations. You can change the activation mode in the configuration.


When you break a block, adjacent blocks of the same type are automatically broken.

Supported Blocks:

  • All ores (including deep variants and nether ores)
  • All logs and wood
  • All leaves
  • Custom whitelist blocks

Tool Requirements:

  • Pickaxe: Ores
  • Axe: Logs/Wood
  • Any tool: Whitelisted blocks

When you use a tool on a block, the same action is automatically performed on adjacent blocks.

ToolInteraction TypeTarget BlocksResult
🪓 AxeStrippingLogs/WoodStripped Logs/Wood
🌾 HoeTillingGrass/DirtFarmland
⛏️ ShovelPathingGrass/DirtGrass Path
✂️ ShearsShearingSheep/Vines etc.Dropped Wool/Vines
🖌️ BrushScrapingSuspicious Sand/GravelArchaeological Excavation

When planting crops, adjacent empty farmland blocks are automatically planted.

Supported Items:

  • Wheat Seeds
  • Beetroot Seeds
  • Carrots, Potatoes
  • Melon Seeds, Pumpkin Seeds
  • Mod-added seeds (configured via tags)

Target Blocks:

  • Empty farmland blocks
  • Plantable blocks matching the seed type

The mod supports multiple activation modes, which can be selected in the configuration:

ModeDescription
Hold Sneak KeyActivate while holding Shift (default)
No Sneak KeyActivate without holding Shift
Always OnAlways active
Toggle KeyUse a dedicated key to toggle on/off
KeyFunctionDefault Key
Toggle Chain ModeEnable/Disable all chain features` (Tilde)
Open ConfigurationOpen the mod configuration interfaceUnbound

📝 In-game, press EscOptionsControlsKey Bindings to change key bindings


Fabric (requires Mod Menu):

  1. Press EscMods
  2. Find OneKeyMiner → Click the gear icon

NeoForge / Forge

  1. Press EscMods
  2. Find OneKeyMiner → Click Configuration

Manual Editing: Edit .minecraft/config/onekeyminer.json

OptionDefaultDescription
enabled✅ trueWhether the mod is enabled
enableInteraction✅ trueWhether chain interaction is enabled
enablePlanting✅ trueWhether chain planting is enabled
OptionDefaultRangeDescription
maxBlocks641-1000Maximum number of blocks processed in a single chain operation
maxBlocksCreative2561-10000Maximum number of blocks processed in creative mode
maxDistance161-64Maximum search distance for chain operations
allowDiagonal✅ true-Whether to include diagonally adjacent blocks
strictBlockMatching❌ false-Whether to require blocks to be exactly the same
OptionDefaultDescription
toolProtectionThreshold1Minimum tool durability to retain
hungerProtectionThreshold2Minimum hunger level to retain
consumeDurability✅ trueWhether to consume tool durability
consumeHunger✅ trueWhether to consume hunger
hungerMultiplier1.0Hunger consumption multiplier (0.0-10.0)
OptionDescription
blockWhitelistBlock whitelist (supports tags)
blockBlacklistBlock blacklist (supports tags)
toolWhitelistMining tool whitelist
toolBlacklistMining tool blacklist
interactionToolWhitelistInteraction tool whitelist
interactionToolBlacklistInteraction tool blacklist
plantableWhitelistPlantable item whitelist
plantableBlacklistPlantable item blacklist
{
"enabled": true,
"enableInteraction": true,
"enablePlanting": true,
"maxBlocks": 64,
"maxBlocksCreative": 256,
"maxDistance": 16,
"allowDiagonal": true,
"strictBlockMatching": false,
"toolProtection": true,
"toolProtectionThreshold": 1,
"hungerProtection": true,
"hungerProtectionThreshold": 2,
"consumeDurability": true,
"consumeHunger": true,
"hungerMultiplier": 1.0,
"blockWhitelist": [
"#minecraft:coal_ores",
"#minecraft:iron_ores",
"#minecraft:logs"
],
"blockBlacklist": [],
"toolWhitelist": [],
"toolBlacklist": [],
"interactionToolWhitelist": [
"#c:shears",
"#minecraft:hoes",
"#minecraft:axes"
],
"interactionToolBlacklist": [],
"plantableWhitelist": [
"#c:seeds"
],
"plantableBlacklist": []
}

OneKeyMiner supports using Minecraft and mod tags to configure blocks and items.

FormatDescriptionExample
#namespace:tagTag reference#minecraft:logs
namespace:idDirect IDminecraft:diamond_ore
*pattern*Wildcard match*_ore
TagDescription
#minecraft:logsAll logs
#minecraft:coal_oresCoal ores
#minecraft:iron_oresIron ores
#minecraft:gold_oresGold ores
#minecraft:diamond_oresDiamond ores
#minecraft:emerald_oresEmerald ores
#minecraft:lapis_oresLapis ores
#minecraft:redstone_oresRedstone ores
#minecraft:copper_oresCopper ores
#c:oresCommon ores tag (Fabric/Forge)
TagDescription
#minecraft:pickaxesAll pickaxes
#minecraft:axesAll axes
#minecraft:shovelsAll shovels
#minecraft:hoesAll hoes
#c:shearsAll shears
#c:seedsAll seeds
{
"blockWhitelist": [
"#mymod:custom_ores",
"mymod:magic_crystal_ore"
],
"interactionToolWhitelist": [
"mymod:magical_shears"
]
}

  • Efficiency: Speeds up mining
  • Unbreaking: Reduces durability consumption
  • Fortune/Silk Touch: Applies normally to all blocks
  • Mending: Experience is gained normally

The mod is compatible with the following protection systems:

  • ✅ FTB Chunks
  • ✅ Claim Chunk
  • ✅ Residence
  • ✅ Other protection systems using standard events

Blocks in protected areas will not be affected by chain operations

OneKeyMiner uses universal item interaction events to automatically support:

  • ✅ Ores and logs from other mods
  • ✅ Tools from other mods (pickaxes, axes, shears, etc.)
  • ✅ Seeds and crops from other mods
  • ✅ Fully supports multiplayer servers
  • ✅ Configuration can be managed by server administrators
  • ✅ Player personal settings are saved on the client

Check the following points:

  1. Make sure the mod is enabled (enabled: true)
  2. Make sure you are using the correct activation method (default is holding Shift)
  3. Make sure the corresponding features are enabled (enableInteraction, enablePlanting)
  4. Make sure blocks/tools are in the whitelist and not in the blacklist

Q: How to add mod blocks to the whitelist?

Section titled “Q: How to add mod blocks to the whitelist?”

Edit .minecraft/config/onekeyminer.json:

{
"blockWhitelist": [
"#mymod:custom_ores",
"mymod:special_ore"
]
}

Adjust the configuration:

  • Set consumeHunger to false to disable hunger consumption
  • Or reduce the value of hungerMultiplier (e.g., 0.5)

Tool protection is enabled by default:

  • toolProtection: true
  • toolProtectionThreshold: 1

Tools will stop operating when they have 1 durability point left.

Q: Why doesn’t chain planting plant on all farmland?

Section titled “Q: Why doesn’t chain planting plant on all farmland?”

Possible reasons:

  1. Farmland is out of search range (exceeds maxDistance)
  2. Maximum number of blocks reached (maxBlocks)
  3. Not enough seeds in hand
  4. Farmland already has crops

In the configuration:

  • Disable chain interaction: "enableInteraction": false
  • Disable chain planting: "enablePlanting": false
  • Disable the entire mod: "enabled": false

Having issues or suggestions?

  • GitHub Issues: Report bugs or request features
  • Discord: Join the community discussion

Enjoy mining, farming, and planting! ⛏️🌾🌱

User Guide Version: 1.6.0 | For Minecraft 1.21.9