mrdeeplegend

Create a Minecraft Paper (1.21+) plugin where players unlock Legacy Classes based on their gameplay. Each legacy has 3 stages with abilities, cooldowns, and unlock requirements.

There is also a secret “Emperor Legacy” that combines all abilities.

---

⚙️ LEGACY SYSTEM

🪨 1. Miner Legacy

Stage 1:

Effect: Haste I

Duration: 30 minutes

Cooldown: 3 seconds

Unlock Condition: Break 1000 blocks

Stage 2:

Effect: Haste III

Duration: 10 minutes

Cooldown: 11 minutes

Unlock Condition: Break 5000 blocks

Stage 3:

Effects:

Haste I

Haste III

Night Vision

Duration: 30 minutes

Cooldown: 20 minutes

Unlock Condition: Break 10069 blocks

---

⚔️ 2. Warrior Legacy

Stage 1:

Effect: Regeneration I

Duration: 10 minutes

Cooldown: 3 seconds

Unlock Condition: Kill 3 players

Stage 2:

Effect: Strength I

Duration: 8 minutes

Cooldown: 10 minutes

Unlock Condition: Kill 8 players

Stage 3:

Effects:

Strength II

Regeneration II

Duration: 5 minutes

Cooldown: 8 minutes

Unlock Condition: Kill 15 players

---

🌾 3. Farmer Legacy

Stage 1:

Effect: Luck II

Duration: 5 minutes

Cooldown: 69 seconds

Unlock Condition: Plant 100 wheat

Stage 2:

Effect: Luck V

Duration: 10 minutes

Cooldown: 12 minutes

Unlock Condition: Plant 669 wheat

Stage 3:

Effects:

Saturation III

Luck V

Duration: 10 minutes

Cooldown: 12 minutes

Unlock Condition: Plant 1069 wheat AND 50 trees

---

🧭 4. Explorer Legacy

Stage 1:

Effect: Speed I

Duration: 8 minutes

Cooldown: 9 minutes

Unlock Condition: Travel 10,000 blocks

Stage 2:

Effect: Speed II

Duration: 5 minutes

Cooldown: 6 minutes

Unlock Condition: Travel 30,000 blocks

Stage 3:

Effects:

Speed II

Saturation II

Duration: 10 minutes

Cooldown: 12 minutes

Unlock Condition: Travel 69,696.9 blocks

---

👑 5. Emperor Legacy (SECRET)

Stage:

Effects:

Strength II

Regeneration II

Speed II

Saturation II

Haste II

Duration: 3 minutes

Cooldown: 5 minutes

Unlock Condition:

Travel 25,000 blocks

Kill 10 players

Plant 600 seeds

Mine 4000 blocks

---

☠️ DEATH SYSTEM

On player death:

All active legacy abilities go on 30-minute cooldown

---

🐉 SPECIAL ITEM EFFECT

If player has Ender Dragon Egg in inventory:

Apply Regeneration V continuously

---

👹 LEGACY BOSS SYSTEM

Spawn:

Automatically every 7 days

Location: /setworldspawn

Boss Stats:

Health: 400 HP

Attack Damage: 9

Timer:

Despawns after 16 minutes if not killed

Rewards:

Drops ONE random enchanted book:

Sharpness VII

Protection VII

Knockback VII

Feather Falling VII

Also drops:

69 XP levels

---

🖥️ INVENTORY GUI SYSTEM

Command:

/legacy

Opens INVENTORY GUI showing:

Player’s Legacy Class

Current Stage

Ability status

Cooldowns

---

📊 TRACKING SYSTEM

Plugin must track:

Blocks mined

Players killed

Crops planted

Trees planted

Distance traveled

Use persistent player data (UUID-based).

---

⚙️ COMMANDS

/legacy → Open INVENTORY GUI /legacy info → Show stats in chat /legacy activate → Activate ability /legacy admin give → Give legacy (admin) /legacy admin reset → Reset player data /legacy boss spawn → Force spawn boss

---

🔐 PERMISSIONS

legacy.use → Use basic commands legacy.activate → Activate abilities legacy.INVENTORY GUI → Open INVENTORY GUI

legacy.admin → All admin commands legacy.admin.give → Give legacy legacy.admin.reset → Reset player data legacy.admin.boss → Spawn boss

---

⚙️ TECHNICAL REQUIREMENTS

Platform: PaperMC 1.21+

Language: Java

Use:

Bukkit API

Event listeners (BlockBreak, PlayerMove, EntityDeath, etc.)

Store data in:

YAML or SQLite

---

💡 EXTRA (IMPORTANT)

Cooldowns must be per-player

Effects should not stack infinitely

INVENTORY GUI should update in real-time

Boss must be custom entity with name + boss bar

Kodari AI
KodariMar 20 at 6:07 am 49,221 (v2)
LegacyPlugin
A legacy class system where players unlock powerful Legacies (Miner, Warrior, Farmer, Explorer) through gameplay milestones. Each legacy has 3 progressive stages with unique potion abilities, per-player cooldowns, and auto-unlock via tracked stats. Features a secret Emperor Legacy combining all abilities, a 7-day auto-spawning Legacy Boss with boss bar and custom drops, Dragon Egg passive effect, death penalty cooldowns, and a full GUI inventory panel with real-time ability/cooldown status.
  • 22 files: core managers (Data, Legacy, Boss), listeners (Tracking, Death, DragonEgg), GUI framework (InventoryGUI → LegacyGUI), and a full command/tab-completer

  • XPotion for all effects, XAttribute for boss stats, XEnchantment for book drops, MiniMessage throughout (Paper 1.21+)

  • PlayerData persists via YAML; boss, Emperor unlock, and death penalties are all runtime-tracked

All 22 files created — the plugin is fully functional with legacy class tracking, per-player cooldowns, stage auto-unlock, GUI inventory panel, Dragon Egg passive regen, 30-minute death penalties, and a 7-day auto-spawning Legacy Guardian boss with boss bar, enchanted book drops, and 69 XP level rewards.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
21 1,513
src/main/java/com/legacyplugin/LegacyPlugin.java
package com.legacyplugin;

import com.legacyplugin.boss.BossManager;
import com.legacyplugin.command.LegacyCommand;
import com.legacyplugin.data.DataManager;
import com.legacyplugin.inventory.gui.GUIListener;
import com.legacyplugin.inventory.gui.GUIManager;
import com.legacyplugin.legacy.LegacyManager;
import com.legacyplugin.listener.DeathListener;
import com.legacyplugin.listener.TrackingListener;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class LegacyPlugin extends JavaPlugin {

    private DataManager dataManager;
    private LegacyManager legacyManager;
    private BossManager bossManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        dataManager = new DataManager(this);
        legacyManager = new LegacyManager(this);
        bossManager = new BossManager(this);
        guiManager = new GUIManager();

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new TrackingListener(this), this);
        getServer().getPluginManager().registerEvents(new DeathListener(this), this);
        getServer().getPluginManager().registerEvents(bossManager, this);

        LegacyCommand legacyCommand = new LegacyCommand(this);
        getCommand("legacy").setExecutor(legacyCommand);
        getCommand("legacy").setTabCompleter(legacyCommand);

        legacyManager.startDragonEggTask();
        bossManager.startAutoSpawnTask();

        getLogger().info("LegacyPlugin enabled successfully.");
    }

    @Override
    public void onDisable() {
        bossManager.cleanup();
        dataManager.saveAll();
        getLogger().info("LegacyPlugin disabled. Data saved.");
    }
}