adixd0983
📎 1 file 4,564 chars
📄
pasted-code-1778134217870.txt
txt 247 lines
▶
🧩 ADVANCED PROFESSIONAL PROMPT — “Custom Powers System Plugin”
🎯 Project Title

Ascendant Powers — Advanced Modular Ability System

📌 Objective

Create a highly scalable, modular, and performance-optimized Minecraft plugin that introduces a dynamic custom powers/abilities system with RPG-style progression, PvP balancing, and immersive gameplay mechanics.

⚙️ Core Requirements
1. 🧬 Power System Architecture
Each player is assigned a unique power class
Power assignment methods:
Random on first join
Command-based reroll (with cooldown/limits)
Unlock via quests or achievements
Must support easy addition of new powers via config/API
🔁 Reroll System
Players automatically receive 1 reroll every 1 hour
Reroll can be used with:
/reroll
Reroll Features
Maximum reroll storage limit
INVENTORY GUI reroll animation
Weighted rarity system
Optional pity system
Configurable in config.yml

Example:

reroll:
  enabled: true
  reroll-interval: 3600 # 1 hour
  max-rerolls: 3
  pity-system: true
⚡ Power Toggle System

Players must be able to enable or disable their powers anytime.

Commands:

/power on
/power off
Behavior
/power off
Disables all active abilities
Disables passive abilities
Prevents mana usage
Prevents ultimate activation
/power on
Re-enables all abilities and passives
Restores power functionality

Example:

power-toggle:
  enabled: true
  default-state: ON
2. 🔥 Power Categories
🌋 Elemental Classes
Fire
Water
Ice
Earth
Air
Lightning
Light
Darkness

Each class must include:

3 Active Abilities
1 Ultimate Ability
1 Passive Ability
🧠 Special Classes
Time Manipulation
Gravity Control
Teleportation
Illusion/Clone
Energy/Mana Control
3. ⚔️ Ability System Design

Each ability must include:

Trigger type (Right-click / Shift / Command / Keybind)
Cooldown system
Mana/Energy cost
Particle effects + sound effects
Damage / effect scaling
PvP-safe logic (no abuse or lag exploits)
4. 📈 Progression System
Level-based upgrades:
Level 1 → Basic ability
Level 2 → Enhanced ability
Level 3 → Unlock ultimate
XP gain methods:
PvP kills
Mob kills
Quests
Additional Requirements:
Configurable leveling curve
Skill progression tracking
Power mastery bonuses
5. 🎲 Randomization System
Assign random power on first join
Optional /reroll command:
Limited uses
Cooldown-based
1 reroll granted every hour
Weighted rarity system:
Common
Rare
Epic
Legendary
Mythic
God-tier
6. 🧩 Passive Ability Engine

Each power grants passive buffs

Must run efficiently (no tick lag)

Examples:

Fire → Lava immunity
Air → No fall damage
Darkness → Lifesteal
7. ⚖️ PvP Balancing System

All abilities must be balanced:

No one-shot exploits
Counter system between powers

Examples:

Water counters Fire
Earth resists Lightning

Additional Requirements:

Configurable damage multipliers
Anti-spam protections
Cooldown balancing
8. 💥 Ultimate Ability System
Unlock at max level
High cooldown (60–180 seconds)
Strong visual + gameplay impact
Limited duration or single-use burst
9. 🧠 Energy / Mana System
Abilities consume energy/mana
Regeneration over time
UI support:
BossBar
ActionBar
Optional custom HUD
10. 📜 Quest & Unlock System

Optional quest integration:

Kill mobs
Explore areas
Complete challenges

Rewards:

Unlock new powers
Unlock upgrades
Gain XP/resources
11. 🎨 Visual & UX Design

Use:

Particle effects
Custom sounds
Titles
ActionBar messages
Smooth animations

Must provide:

Clean feedback system
Immersive combat feel
Professional INVENTORY GUI menus
12. 🗂️ Configuration System

Fully customizable via YAML/JSON:

Powers
Damage
Cooldowns
Effects
Mana costs
Reroll settings
Toggle settings

No hardcoding (developer-friendly)

13. 🚀 Performance Optimization
Async tasks where possible
Avoid heavy loops
Optimized for multiplayer servers (50+ players)
Memory-efficient systems
Lag-free combat handling
14. 🔌 Extensibility

Provide API/hooks for:

Adding new powers
Integrating with other plugins
Custom events

Must use:

Modular class-based architecture
Expandable framework design
🎮 Example Power (Reference)
🔥 Fire Class
Ability 1: Fireball (projectile + burn)
Ability 2: Flame Dash (speed + fire trail)
Ability 3: Inferno Burst (AOE damage)
Ultimate: Meteor Strike ☄️
Passive: Fire immunity
📦 Deliverables
Fully functional plugin (.jar)
Source code (clean & documented)
Config files
Setup guide
Example powers implemented
🏁 Final Requirement

