Renz Ogahayon

Arc 1 Core Weapons Wand of Illusion Abilities: Disguises you as a mob or mimics a player you have killed.

Texture / Model: Styled as a mystical, ornate wand or staff with glowing or mysterious magical details. Bloodlust Abilities: A sword that grows stronger as you kill players. Unlocks kill-based upgrades like submerging in a pool of blood, a player-hook/grapple, and permanent speed and strength buffs.

Texture / Model: A dark, crimson-stained blade dripping with blood-red accents. Vulcan's Crossbow Abilities: A heavy crossbow that converts standard arrows into explosive, flaming projectiles.

Texture / Model: Designed in a distinct dragon-shaped mechanical cross-bow frame with fiery orange and dark metal highlights. Frost Scythe Abilities: Command of Ice—lets you conjure and throw ice blocks, plus a Scythe Throw ability that freezes enemies on impact.

Texture / Model: A large, icy-blue reaper's scythe with crystalline frost details along the blade. Bone Blade Abilities: Skeletal Leap (lets you leap into and ram players) and Bone Cage (stuns targets inside a cage of bones).

Texture / Model: Crafted from pale, prehistoric/fossilized monster bones shaped into a jagged sword. Season 2 / Later Arc Legendaries Ancient Blade Abilities: Netherite sword with Sharpness 7, Looting 3, and Sweeping Edge 3. Features kill-based tiers: Deep Connection (Speed I on sculk), Echolocation (crouch pulse to reveal nearby players), Swift, Presence (applies Darkness and soul particles), Tightened Grip (Strength II), and Unyielding Darkness (launches a Sculk Catalyst projectile that bursts into Sonic Booms).

Texture / Model: A dark, sculk-infested Netherite blade glowing with teal sculk veins and soul shards.

AltarSMP Wiki +1 Dragonrend Abilities: Hypersonic slash teleports, cooldown reduction, and Infinite Void (slows enemies in a radius).

Texture / Model: An imposing, dragon-themed weapon crackling with void or draconic energy. Wither Symbiote Abilities: Infection (3-block radius detonation and weakness) and Rampage (lifesteal, speed, and health sustain).

Texture / Model: A decaying, wither-skeletal weapon wrapped in dark, writhing wither-rose/skull growths. Tidebreaker Abilities: Stormcall (radius lightning strikes) and Rising Tide (launches enemies with a massive water shockwave).

Texture / Model: An ocean-blue trident or spear accented with sea foam and marine artifacts. Omen Abilities: Vaulting, spell/conjuring mechanics, and special projectile attacks.

Texture / Model: A sharp, ominous ritual spear with dark omen symbols.

Knightfall Abilities: A mace that levels up with kills, unlocking cloak and heavy-impact shockwave abilities.

Texture / Model: A heavy medieval mace with dark iron plating and glowing rune markings. Eclipse Abilities: Day/night shifting mechanics—Daytime grants Solar Inferno and Solar Leap; Nighttime grants Moonlit Stars and Moonlit Shadows.

Texture / Model: A dual-toned blade or relic split visually between a blazing golden sun aesthetic and a dark, starry lunar aesthetic. Echo Abilities: Sonic Blast and Echo Shriek (Warden-themed sonic wave attacks).

Texture / Model: A sonic-themed weapon embedded with sculk shriekers and echo crystal accents.

Kodari AI
KodariNov 7 at 1:50 am 47
ArcWeapons
ArcWeapons is a Fabric mod for Minecraft 1.21.1 that introduces a collection of legendary weapons with unique abilities. It features core weapons like Wand of Illusion, Bloodlust, Vulcan's Crossbow, Frost Scythe, and Bone Blade, each with distinct combat mechanics. Season 2 legendaries include Ancient Blade with sculk-based kill tiers, Dragonrend with teleport slashes, Wither Symbiote with infection detonations, Tidebreaker with storm calling, Omen, Knightfall with leveling mace mechanics, Eclipse with day/night shifting abilities, and Echo with warden-themed sonic attacks. Each weapon has custom textures and models, offering players diverse strategic combat options.
  1. Register all 13 weapons with melee stats, crafting access, and right-click abilities, including kill-tier progression.

  2. Add each weapon’s distinct texture, item assets, names, recipes, and Fabric metadata.

