only4mee.
📎 1 file 1,978 chars
📄
pasted-code-1773748987300.txt
txt 52 lines
▶
Core Concept
The first mace ever crafted on the server becomes a custom legendary weapon named “Mjolnir”.
This should trigger only once globally (server-wide).
All other maces crafted afterward remain completely vanilla.
Mjolnir (Legendary First Mace) Features
1. Unique Identity
Name: Mjolnir
Glowing enchanted effect.
Custom lore (e.g., “The first mace forged, blessed with fire and destruction.”)
Cannot be recreated, duplicated, or obtained again unless reset by admin.
2. Creation Animation
When the first mace is crafted:
Spawn dramatic effects around the player:
Fire, lava, smoke, and spark particles.
Lightning strike (visual effect only).
Play powerful sounds (explosion, blaze, thunder).
Broadcast to the entire server:
“⚡ The legendary Mjolnir has been forged!”
Optional delay before giving the item to enhance the animation.
3. One-Shot Ability
Right-click ability:
Launch a fire-based attack (fireball, flame wave, or strike).
Has a one-shot kill ability (configurable chance or conditions).
Include:
Cooldown system (configurable).
Visual flame trail/projectile effects.
4. Enhanced Fire Aspect
On every hit:
Applies strong fire damage (stronger than normal Fire Aspect).
Burns enemies longer with extra damage over time.
Optional:
Small area fire damage to nearby targets.
5. Restrictions
Only one Mjolnir exists on the server.
If dropped, traded, or lost, it still remains the only one.
Prevent duplication glitches or crafting exploits.
Data Persistence
Store whether Mjolnir has already been crafted.
Must persist through server restarts (config or data file).
Commands
/mjolnir give  – Give Mjolnir manually.
/mjolnir reset – Reset system to allow a new first mace.
/mjolnir reload – Reload config.
Configuration (config.yml)
One-shot ability chance
Cooldown duration
Fire damage multiplier
Enable/disable animation
Broadcast message customization
Compatibility
Supports latest Spigot/Paper versions.
Optimized for performance (no lag-heavy effects).
Kodari AI
KodariMar 17 at 12:05 pm 20,338 (v2)

I’ll create a legendary Mjolnir plugin that transforms the first mace crafted on the server into a powerful weapon with fire abilities and one-shot potential.

MjolnirPlugin
Transform the first mace ever crafted on the server into Mjolnir, a legendary weapon with fire-based abilities. Features dramatic creation animation with particles and lightning, a right-click fire attack with one-shot potential, enhanced fire aspect on melee hits, and full persistence to ensure only one Mjolnir exists. Includes admin commands for manual control and extensive configuration options.

Analysis

  • First mace crafted becomes “Mjolnir” with custom abilities

  • Track creation globally with persistence across restarts

  • Fire-based right-click ability with one-shot chance and cooldown

  • Enhanced fire aspect on melee hits with area damage

  • Admin commands for manual control

Plugin created! Mjolnir transforms the first mace crafted into a legendary weapon with dramatic effects, fire-based abilities with cooldown and one-shot potential, enhanced melee combat with area damage, and full persistence. Admin commands allow manual control and system reset.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 750
src/main/java/com/mjolnir/MjolnirPlugin.java
package com.mjolnir;

import com.mjolnir.command.MjolnirCommand;
import com.mjolnir.listener.AbilityListener;
import com.mjolnir.listener.CombatListener;
import com.mjolnir.listener.CraftListener;
import com.mjolnir.manager.AbilityManager;
import com.mjolnir.manager.ConfigManager;
import com.mjolnir.manager.MjolnirManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MjolnirPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private MjolnirManager mjolnirManager;
    private AbilityManager abilityManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.mjolnirManager = new MjolnirManager(this);
        this.abilityManager = new AbilityManager(this);
        
        Bukkit.getPluginManager().registerEvents(new CraftListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new AbilityListener(this), this);
        
        MjolnirCommand command = new MjolnirCommand(this);
        getCommand("mjolnir").setExecutor(command);
        getCommand("mjolnir").setTabCompleter(command);
        
        getLogger().info("MjolnirPlugin enabled!");
    }
    
    @Override
    public void onDisable() {
        if (mjolnirManager != null) {
            mjolnirManager.saveData();
        }
        getLogger().info("MjolnirPlugin disabled!");
    }
}