4k_p

**"Create a Minecraft 1.21.4 mod that automates a 'Shield Breaker to Mace Smash' combo.

Logic Requirements:

Activation Condition: The player must have both an Axe and a Mace in their hotbar. The mod only activates if the player is in a falling state (fallDistance > 1.5).

The Combo Sequence: When falling and looking directly at an entity holding a raised shield:

Step A: Automatically switch to the Axe and perform a strike to disable the shield.

Step B: Immediately switch to the Mace and perform the Smash Attack.

Speed & Reach: The sequence should execute as fast as the game engine allows (ignoring standard attack cooldowns for the combo) but MUST stay within the player's natural 3-block reach. Do not use reach hacks or 'teleport' hits.

Fail-Safe: If the target is not blocking, skip Step A and proceed directly to the Mace Smash.

Manual Control: The player must maintain manual aim; if the crosshair leaves the target's hitbox, the sequence stops.

Target Priority: Use EntityRayTrace to ensure the mod only triggers on the specific entity the player is aiming at."**

Kodari AI
KodariFeb 2 at 4:45 am 10,300 (v2)

I’ll create a Fabric 1.21.4 mod that automates the Shield Breaker to Mace Smash combo with precise entity targeting and fall-state activation.

ShieldBreakerCombo
Automates the shield-break-to-mace-smash combo for advanced combat. When falling onto a shield-blocking enemy, automatically switches to axe for shield disable, then to mace for devastating smash damage. Requires both weapons in hotbar, maintains 3-block reach limit, and respects manual aim control. Skips shield break if target is not blocking.

Mod created successfully!

Core Features:

  • ✓ Fall-state activation (fallDistance > 1.5)

  • ✓ Ray trace entity targeting (3-block max reach)

  • ✓ Shield detection with automatic skip logic

  • ✓ Instant combo execution bypassing attack cooldowns

  • ✓ Continuous aim tracking with auto-abort

  • ✓ State machine for reliable multi-step execution

Build: Run ./gradlew build to compile the mod JAR.

The combo triggers automatically when falling onto an enemy while having both axe and mace in hotbar. If they’re blocking, it executes axe→mace. If not blocking, it skips straight to mace smash.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
README.md
settings.gradle
Code
7 417
src/main/java/com/shieldbreaker/ShieldBreakerCombo.java
package com.shieldbreaker;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.client.MinecraftClient;

public class ShieldBreakerCombo implements ClientModInitializer {
    
    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (client.player != null && client.world != null) {
                ComboHandler.tick(client);
            }
        });
    }
}