arnas Balčiūnas

a drill like from Create Ore Excavation

Kodari AI
KodariOct 18 at 9:46 am 9
DrillExcavation
DrillExcavation adds a powerful drill tool to Minecraft NeoForge 1.21.1, inspired by Create's Ore Excavation. Players craft a specialized drill that mines in a configurable 3x3 area when breaking blocks. The drill supports vein-mining for ores, automatically excavating connected ore blocks within a configurable radius. It includes durability management, enchantment compatibility, and visual particle effects during excavation. The mod provides configurable settings for drill speed, area size, ore radius, and durability costs. Custom tooltips display remaining durability and excavation statistics. The drill integrates with vanilla mining mechanics, respects tool requirements, and works with all block types including ores, stone, and deepslate variants.
  1. Add a redstone-powered ore-drill block that periodically produces depth-based resources.

  2. Register its block, item, and block entity, then add its texture, model, recipe, loot, and name.

Created Deep Drill, a redstone-powered machine that produces resources based on its Y-level: copper at Y 32+, iron at Y 0–31, gold at Y -1 to -32, redstone at Y -33 to -56, and diamonds below Y -56. Output speeds vary by depth, with diamonds taking the longest.

The Ore Drill is craftable from iron ingots, redstone, a diamond, and a furnace. It’s listed in the Building Blocks tab and drops itself when mined with an iron-tier pickaxe. Added custom block textures, models, and the NeoForge 1.21.1 project setup.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
mod.py
settings.gradle
Code
19 296
src/main/java/com/kodari/deepdrill/DeepDrillMod.java
package com.kodari.deepdrill;

import net.minecraft.world.item.CreativeModeTabs;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;

@Mod(DeepDrillMod.MOD_ID)
public final class DeepDrillMod {
    public static final String MOD_ID = "deepdrill";

    public DeepDrillMod(IEventBus modEventBus) {
        DeepDrillContent.register(modEventBus);
        modEventBus.addListener(this::addCreative);
    }

    private void addCreative(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey() == CreativeModeTabs.BUILDING_BLOCKS) {
            event.accept(DeepDrillContent.ORE_DRILL_ITEM.get());
        }
    }
}