ignleonardowashere

Develop a downloadable Minecraft Java mod (1.21.1 Fabric) that introduces a powerful weapon called "Cat's Mace" featuring rainbow text. This mace grants players a dash ability and the capability to stack enchantments, delivering lightning-like attacks with density 6, breach 5, unbreaking 3, mending 1 and wind burst 1. lightning effects, capable of one-shotting enemies on a 5-second cooldown. Additionally, the mace provides a Strength 3 buff to ensure the enemy dies Quickly.

Kodari AI
KodariJul 5 at 3:27 pm 46

I’ll build a Fabric 1.21.11 mod adding the legendary “Cat’s Mace”.

CatsMace
A Fabric 1.21.11 mod adding the legendary Cat's Mace, a rare weapon with a shimmering rainbow-colored name. Right-click to unleash a forward dash on a 3-second cooldown. On hit, it channels a lightning strike that instantly executes the target and grants the wielder Strength III, all on a 5-second cooldown. The mace permanently carries stacked, beyond-vanilla enchantments: Density VI, Breach V, Unbreaking III, Mending I, and Wind Burst I, self-repairing these enchantments if ever stripped.

Mod complete: Cat’s Mace (item catsmace:cats_mace).

  • Rainbow name — baked in as a default CUSTOM_NAME component, letter-by-letter colored + bold.

  • Dash — right-click, 3s cooldown, launches the player forward with cloud particles + sound.

  • One-shot lightning attack — hitting any living entity spawns a lightning bolt, deals Float.MAX_VALUE damage (guaranteed kill through armor), and grants the wielder Strength III for 5s. Cooldown: 5s, tracked per-player.

  • Stacked enchantments — Density VI, Breach V, Unbreaking III, Mending I, Wind Burst I are enforced on the stack (beyond vanilla max levels) and self-heal every second via a server tick check, so they can’t be stripped off.

  • Added to the Combat creative tab.

No external libraries used, so no manifest.kod needed — the download will be a plain JAR.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
11 342
src/main/java/com/catsmace/CatsMace.java
package com.catsmace;

import com.catsmace.event.ModEvents;
import com.catsmace.item.ModItems;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.item.ItemGroups;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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

    @Override
    public void onInitialize() {
        ModItems.initialize();
        ModEvents.register();

        ItemGroupEvents.modifyEntriesEvent(ItemGroups.COMBAT).register(entries -> {
            entries.add(ModItems.CATS_MACE);
        });
    }
}