Can you make a mod that mines a 5x5 hole anytime you break a block that is client side
KodariAug 26 at 9:12 pm 1
ClientVeinMiner
A client-side Minecraft Fabric mod that automatically mines a 5x5 area whenever the player breaks any block. The mod intercepts block break events on the client, calculates the surrounding 5x5 grid centered on the broken block, and sends additional break requests for all blocks within that area. It respects player reach distance, checks block hardness, and provides configurable options for toggling the feature and adjusting the mining radius. Designed for Fabric 1.21.1, the mod uses client-side networking to simulate multi-block mining without server modifications, making it compatible with vanilla servers.
Create a Fabric 1.21.11 client-only project with split main/client source sets.
Add a client mixin that expands each successful block break into a 5×5 plane centered on the broken block.
Add the Fabric metadata and Gradle configuration required to build the mod.
Created a client-only Fabric 1.21.11 mod.
Breaking a block now attempts to break a 5×5 plane centered on it.
The plane is oriented perpendicular to the face you are mining.
Includes recursion protection so adjacent breaks do not trigger additional 5×5 expansions.
Uses the required split src/main / src/client structure.
Servers still control permissions and may reject client-side break requests.
can you make a 3x3 instead of a 5x5
KodariAug 26 at 9:18 pm 1
Changed the mining area from 5×5 to 3×3. The center block is still excluded from the additional break requests.
Kodari can make mistakes. Review important code before using.
package com.kodari.fivebyfive;
import net.fabricmc.api.ModInitializer;
public final class FiveByFiveMod implements ModInitializer {
@Override
public void onInitialize() {
}
}