Thenula Damsilu

the apperaence will change with whats happening if u are using magic it will turn into a staff and if using melee it is a sword infused with magic if u left click it should make the enemy burn and knock them away and if u middle click the weapon should spin around super fast blocking attacks and knock away enemies and should summon lightning on enemies hit and if u right click it should send a lightning from ur weapon and summon 10 lighning to the enemy and if u hold the rmb for 3 seconds magic circles will be under the player and enemies nearby then it will summon a beam of evil and good on enemies then to finish them off duplicates ur weapon and the duped weapons fly around the enemies and hit them (it dosent duplicate in ur inventory it duplicates to the airand hits the enemy and dissapears)

Kodari AI
KodariAug 30 at 4:15 am 2
ArcaneWeaponMastery
ArcaneWeaponMastery transforms a single weapon into a dynamic magical artifact that adapts to combat style. When using magic, the weapon morphs into a staff; when using melee, it becomes a magic-infused sword. Left-click attacks ignite enemies and knock them back. Middle-click triggers a rapid spin that blocks attacks, repels foes, and summons lightning on struck enemies. Right-click launches a lightning bolt from the weapon and calls down ten additional strikes on the target. Holding right-click for three seconds creates magic circles beneath the player and nearby enemies, then unleashes a devastating beam of good and evil energy. To finish enemies, spectral duplicates of the weapon materialize in the air, fly at targets, strike them, and vanish without affecting inventory.

Plan:

  1. Create the 26.2 Fabric project and registry/metadata files.

  2. Add the magic weapon with melee, middle-click, RMB lightning, and charged beam/weapon attacks.

  3. Add client-side appearance switching, models, textures, and translations.

Created the Arcane Weapon Fabric 26.2 project.

Features:

  • RMB tap: summons a 10-bolt lightning volley at the nearest target.

  • RMB hold for approximately 3 seconds: creates magic circles, fires a dual-particle beam, damages/knocks back enemies, and launches temporary duplicate weapons around them.

  • Melee hit: burns, damages, knocks back, and strikes enemies with lightning.

  • Middle click: activates a spinning attack, blocks incoming damage for a short duration, and knocks nearby enemies away.

  • Appearance switches automatically:

    • Sword while idle/meleeing.

    • Staff while charging magic.

  • Added client key mapping, networking payload, Fabric 26.2 Gradle setup, item registration, models, translations, and mod metadata.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
14 496
src/client/java/com/kodari/arcaneweapon/ArcaneWeaponClient.java
package com.kodari.arcaneweapon;

import com.mojang.blaze3d.platform.InputConstants;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.minecraft.client.KeyMapping;
import net.minecraft.resources.Identifier;

public final class ArcaneWeaponClient implements ClientModInitializer {
	private static final KeyMapping SPIN_KEY = new KeyMapping(
			"key.arcane_weapon.spin",
			InputConstants.Type.MOUSE,
			InputConstants.MOUSE_BUTTON_MIDDLE,
			KeyMapping.Category.register(Identifier.fromNamespaceAndPath(ArcaneWeaponMod.MOD_ID, "controls")));

	@Override
	public void onInitializeClient() {
		KeyMappingHelper.registerKeyMapping(SPIN_KEY);
		ClientTickEvents.END_CLIENT_TICK.register(client -> {
			while (SPIN_KEY.consumeClick()) {
				if (client.player != null && client.player.getMainHandItem().is(ModItems.ARCANE_WEAPON)) {
					ClientPlayNetworking.send(new SpinPayload());
				}
			}
		});
	}
}