Plugin must feel:

Unique
Smooth
Competitive
Anime-inspired
RPG-focused

Designed for:

PvP + RPG hybrid gameplay
Long-term player engagement
Multiplayer scalability
✍️ Credit Line

Made by ReV
Kodari AI
KodariMay 7 at 6:15 am 28,284 (v2)

I’ll create an advanced modular powers system plugin with RPG progression, dynamic combat, and GUI-based interactions.

AscendantPowers
Advanced modular ability system featuring elemental and special power classes with RPG-style progression. Players receive unique powers with active abilities, ultimates, and passives. Includes hourly reroll system with GUI animation, weighted rarity tiers, mana management, power toggle functionality, and PvP-balanced combat mechanics. Fully configurable with extensible API for custom power creation and quest integration.

I’ll build a comprehensive powers system with elemental classes, reroll mechanics, progression, and GUI-based interactions. Starting with the core architecture and two fully-functional example powers (Fire and Water).

Now I’ll create the GUI framework and implementations:

Now I’ll create the command handlers and listeners:

Finally, create the manifest file for XSeries:


AscendantPowers is now ready! This plugin includes:

✅ Core Systems:

  • Fire & Water powers with 4 abilities each (3 active + 1 ultimate)

  • Hourly reroll system with GUI animation

  • Power toggle (/power on/off)

  • Weighted rarity system (Common → God-Tier)

  • Pity system for guaranteed Epic/Legendary drops

  • Mana system with action bar display

  • Level progression (1-3) with XP from PvP/mobs

  • Passive abilities (Fire immunity, Water breathing)

✅ Commands:

  • /power [on|off|info] - View/toggle powers

  • /reroll - Opens reroll GUI

  • /ascendant - Admin commands (setpower, addreroll, reset, reload)

✅ Features:

  • Professional GUI framework with button system

  • Cross-version compatibility (XSeries)

  • Persistent player data (YAML storage)

  • PvP damage multipliers

  • Particle effects & sounds

  • Configurable everything (cooldowns, damage, mana costs)

The architecture is fully modular—add new powers by extending Power, add abilities by extending Ability, and everything auto-registers. Config handles all balancing without code changes.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
40 2,200
src/main/java/com/rev/ascendantpowers/AscendantPowers.java
package com.rev.ascendantpowers;

import com.rev.ascendantpowers.command.PowerCommand;
import com.rev.ascendantpowers.command.RerollCommand;
import com.rev.ascendantpowers.command.AdminCommand;
import com.rev.ascendantpowers.config.ConfigManager;
import com.rev.ascendantpowers.inventory.gui.GUIListener;
import com.rev.ascendantpowers.inventory.gui.GUIManager;
import com.rev.ascendantpowers.listener.AbilityTriggerListener;
import com.rev.ascendantpowers.listener.CombatListener;
import com.rev.ascendantpowers.listener.PlayerJoinListener;
import com.rev.ascendantpowers.mana.ManaDisplayTask;
import com.rev.ascendantpowers.mana.ManaManager;
import com.rev.ascendantpowers.player.PlayerDataManager;
import com.rev.ascendantpowers.power.PowerManager;
import com.rev.ascendantpowers.progression.LevelManager;
import com.rev.ascendantpowers.reroll.RerollManager;
import com.rev.ascendantpowers.reroll.RerollTask;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AscendantPowers extends JavaPlugin {
    
    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private PowerManager powerManager;
    private RerollManager rerollManager;
    private ManaManager manaManager;
    private LevelManager levelManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.powerManager = new PowerManager(this);
        this.rerollManager = new RerollManager(this);
        this.manaManager = new ManaManager(this);
        this.levelManager = new LevelManager(this);
        this.guiManager = new GUIManager();
        
        registerCommands();
        registerListeners();
        startTasks();
        
        getLogger().info("AscendantPowers enabled! Made by ReV");
    }
    
    @Override
    public void onDisable() {
        playerDataManager.saveAll();
        getLogger().info("AscendantPowers disabled!");
    }
    
    private void registerCommands() {
        getCommand("power").setExecutor(new PowerCommand(this));
        getCommand("reroll").setExecutor(new RerollCommand(this));
        getCommand("ascendant").setExecutor(new AdminCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new AbilityTriggerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
    }
    
    private void startTasks() {
        new RerollTask(this).runTaskTimer(this, 20L, 20L);
        new ManaDisplayTask(this).runTaskTimer(this, 0L, 10L);
    }
}