Saad bnddn

i want to create a mod with some new anime swords with special attacks and crafting them and a system who help you to upgrade you health and string and speed and adding some new abillyties and skills

Kodari AI
KodariOct 24 at 3:01 pm 15
AnimeBladeAscension
AnimeBladeAscension introduces a collection of iconic anime-inspired swords, each with unique special attacks triggered by charge mechanics. Players forge these legendary blades through custom crafting recipes requiring rare materials. The mod adds a comprehensive attribute upgrade system allowing players to permanently enhance health, strength, and movement speed using upgrade orbs obtained from combat. A skill tree system unlocks active abilities such as dash strikes, elemental bursts, and defensive auras. Each sword possesses distinct attack patterns, particle effects, and cooldown-based ultimate moves. The progression system encourages exploration and combat mastery, with visual feedback through custom HUD elements and status indicators.
  1. Set up a NeoForge 1.21.1 mod with a persistent player-upgrade system.

  2. Add three craftable swords with distinct right-click special attacks and a craftable upgrade core.

  3. Add the required item textures, models, recipes, and names for survival play.

Created Bladebound: Awakened Blades for NeoForge 1.21.1.

  • Ember Katana: right-click for a fiery area attack.

  • Storm Katana: right-click for an area attack that knocks enemies back.

  • Void Katana: right-click for a forward-cone slash.

  • Each ability has a 5-second cooldown. The swords have diamond-tier stats and durability.

  • Awakening Core: craft with 4 gold ingots, 4 amethyst shards, and 1 blaze powder. Right-click to permanently gain +2 max health, +0.5 attack damage, and +0.01 movement speed; each core is consumed, up to 10 upgrades.

  • Craft each katana from a diamond sword, an Awakening Core, and a sword-specific ingredient: blaze rod, iron ingot, or ender pearl.

The three swords have custom textures. The core uses the vanilla amethyst shard icon because texture generation ran out of available credits.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
18 380
src/main/java/com/kodari/bladebound/BladeboundMod.java
package com.kodari.bladebound;

import com.mojang.serialization.Codec;
import net.minecraft.network.codec.ByteBufCodecs;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Tiers;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.attachment.AttachmentType;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredItem;
import net.neoforged.neoforge.registries.DeferredRegister;
import net.neoforged.neoforge.registries.NeoForgeRegistries;

@Mod(BladeboundMod.MOD_ID)
public class BladeboundMod {
    public static final String MOD_ID = "bladebound";

    private static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MOD_ID);
    private static final DeferredRegister<AttachmentType<?>> ATTACHMENTS = DeferredRegister.create(NeoForgeRegistries.Keys.ATTACHMENT_TYPES, MOD_ID);

    public static final DeferredHolder<AttachmentType<?>, AttachmentType<Integer>> UPGRADE_LEVEL = ATTACHMENTS.register(
            "upgrade_level",
            () -> AttachmentType.builder(() -> 0).serialize(Codec.INT).sync(ByteBufCodecs.VAR_INT).build()
    );

    public static final DeferredItem<AnimeSwordItem> EMBER_KATANA = ITEMS.registerItem(
            "ember_katana",
            properties -> new AnimeSwordItem(Tiers.DIAMOND, properties, AnimeSwordItem.Ability.EMBER)
    );
    public static final DeferredItem<AnimeSwordItem> STORM_KATANA = ITEMS.registerItem(
            "storm_katana",
            properties -> new AnimeSwordItem(Tiers.DIAMOND, properties, AnimeSwordItem.Ability.STORM)
    );
    public static final DeferredItem<AnimeSwordItem> VOID_KATANA = ITEMS.registerItem(
            "void_katana",
            properties -> new AnimeSwordItem(Tiers.DIAMOND, properties, AnimeSwordItem.Ability.VOID)
    );
    public static final DeferredItem<AwakeningCoreItem> AWAKENING_CORE = ITEMS.registerItem(
            "awakening_core",
            AwakeningCoreItem::new
    );

    public BladeboundMod(IEventBus modEventBus) {
        ITEMS.register(modEventBus);
        ATTACHMENTS.register(modEventBus);
        modEventBus.addListener(this::addCreativeItems);
    }

    private void addCreativeItems(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey().equals(CreativeModeTabs.COMBAT)) {
            event.accept(EMBER_KATANA.get());
            event.accept(STORM_KATANA.get());
            event.accept(VOID_KATANA.get());
        }
        if (event.getTabKey().equals(CreativeModeTabs.INGREDIENTS)) {
            event.accept(AWAKENING_CORE.get());
        }
    }
}