system69_xd

can you make a java fabric mod for minecraft version 1.21.11 that has a configurable GUI starting with U and inside you can toggle on and stuff and theres 3 first is SWAP which makes it so when you are falling and you have a mace in your inventory and you hit someone it doesnt hit but it waits and in that it swaps to a mace in one tick and then hits but not the packet but an actual hit through the mod and second is ely which is kind of the same but when you hit someone with the mace which flying with an ely instead of hitting it and doing nothing it doesnt click and waits and in the wait it swaps to ely with the mod not the packet and then maces and 3 is if you have an axe in your inventory you need to have an axe to make it work so if you do every tick is checks if you are aiming at someone and they have a shield so when there is and you hit the person it waits and swaps to axe then clicks and back all in one 2 ticks or smt

Kodari AI
KodariAug 25 at 5:09 pm 2
CombatSwapUtility
A Fabric mod for Minecraft 1.21.11 adding a configurable GUI (opened with U key) with three toggleable combat features. SWAP automatically swaps to a mace in inventory before attacking while falling, ensuring a real mace hit. ELY swaps to an elytra mid-air before mace striking to trigger the smash effect. AXE detects when aiming at a shield-using player and swaps to an axe before hitting, then returns to the previous item, all within two ticks.
  1. Create the Fabric 1.21.11 project structure and metadata.

  2. Add a YACL settings screen opened with U, with toggles for SWAP, ELY, and AXE.

  3. Implement client-side one-/two-tick weapon switching and real interaction retries, including shield and elytra cases.

  4. Add required assets, translations, and default configuration.

The initial files are in place. I’m correcting two 1.21.11-specific details before stopping: the modern three-argument keybinding constructor and cancellation while an attack is already queued.Created a Fabric 1.21.11 client mod named Kodari Combat Assist.

  1. Press U to open the configurable YACL GUI.

  2. Added toggles for:

    • SWAP — switches to a mace while falling, attacks on the next tick, then restores the previous item.

    • ELY — equips an elytra before attacking an elytra-flying target, then restores the chest item.

    • AXE — switches to an axe against shield-blocking targets, attacks, and restores the previous item.

  3. Added persistent JSON configuration at:

    • .minecraft/config/kodari-combatassist.json

  4. Added Fabric metadata, split client source sets, mixin attack interception, translations, Gradle setup, and the required YACL manifest.kod.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
13 523
src/main/java/com/kodari/combatassist/KodariCombatAssist.java
package com.kodari.combatassist;

import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class KodariCombatAssist implements ModInitializer {
    public static final String MOD_ID = "kodari_combatassist";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {
    }
}