Created the Arc Weapons Fabric 1.21.11 mod with 13 registered weapons, survival recipes, combat-tab entries, durability and attack stats, item assets, and right-click abilities. Bloodlust, Ancient Blade, and Knightfall gain kill-based upgrades; those kill counts currently reset when the server restarts.

Survival recipes: Wand of Illusion—amethyst shards, ender pearl, blaze rod; Bloodlust—diamond sword, redstone block, nether wart; Vulcan’s Crossbow—crossbow, blaze powder, fire charge; Frost Scythe—packed ice, blue ice, diamond hoe, blaze rod; Bone Blade—bone blocks and iron sword; Ancient Blade—sculk catalyst, echo shard, netherite sword; Dragonrend—ender eye, dragon breath, diamond sword, blaze rod; Wither Symbiote—wither roses, wither skeleton skull, netherite sword; Tidebreaker—prismarine shard, heart of the sea, trident; Omen—obsidian, ender pearl, blaze rod; Knightfall—iron blocks, echo shard, mace; Eclipse—amethyst shards, gold block, golden sword; Echo—sculk shriekers and echo shard.

Some abilities are gameplay approximations rather than exact versions of the descriptions: the wand grants invisibility rather than a mob/player disguise; Vulcan’s fires explosive projectiles rather than converting arrows; Frost Scythe freezes nearby players rather than throwing ice blocks; Bone Blade stuns nearby players without building a cage; Ancient Blade doesn’t have the requested enchantments; Wither Symbiote lacks lifesteal; and Tidebreaker doesn’t call lightning. Also, the texture generator ran out of credits after 11 custom textures, so Omen and Knightfall use vanilla trident and mace textures.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
56 633
src/main/java/com/kodari/arcweapons/ArcWeapons.java
package com.kodari.arcweapons;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.function.Consumer;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.entity.event.v1.ServerLivingEntityEvents;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ToolMaterial;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraft.entity.projectile.FireballEntity;

public class ArcWeapons implements ModInitializer {
    public static final String MOD_ID = "arcweapons";

    private static final List<Item> ITEMS = new ArrayList<>();
    private static final Map<UUID, Map<Item, Integer>> KILLS = new HashMap<>();

    private static final Item WAND_OF_ILLUSION = register("wand_of_illusion", ToolMaterial.DIAMOND, 3.0F, -2.4F, 100);
    private static final Item BLOODLUST = register("bloodlust", ToolMaterial.DIAMOND, 4.0F, -2.4F, 100);
    private static final Item VULCANS_CROSSBOW = register("vulcans_crossbow", ToolMaterial.IRON, 2.5F, -2.6F, 80);
    private static final Item FROST_SCYTHE = register("frost_scythe", ToolMaterial.DIAMOND, 4.0F, -2.6F, 100);
    private static final Item BONE_BLADE = register("bone_blade", ToolMaterial.IRON, 3.0F, -2.4F, 80);
    private static final Item ANCIENT_BLADE = register("ancient_blade", ToolMaterial.NETHERITE, 5.0F, -2.4F, 100);
    private static final Item DRAGONREND = register("dragonrend", ToolMaterial.NETHERITE, 4.0F, -2.4F, 80);
    private static final Item WITHER_SYMBIOTE = register("wither_symbiote", ToolMaterial.NETHERITE, 4.5F, -2.4F, 100);
    private static final Item TIDEBREAKER = register("tidebreaker", ToolMaterial.DIAMOND, 4.0F, -2.6F, 100);
    private static final Item OMEN = register("omen", ToolMaterial.IRON, 3.5F, -2.4F, 80);
    private static final Item KNIGHTFALL = register("knightfall", ToolMaterial.NETHERITE, 5.0F, -2.8F, 120);
    private static final Item ECLIPSE = register("eclipse", ToolMaterial.DIAMOND, 4.0F, -2.4F, 80);
    private static final Item ECHO = register("echo", ToolMaterial.DIAMOND, 3.5F, -2.4F, 80);

