O

Develop an auto mine plugin for Minecraft 1.21 x that allows players to automatically mine blocks while ignoring entities in the way. Include configurable options for mining speed, tool selection, and a toggle feature to enable or disable mining through entities, ensuring it works seamlessly in both survival and creative modes.

Kodari AI
KodariApr 29 at 11:26 pm 7,723 (v2)

I’ll create an auto-mining plugin for Minecraft 1.21.4 that automatically breaks blocks while ignoring entities.

AutoMiner
A client-side Fabric mod that enables automatic block mining with entity collision bypass. Players can toggle auto-mining on/off using a keybind, configure mining speed multipliers, and choose whether to mine through entities. Features intelligent tool detection, configurable mining delays, and full survival/creative mode compatibility. Includes persistent configuration and real-time toggle feedback.

I’ll create a complete auto-mining mod with configurable options and entity bypass functionality.


Created complete AutoMiner mod with:

  • Keybind toggle (R key) to enable/disable auto-mining

  • Entity bypass - raycasts through entities when ignoreEntities is true

  • Configurable mining speed via miningSpeedMultiplier in config

  • Mining delay option for tick-based throttling

  • Persistent config saved to config/autominer.json

  • Actionbar feedback when toggling on/off

  • Works in survival and creative modes

Config options (config/autominer.json):

  • miningSpeedMultiplier: 1.5 (50% faster mining)

  • ignoreEntities: true (mine through entities)

  • miningDelay: 0 (ticks between mining attempts)

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 335
src/main/java/com/autominer/AutoMiner.java
package com.autominer;

import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AutoMiner implements ModInitializer {
	public static final String MOD_ID = "autominer";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

	@Override
	public void onInitialize() {
		LOGGER.info("AutoMiner initialized!");
	}
}