slay_playz
📎 1 file 5,902 chars
📄
pasted-code-1775380344390.txt
txt 389 lines
▶
PROJECT PROMPT: REAVERSMP – ADVANCED POWER SMP PLUGIN WITH CUSTOM TEXTURES

Create a large-scale professional Minecraft plugin called **ReaverSMP** for a Paper/Spigot server. The plugin introduces a complete **Reaver Power System** where players obtain unique elemental abilities. The plugin must also support a **custom resource pack / texture pack** so that Reaver items, cores, INVENTORY GUI icons, and ability effects have unique visuals.

The plugin should be designed for **PvP SMP gameplay**, optimized for performance, and built with a clean modular architecture.

---

CORE CONCEPT

Players can obtain powerful abilities called **Reavers**.
Each player can only possess **one Reaver at a time**.

Each Reaver provides:

• Active ability
• Passive abilities
• Unique particles and sounds
• Level progression
• Custom textured items
• Visual INVENTORY GUI icons

Abilities are activated using:

SHIFT + F

---

REAVER TYPES

The system must include **10 unique Reavers**:

Flame
Ocean
Ice
Thunder
Wind
Earth
Magma
Shadow
Light
Void

Each Reaver should feel unique in combat and gameplay.

---

CUSTOM TEXTURE SYSTEM

The plugin must support a **server resource pack** that adds custom textures.

Textures should include:

• Reaver Core items
• Reaver ability icons
• INVENTORY GUI icons
• Ability activation effects

Example:

Flame Core
Texture: glowing red orb

Ocean Core
Texture: blue water orb

Void Core
Texture: dark purple vortex orb

These cores may use **CustomModelData** values.

Example:

Flame Core → CustomModelData 1001
Ocean Core → CustomModelData 1002
Void Core → CustomModelData 1010

When players obtain a Reaver, they receive a **Reaver Core item** with the correct texture.

---

INVENTORY GUI WITH TEXTURED ICONS

All INVENTORY GUI menus must use custom textured icons from the resource pack.

Example INVENTORY GUI icons:

Roll Button
Reaver Info
Ability Icon
Level Display
Rarity Indicator

INVENTORY GUI menus should include:

Roll Menu
Reaver Menu
Ability Info Menu
Level Progress Menu

---

ACTIVE ABILITIES

Abilities are triggered using:

SHIFT + F

Each ability must include:

• particle effects
• sound effects
• cooldown system
• boss bar cooldown display

Example abilities:

Flame Reaver
Fire burst damaging nearby enemies.

Ocean Reaver
Water wave pushing enemies away.

Ice Reaver
Freeze enemies with strong slowness.

Thunder Reaver
Lightning strike attack.

Wind Reaver
Dash ability for mobility.

Earth Reaver
Ground smash knocking enemies upward.

Magma Reaver
Lava explosion with burn damage.

Shadow Reaver
Teleport ability.

Light Reaver
Healing and regeneration ability.

Void Reaver
Creates a vortex pulling enemies.

---

PASSIVE ABILITIES

Each Reaver must also grant passive bonuses.

Examples:

Flame
Fire resistance and small damage boost

Ocean
Water breathing and faster swimming

Ice
Chance to slow enemies on hit

Thunder
Chance to strike lightning on attack

Wind
Permanent speed boost

Earth
Knockback resistance

Magma
Lava immunity

Shadow
Night vision in dark areas

Light
Passive regeneration

Void
Chance to weaken enemies

---

REAVER RARITY SYSTEM

Each Reaver has a rarity tier.

Common
Rare
Epic
Legendary
Mythic

Example distribution:

Common
Flame
Ocean

Rare
Ice
Wind
Earth

Epic
Thunder
Magma

Legendary
Shadow
Light

Mythic
Void

Rolling chances must respect rarity.

---

ROLLING SYSTEM

Players obtain a Reaver using:

/roll

This opens a **INVENTORY GUI roll menu**.

The INVENTORY GUI should show:

• animated rolling slots
• rarity colors
• final result display

When the roll finishes the player receives a **Reaver Core item**.

---

LEVEL SYSTEM

Players gain **Reaver XP** through combat.

Examples:

Hit player → +5 XP
Kill player → +20 XP

Level progression example:

Level 1 → 100 XP
Level 2 → 150 XP
Level 3 → 200 XP
Level 4 → 250 XP

Higher levels may improve abilities or passive effects.

---

LEVEL UP ANNOUNCEMENTS

When a player levels up:

Server broadcast message:

⚡ REAVER LEVEL UP
PlayerName has reached Level X

The player also receives:

• title animation
• sound effect

---

COOLDOWN SYSTEM

When abilities are used:

• cooldown begins
• BossBar appears
• BossBar counts down

Example display:

Ability Cooldown: 60 seconds

---

PLAYER COMMANDS

/roll
Roll for a Reaver.

/reaver info
Shows current Reaver.

/reaver abilities
Shows ability details.

/reaver level
Shows current level.

/reaver level details
Shows XP progress.