    @Override
    public void onInitialize() {
        ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, Identifier.of("minecraft", "combat")))
                .register(entries -> ITEMS.forEach(item -> entries.prepend(item)));

        ServerLivingEntityEvents.AFTER_DEATH.register((entity, damageSource) -> {
            if (!(damageSource.getAttacker() instanceof PlayerEntity killer)) {
                return;
            }

            ItemStack held = killer.getStackInHand(Hand.MAIN_HAND);
            Item weapon = held.isOf(BLOODLUST) ? BLOODLUST
                    : held.isOf(ANCIENT_BLADE) ? ANCIENT_BLADE
                    : held.isOf(KNIGHTFALL) ? KNIGHTFALL
                    : null;
            if (weapon != null) {
                KILLS.computeIfAbsent(killer.getUuid(), ignored -> new HashMap<>()).merge(weapon, 1, Integer::sum);
            }
        });
    }

    private static Item register(String name, ToolMaterial material, float damage, float attackSpeed, int cooldown) {
        RegistryKey<Item> key = RegistryKey.of(RegistryKeys.ITEM, Identifier.of(MOD_ID, name));
        Item.Settings settings = material.applySwordSettings(new Item.Settings().registryKey(key), damage, attackSpeed);
        Item item = new ArcWeaponItem(name, settings, cooldown);
        Item registered = Registry.register(Registries.ITEM, key, item);
        ITEMS.add(registered);
        return registered;
    }

    private static int kills(PlayerEntity player, Item weapon) {
        return KILLS.getOrDefault(player.getUuid(), Map.of()).getOrDefault(weapon, 0);
    }

    private static void addEffect(PlayerEntity player, StatusEffectInstance effect) {
        player.addStatusEffect(effect);
    }

    private static void nearbyPlayers(World world, PlayerEntity source, double radius, Consumer<PlayerEntity> action) {
        if (world instanceof ServerWorld serverWorld) {
            for (var target : serverWorld.getPlayers()) {
                if (target != source && target.distanceTo(source) <= radius) {
                    action.accept(target);
                }
            }
        }
    }

    private static void radialKnockback(World world, PlayerEntity source, double radius, double strength, double lift) {
        nearbyPlayers(world, source, radius, target -> {
            double dx = target.getX() - source.getX();
            double dz = target.getZ() - source.getZ();
            double length = Math.max(0.1, Math.sqrt(dx * dx + dz * dz));
            target.addVelocity(dx / length * strength, lift, dz / length * strength);
        });
    }

    private static void dash(PlayerEntity player, double strength) {
        double yaw = Math.toRadians(player.getYaw());
        player.addVelocity(-Math.sin(yaw) * strength, 0.35, Math.cos(yaw) * strength);
    }

    private static void fireball(World world, PlayerEntity player, double speed, int power) {
        if (world instanceof ServerWorld serverWorld) {
            Vec3d velocity = player.getRotationVec(1.0F).multiply(speed);
            serverWorld.spawnEntity(new FireballEntity(serverWorld, player, velocity, power));
        }
    }

    private static void activate(String name, World world, PlayerEntity player) {
        switch (name) {
            case "wand_of_illusion" -> {
                addEffect(player, new StatusEffectInstance(StatusEffects.INVISIBILITY, 220, 0));
                nearbyPlayers(world, player, 5.0, target -> target.addStatusEffect(new StatusEffectInstance(StatusEffects.BLINDNESS, 40, 0)));
            }
            case "bloodlust" -> {
                int count = kills(player, BLOODLUST);
                addEffect(player, new StatusEffectInstance(StatusEffects.STRENGTH, 160, 0));
                if (count >= 3) {
                    addEffect(player, new StatusEffectInstance(StatusEffects.SPEED, 999999, 0));
                }
                if (count >= 6) {
                    addEffect(player, new StatusEffectInstance(StatusEffects.STRENGTH, 999999, 0));
                    radialKnockback(world, player, 5.0, 1.1, 0.7);
                }
            }
            case "vulcans_crossbow" -> {
                fireball(world, player, 1.8, 2);
                addEffect(player, new StatusEffectInstance(StatusEffects.FIRE_RESISTANCE, 100, 0));
            }
            case "frost_scythe" -> {
                addEffect(player, new StatusEffectInstance(StatusEffects.JUMP_BOOST, 100, 1));
                nearbyPlayers(world, player, 8.0, target -> {
                    target.setFrozenTicks(Math.max(target.getFrozenTicks(), 160));
                    target.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 100, 2));
                });
            }
            case "bone_blade" -> {
                player.addVelocity(0.0, 1.15, 0.0);
                nearbyPlayers(world, player, 4.0, target -> {
                    target.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 80, 4));
                    target.addVelocity(0.0, 0.55, 0.0);
                });
            }
            case "ancient_blade" -> {
                int count = kills(player, ANCIENT_BLADE);
                nearbyPlayers(world, player, 10.0, target -> target.addStatusEffect(new StatusEffectInstance(StatusEffects.DARKNESS, 80, 0)));
                if (count >= 3) {
                    addEffect(player, new StatusEffectInstance(StatusEffects.SPEED, 999999, 0));
                }
                if (count >= 6) {
                    addEffect(player, new StatusEffectInstance(StatusEffects.STRENGTH, 999999, 1));
                    fireball(world, player, 1.5, 2);
                }
            }
            case "dragonrend" -> {
                dash(player, 2.2);
                nearbyPlayers(world, player, 7.0, target -> target.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 100, 1)));
            }
            case "wither_symbiote" -> {
                addEffect(player, new StatusEffectInstance(StatusEffects.STRENGTH, 120, 0));
                addEffect(player, new StatusEffectInstance(StatusEffects.SPEED, 120, 0));
                nearbyPlayers(world, player, 4.0, target -> {
                    target.addStatusEffect(new StatusEffectInstance(StatusEffects.WEAKNESS, 160, 0));
                    target.addStatusEffect(new StatusEffectInstance(StatusEffects.BLINDNESS, 60, 0));
                });
            }
            case "tidebreaker" -> {
                addEffect(player, new StatusEffectInstance(StatusEffects.JUMP_BOOST, 100, 1));
                radialKnockback(world, player, 9.0, 1.8, 0.9);
                nearbyPlayers(world, player, 9.0, target -> target.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 80, 1)));
            }
            case "omen" -> {
                fireball(world, player, 1.5, 1);
                addEffect(player, new StatusEffectInstance(StatusEffects.JUMP_BOOST, 80, 1));
            }
            case "knightfall" -> {
                int count = kills(player, KNIGHTFALL);
                radialKnockback(world, player, 6.0, 1.5, 0.8);
                nearbyPlayers(world, player, 6.0, target -> target.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 100, 1)));
                if (count >= 3) {
                    addEffect(player, new StatusEffectInstance(StatusEffects.INVISIBILITY, 160, 0));
                }
                if (count >= 7) {
                    addEffect(player, new StatusEffectInstance(StatusEffects.STRENGTH, 999999, 0));
                    addEffect(player, new StatusEffectInstance(StatusEffects.SPEED, 999999, 0));
                }
            }
            case "eclipse" -> {
                if (world.getTime() % 24000L < 13000L) {