Ronáldo

create a minecraft fabric mod for version 1.20.1 that adds a special weapon combining a spear and mace. This weapon should have unique combat abilities and custom animations

Kodari AI
KodariOct 5 at 8:10 pm 2
SpearMaceWeapon
A Minecraft Fabric mod for 1.20.1 introducing a hybrid spear-mace weapon with unique combat mechanics. The weapon features a two-part moveset: a piercing thrust attack with extended reach for ranged strikes, and a crushing overhead smash dealing heavy damage with knockback. Custom animations bring the weapon to life, including a charging wind-up, spinning flourish on critical hits, and a special ground-pound ability that creates area-of-effect damage. The mod includes custom textures, sounds, and particle effects, plus balanced crafting recipes using iron, sticks, and rare materials. Players can enchant the weapon with unique modifiers that enhance either thrust or smash capabilities.
  • Set up the Fabric 1.20.1 project and mod metadata.

  • Add a Tempest Lance with a charged spear thrust and a crouch-triggered mace slam.

  • Reuse Minecraft’s trident visuals and spear-use animation; custom animation assets need to be created in Kodari Studio and brought into this project through a workspace.

Created the Fabric 1.20.1 mod with the Tempest Lance: hold and release right-click to charge a piercing thrust; crouch and right-click for an area slam. It includes a crafting recipe and uses Minecraft’s trident visuals.

The abilities have particle effects, and charging uses Minecraft’s built-in spear animation. Custom animation assets must be created in Kodari Studio, then brought into the project through a workspace.

Ronáldo

fix the files

Kodari AI
KodariOct 5 at 8:16 pm 1

I reviewed the generated files, but there’s no specific error or broken behavior to target, and I can’t confirm a build failure from inspection alone. Paste the compile error or describe what isn’t working, and I’ll fix the relevant files.

Ronáldo

ok

Kodari AI
KodariOct 5 at 8:23 pm 1

Send the compile error or describe what isn’t working whenever you’re ready.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
9 275
src/main/java/com/kodari/spearmace/SpearMaceMod.java
package com.kodari.spearmace;

import net.fabricmc.api.ModInitializer;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;

public final class SpearMaceMod implements ModInitializer {
    public static final String MOD_ID = "spear_mace";
    public static final Item TEMPEST_LANCE = Registry.register(
            Registries.ITEM,
            new Identifier(MOD_ID, "tempest_lance"),
            new TempestLanceItem(new Item.Settings().maxDamage(1800))
    );

    @Override
    public void onInitialize() {
    }
}