/reaver stats
Shows passive abilities.

/reaver cooldown
Shows cooldown info.

/reaver menu
Opens INVENTORY GUI menu.

/reaver help
Shows all commands.

---

ADMIN COMMANDS

/reaver give  
Give a Reaver.

/reaver set  
Change Reaver.

/reaver remove 
Remove Reaver.

/reaver reset 
Reset player power.

/reaver setlevel  
Set level.

/reaver addxp  
Add XP.

/reaver removexp  
Remove XP.

/reaver reload
Reload configuration.

/reaver list
List all Reavers.

/reaver rarity 
Show rarity info.

---

PLUGIN STRUCTURE

The plugin must follow modular architecture.

Main class
ReaverSMP

Packages:

commands
listeners
managers
abilities
reavers
INVENTORY GUI
announcements
bars
utils

Managers must include:

ReaverManager
CooldownManager
LevelManager
RollManager
ParticleManager

---

GOAL

The goal is to create a polished SMP plugin that turns a normal server into a **power-based PvP experience with unique abilities, progression, custom textures, and immersive gameplay**.
Kodari AI
KodariApr 5 at 9:18 am 40,799 (v2)

I’ll create a comprehensive power-based SMP plugin with custom abilities, progression, GUI menus, and resource pack support.

ReaverSMP
Advanced elemental power system plugin featuring 10 unique Reavers with active/passive abilities, level progression, animated rolling mechanics, and custom texture support. Players obtain powerful abilities through a rarity-based roll system, gain XP through combat, and trigger abilities with Shift+F. Includes boss bar cooldowns, GUI menus, server-wide announcements, and CustomModelData integration for resource packs.

All files created successfully for ReaverSMP! This comprehensive power system includes 10 unique elemental Reavers, custom GUI menus, progression system, rolling mechanics with rarity tiers, boss bar cooldowns, particle effects, and complete resource pack support with CustomModelData integration.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
43 2,755
src/main/java/com/reaversmp/ReaverSMP.java
package com.reaversmp;

import com.reaversmp.bars.CooldownBar;
import com.reaversmp.commands.ReaverAdminCommand;
import com.reaversmp.commands.ReaverCommand;
import com.reaversmp.commands.RollCommand;
import com.reaversmp.gui.GUIListener;
import com.reaversmp.gui.GUIManager;
import com.reaversmp.listeners.AbilityTriggerListener;
import com.reaversmp.listeners.CombatListener;
import com.reaversmp.listeners.PlayerJoinListener;
import com.reaversmp.listeners.PlayerQuitListener;
import com.reaversmp.managers.*;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ReaverSMP extends JavaPlugin {
    private ReaverManager reaverManager;
    private CooldownManager cooldownManager;
    private LevelManager levelManager;
    private RollManager rollManager;
    private ParticleManager particleManager;
    private GUIManager guiManager;
    private CooldownBar cooldownBar;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.reaverManager = new ReaverManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.levelManager = new LevelManager(this);
        this.rollManager = new RollManager(this);
        this.particleManager = new ParticleManager(this);
        this.guiManager = new GUIManager();
        this.cooldownBar = new CooldownBar(this);
        
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new AbilityTriggerListener(this), this);
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        
        getCommand("roll").setExecutor(new RollCommand(this));
        
        ReaverCommand reaverCommand = new ReaverCommand(this);
        getCommand("reaver").setExecutor(reaverCommand);
        getCommand("reaver").setTabCompleter(reaverCommand);
        
        ReaverAdminCommand adminCommand = new ReaverAdminCommand(this);
        getCommand("reaver").setExecutor(new org.bukkit.command.CommandExecutor() {
            @Override
            public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) {
                if (args.length > 0 && isAdminCommand(args[0])) {
                    return adminCommand.onCommand(sender, command, label, args);
                }
                return reaverCommand.onCommand(sender, command, label, args);
            }
        });
        getCommand("reaver").setTabCompleter(new org.bukkit.command.TabCompleter() {
            @Override
            public java.util.List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) {
                if (args.length > 0 && isAdminCommand(args[0]) && sender.hasPermission("reaversmp.admin")) {
                    return adminCommand.onTabComplete(sender, command, alias, args);
                }
                return reaverCommand.onTabComplete(sender, command, alias, args);
            }
        });
        
        getLogger().info("ReaverSMP has been enabled!");
        getLogger().info("10 Reavers loaded with abilities and progression");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("ReaverSMP has been disabled!");
    }
    
    private boolean isAdminCommand(String arg) {
        return arg.equalsIgnoreCase("give") || arg.equalsIgnoreCase("set") || 
               arg.equalsIgnoreCase("remove") || arg.equalsIgnoreCase("reset") ||
               arg.equalsIgnoreCase("setlevel") || arg.equalsIgnoreCase("addxp") ||
               arg.equalsIgnoreCase("removexp") || arg.equalsIgnoreCase("reload") ||
               arg.equalsIgnoreCase("list") || arg.equalsIgnoreCase("rarity");
    }
}