wthndr
📎 1 file 3,271 chars
📄
MythicWeapons_AI_Prompt.txt
txt 162 lines
▶
COMBINED MINECRAFT PLUGIN AI PROMPT

Create a single Minecraft plugin (Paper/Spigot 1.21.x compatible) that introduces THREE custom weapons with unique abilities, passives, and independent cooldown systems.

PLUGIN NAME: MythicWeapons

WEAPONS INCLUDED:
1. Voidbreaker Axe
2. The Gatling-Bow
3. PowerBlade

----------------------------------------

VOIDBREAKER AXE

Core:
- Netherite Axe
- Name: &0&lVoidbreaker Axe
- Command: /voidaxe (OP only)

Passive (ONLY when holding):
- Resistance I
- Cancel ALL fall damage

Attributes:
- Attack speed = 1.6

Ability 1: VOID SLAM (/voidslam)
- Launch upward then slam down
- AoE damage (20–30, scales with fall height)
- Knockback + explosion effect (no block damage)
- Portal + explosion particles
- Deep bass sound
- Cooldown: 30s

Ability 2: SHADOW BLINK (/voidblink)
- Teleport forward (8–12 blocks)
- Speed II for 3s
- Next hit = DOUBLE damage
- Enderman sound + particles
- Cooldown: 15s

----------------------------------------

THE GATLING-BOW

Core:
- Bow
- Name: &5&lThe Gatling-Bow
- Command: /autobow (OP only)

Passive (ANYWHERE in inventory):
- Invisibility I
- Removed instantly if bow is gone

Ability 1: GATLING MODE (/gbability1)
- Duration: 25s
- Rapid fire arrows (2–3 ticks)
- Uses arrows from inventory
- Stops if no arrows or not holding bow
- Regeneration I during use
- Prevent self-damage
- VERY HIGH damage (30–40)
- Cooldown: 90s (+20s delay if arrows run out)

Ability 2: FIRE CHARGE BLASTER (/gbability2)
- Rapid fire fireballs
- Explosion or high direct damage
- Blaze/fire sounds
- Duration: 10–15s
- Cooldown: 60–90s

----------------------------------------

POWERBLADE

Core:
- Netherite Sword
- Name: §c§lPowerBlade
- Command: /powerblade
- Permission: powerblade.give

Passive (holding main/offhand):
- Speed II
- Strength II
- Resistance I
- Configurable

Ability 1: DASH (/pbability1)
- Strong forward + upward launch
- No fall damage
- Configurable:
  dash:
    horizontal: 2.8
    vertical: 1.5
- Cooldown: 10s

Ability 2: POWER SURGE (/pbability2)
- Strength V (50s)
- Lightning effect (no damage)
- Cooldown: 60s

Ability 3: LIGHTNING BLESSING (/pbability3)
- Regeneration IV (25s)
- Lightning effect
- Cooldown: 90s

----------------------------------------

GLOBAL SYSTEM

- Separate cooldowns per ability
- Per-player tracking (HashMaps)
- Cooldowns do NOT reset on item drop
- ActionBar cooldown display (updates every second)
- Only visible when holding relevant weapon

----------------------------------------

CORE REQUIREMENTS

- Use PersistentDataContainer to identify weapons
- Proper event listeners (inventory, damage, item switch)
- Clean scheduler usage (BukkitRunnable)
- Cancel tasks when not needed
- Multiplayer safe
- No lag / no memory leaks

----------------------------------------

PROJECT STRUCTURE

- Main class
- WeaponManager
- AbilityManager
- CooldownManager
- ConfigManager
- Commands package
- Abilities package
- Listeners package
- Utils package

----------------------------------------

CONFIG (config.yml)

- Passive effects
- Cooldowns
- Damage values
- Durations
- Dash power
- Particle toggles

----------------------------------------

OUTPUT REQUIRED

- Full Java plugin source code
- plugin.yml
- config.yml
- Instructions to compile and use
Kodari AI
KodariMar 28 at 1:01 pm 25,066 (v2)

I’ll create a comprehensive MythicWeapons plugin with three unique weapons, each with distinct abilities and cooldown systems.

MythicWeapons
A custom weapons plugin featuring three legendary weapons with unique abilities and passive effects. Includes the Voidbreaker Axe with void slam and shadow blink abilities, The Gatling-Bow with rapid-fire capabilities, and the PowerBlade with dash, power surge, and lightning blessing abilities. Each weapon has independent cooldown tracking, persistent data container identification, and configurable settings.

All files created! Here’s your complete MythicWeapons plugin with three legendary weapons:

🗡️ Voidbreaker Axe

  • Passive: Resistance I + No fall damage (only when holding)

  • Void Slam (/voidslam): Launch up, slam down with AoE damage + explosion effects

  • Shadow Blink (/voidblink): Teleport forward + Speed II + next hit deals double damage

🏹 The Gatling-Bow

  • Passive: Invisibility I (anywhere in inventory)

  • Gatling Mode (/gbability1): 25s of rapid-fire arrows with high damage

  • Fire Charge Blaster (/gbability2): Rapid-fire explosive fireballs

⚔️ PowerBlade

  • Passive: Speed II + Strength II + Resistance I (main/offhand)

  • Dash (/pbability1): Powerful forward launch with no fall damage

  • Power Surge (/pbability2): Strength V for 50 seconds + lightning effect

  • Lightning Blessing (/pbability3): Regeneration IV for 25 seconds + lightning

Key Features:

✅ Separate cooldowns per ability with ActionBar display
✅ PersistentDataContainer weapon identification
✅ XSeries cross-version compatibility (1.8-1.21+)
✅ Fully configurable (cooldowns, damage, durations, effects)
✅ Multiplayer-safe with proper task management
✅ No memory leaks - all tasks properly cancelled

Compile: ./gradlew build → Output in build/libs/

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
23 1,465
src/main/java/com/mythicweapons/MythicWeaponsPlugin.java
package com.mythicweapons;

import com.mythicweapons.commands.*;
import com.mythicweapons.listeners.*;
import com.mythicweapons.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MythicWeaponsPlugin extends JavaPlugin {
    private WeaponManager weaponManager;
    private AbilityManager abilityManager;
    private CooldownManager cooldownManager;
    private ConfigManager configManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.weaponManager = new WeaponManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.abilityManager = new AbilityManager(this);
        
        registerCommands();
        registerListeners();
        
        cooldownManager.startActionBarTask();
        
        getLogger().info("MythicWeapons has been enabled!");
    }

    @Override
    public void onDisable() {
        if (cooldownManager != null) {
            cooldownManager.cancelTasks();
        }
        if (abilityManager != null) {
            abilityManager.cancelTasks();
        }
        getLogger().info("MythicWeapons has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("voidaxe").setExecutor(new VoidAxeCommand(this));
        getCommand("voidslam").setExecutor(new VoidSlamCommand(this));
        getCommand("voidblink").setExecutor(new VoidBlinkCommand(this));
        getCommand("autobow").setExecutor(new AutoBowCommand(this));
        getCommand("gbability1").setExecutor(new GBAbility1Command(this));
        getCommand("gbability2").setExecutor(new GBAbility2Command(this));
        getCommand("powerblade").setExecutor(new PowerBladeCommand(this));
        getCommand("pbability1").setExecutor(new PBAbility1Command(this));
        getCommand("pbability2").setExecutor(new PBAbility2Command(this));
        getCommand("pbability3").setExecutor(new PBAbility3Command(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PassiveEffectListener(this), this);
        Bukkit.getPluginManager().registerEvents(new VoidAxeListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GatlingBowListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PowerBladeListener(this), this);
    }
}