mrrebellious_

Create a Minecraft Paper plugin (Java, Spigot/Paper API 1.20+) called "SupernaturalSMP".

CORE CONCEPT:

Players can become either Werewolves or Vampires. Each race has unique abilities, strengths, and weaknesses. The plugin includes a war system, INVENTORY GUI menus, and balanced gameplay for SMP servers.

---

PLAYER DATA SYSTEM:

Store per-player data using UUID:

  • race: NONE / WEREWOLF / VAMPIRE
  • rageLevel (for werewolf, 0–100)
  • bloodLevel (for vampire, 0–100)
  • abilityCooldowns
  • lastAbilityUse timestamps

---

RACE SELECTION:

  • Command: /race
  • Opens INVENTORY GUI titled "Choose Your Race"
  • Options:

- Werewolf - Vampire

  • Selection is permanent unless admin resets

---

🐺 WEREWOLF SYSTEM:

TRANSFORMATION:

  • Automatically transforms at night
  • Reverts during day

BUFFS (night):

  • Speed II
  • Strength I

DAY WEAKNESS:

  • Weakness I
  • Slowness I

RAGE SYSTEM:

  • Gain rage:

- Attack player: +10 - Take damage: +5

  • At 100 rage:

- Temporary boost (Speed III + Strength II for 10 sec) - Reset rage

ABILITY:

  • "Rage Burst" (Right-click with empty hand)

- Gives temporary buffs - Cooldown: configurable

---

🧛 VAMPIRE SYSTEM:

BLOOD SYSTEM:

  • Blood decreases over time
  • If blood = 0:

- Weakness II - Slowness I - Damage over time

GAIN BLOOD:

  • Kill player: +40
  • Hit player: +5

NIGHT BUFFS:

  • Speed II
  • Night Vision
  • Regeneration I

DAY WEAKNESS:

  • Sunlight damage (configurable)

ABILITIES:

  1. Blood Dash (speed boost)
  2. Life Steal (heal on hit for short time)
  3. Invisibility (short duration)

All abilities:

  • Right-click activation
  • Individual cooldowns

---

⚔️ WAR SYSTEM:

  • Killing opposite race gives bonus:

- Vampire kills Werewolf → +20 blood - Werewolf kills Vampire → +20 rage

  • Optional scoreboard:

- Track total kills per race

  • Broadcast message on kills

---

📊 INVENTORY GUI SYSTEM:

Command: /menu

Main INVENTORY GUI: "Supernatural Menu" Options:

  • View Stats
  • Abilities
  • Race Info

Stats INVENTORY GUI:

  • Show:

- Current race - Rage or Blood level - Cooldowns

Abilities INVENTORY GUI:

  • Show abilities with status (ready / cooldown)

Use simple chest INVENTORY GUI layout (clean, minimal design)

---

⚙️ COMMANDS:

/race → select race /menu → open main INVENTORY GUI /supernatural reload /supernatural reset <player>

---

⚙️ CONFIG (config.yml):

  • enableSunDamage: true/false
  • bloodDecayRate
  • rageGainRate
  • abilityCooldowns
  • maxRage
  • maxBlood

---

⏱️ EVENTS & TASKS:

  • Scheduler:

- Decrease blood over time - Reduce rage slowly

  • Apply effects continuously based on:

- Time (day/night) - Race

---

💡 OTHER REQUIREMENTS:

  • No external dependencies
  • Optimized performance (avoid heavy loops)
  • Clean modular Java classes
  • Include plugin.yml
  • Handle edge cases:

- No race selected - Cooldowns - Max limits

GOAL:

Create a balanced, fun SMP plugin with simple UI and smooth gameplay for multiplayer servers.

Kodari AI
KodariApr 22 at 7:00 am 23,926 (v2)

I’ll create a comprehensive Supernatural SMP plugin with werewolf/vampire races, GUI menus, and a war system.

SupernaturalSMP
A balanced supernatural race system for SMP servers. Players choose between Werewolf and Vampire races, each with unique abilities, strengths, and weaknesses. Werewolves gain rage through combat and transform at night with enhanced strength. Vampires consume blood for survival and excel in darkness with speed and regeneration. Features include a war system tracking kills between races, inventory-based GUI menus for stats and abilities, automatic day/night transformations, and configurable cooldowns.

Perfect! I’ve created a complete SupernaturalSMP plugin with all core features including werewolf/vampire races, GUI menus, war system, and balanced gameplay mechanics for SMP servers.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 1,707
src/main/java/com/supernatural/smp/SupernaturalSMP.java
package com.supernatural.smp;

import com.supernatural.smp.command.MenuCommand;
import com.supernatural.smp.command.RaceCommand;
import com.supernatural.smp.command.SupernaturalCommand;
import com.supernatural.smp.inventory.gui.GUIListener;
import com.supernatural.smp.inventory.gui.GUIManager;
import com.supernatural.smp.listener.AbilityListener;
import com.supernatural.smp.listener.CombatListener;
import com.supernatural.smp.listener.PlayerJoinListener;
import com.supernatural.smp.listener.PlayerQuitListener;
import com.supernatural.smp.manager.ConfigManager;
import com.supernatural.smp.manager.PlayerDataManager;
import com.supernatural.smp.manager.VampireManager;
import com.supernatural.smp.manager.WarManager;
import com.supernatural.smp.manager.WerewolfManager;
import com.supernatural.smp.task.BloodDecayTask;
import com.supernatural.smp.task.EffectApplyTask;
import com.supernatural.smp.task.RageDecayTask;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SupernaturalSMP extends JavaPlugin {
    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private WerewolfManager werewolfManager;
    private VampireManager vampireManager;
    private WarManager warManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.werewolfManager = new WerewolfManager(this);
        this.vampireManager = new VampireManager(this);
        this.warManager = new WarManager(this);
        this.guiManager = new GUIManager();
        
        registerCommands();
        registerListeners();
        startTasks();
        
        getLogger().info("SupernaturalSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        Bukkit.getScheduler().cancelTasks(this);
        getLogger().info("SupernaturalSMP has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("race").setExecutor(new RaceCommand(this));
        getCommand("menu").setExecutor(new MenuCommand(this));
        getCommand("supernatural").setExecutor(new SupernaturalCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new AbilityListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
    }
    
    private void startTasks() {
        long bloodDecayInterval = configManager.bloodDecayInterval() * 20L;
        new BloodDecayTask(this).runTaskTimer(this, bloodDecayInterval, bloodDecayInterval);
        
        long rageDecayInterval = configManager.rageDecayInterval() * 20L;
        new RageDecayTask(this).runTaskTimer(this, rageDecayInterval, rageDecayInterval);
        
        new EffectApplyTask(this).runTaskTimer(this, 0L, 100L);
    }
}