Rafi Carss

do me a mod to add to mods that do auto dripstone

Kodari AI
KodariSep 12 at 9:01 pm 1
AutoDripstoneMod
Creates a Minecraft mod that automatically generates and places dripstone formations. The mod monitors for suitable cave environments and automatically spawns dripstone stalactites and stalagmites over time. It includes configurable spawn rates, size ranges, and biome restrictions. The mod integrates with existing mod loaders and provides a simple API for other mods to trigger dripstone generation programmatically. Players can toggle auto-generation per world and adjust generation frequency through in-game settings.
  1. Create a Fabric 1.20.1 mod project with a craftable Dripstone Harvester block.

  2. Make the harvester periodically break the bottom block of a downward pointed-dripstone column and drop the item for hopper collection.

  3. Add registration, recipe, block/item models, loot data, and build metadata.

Created a Fabric 1.20.1 mod called Auto Dripstone.

Features:

  • Adds a craftable Dripstone Harvester block.

  • Automatically breaks downward-pointing dripstone placed directly above it every second.

  • Drops the harvested pointed dripstone for hopper collection.

  • Includes block registration, crafting recipe, item model, block model, language entry, and loot table.

Recipe:

Plain Text
IPI
PHP
IRI
  • I = Iron Ingot

  • P = Pointed Dripstone

  • H = Hopper

  • R = Redstone

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
LICENSE
settings.gradle
Code
13 263
src/main/java/com/kodari/autodripstone/AutoDripstone.java
package com.kodari.autodripstone;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;

public class AutoDripstone implements ModInitializer {
    public static final String MOD_ID = "autodripstone";

    public static final Block DRIPSTONE_HARVESTER = Registry.register(
            Registries.BLOCK,
            id("dripstone_harvester"),
            new DripstoneHarvesterBlock(AbstractBlock.Settings.copy(Blocks.IRON_BLOCK)
                    .strength(3.5f)
                    .requiresTool())
    );

    public static final Item DRIPSTONE_HARVESTER_ITEM = Registry.register(
            Registries.ITEM,
            id("dripstone_harvester"),
            new BlockItem(DRIPSTONE_HARVESTER, new FabricItemSettings())
    );

    @Override
    public void onInitialize() {
    }

    public static Identifier id(String path) {
        return new Identifier(MOD_ID, path);
    }
}