Hamza Kahraman

Create a client-side Fabric mod for Minecraft 1.20+ (using Fabric API and RenderSystem).

Feature Requirements:

Add a custom client-side Terraforming Brush tool item.

When holding the tool and clicking in Survival mode, do NOT place or break real world blocks on the server/world file.

Run a sphere/brush algorithm on the targeted area to calculate terrain changes and display them purely as visual ghost-block/hologram overlays (similar to Litematica schematic renderings) directly in the client world.

Easy Place Feature: Implement an 'Easy Place' mode (like in Litematica). When the player holds right-click and sweeps their cursor over the ghost-block hologram in Survival, automatically select the matching block type from the player's inventory/hotbar and send the placement packet to build it instantly at the ghost block's coordinates.

Kodari AI
KodariOct 12 at 8:19 pm 10
TerraformGhostBrush
A client-side Fabric mod for Minecraft 1.20+ that adds a Terraforming Brush tool. When held and clicked in Survival mode, it calculates a sphere/brush-shaped terrain modification and displays it as visual ghost-block hologram overlays without altering the real world. Includes an Easy Place mode where holding right-click and sweeping over holograms automatically selects the matching block from the player's inventory and sends placement packets to build instantly at the ghost coordinates, enabling efficient terrain editing while preserving the server world integrity.
  1. Register the brush and its survival recipe/assets.

  2. Add client-only ghost sphere rendering and block-interaction suppression.

  3. Implement Easy Place by selecting an inventory block and sending normal placement interactions.

Created a Fabric 1.21.11 mod with a Terraforming Brush, listed in Tools & Utilities and craftable shapelessly from 1 iron ingot + 1 stick.

Aim at a block while holding the brush to preview a green radius-2 sphere using a full-cube block from your inventory. The brush cancels normal block breaking and use; the preview alone does not change the world. Hold right-click while aiming at a ghost block to trigger Easy Place, which sends a normal placement interaction and therefore does change the world.

The item is registered content, so multiplayer servers need the mod installed too.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 345
src/main/java/com/kodari/terraformingbrush/TerraformingBrushMod.java
package com.kodari.terraformingbrush;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.util.Identifier;

public class TerraformingBrushMod implements ModInitializer {
    public static final String MOD_ID = "terraformingbrush";
    public static final Item TERRAFORMING_BRUSH = registerBrush();

    @Override
    public void onInitialize() {
        RegistryKey<ItemGroup> toolsGroup = RegistryKey.of(
                RegistryKeys.ITEM_GROUP,
                Identifier.ofVanilla("tools_and_utilities")
        );
        ItemGroupEvents.modifyEntriesEvent(toolsGroup).register(entries -> entries.add(TERRAFORMING_BRUSH));
    }

    private static Item registerBrush() {
        Identifier id = Identifier.of(MOD_ID, "terraforming_brush");
        RegistryKey<Item> key = RegistryKey.of(RegistryKeys.ITEM, id);
        return Registry.register(Registries.ITEM, id, new Item(new Item.Settings().registryKey(key)));
    }
}