duckster1460

Make a plugin 1.21.11 paper

📎 1 file 4,604 chars
📄
pasted-code-1781138175297.txt
txt 278 lines
▶
🧠 BIG PICTURE (FINAL VERSION WITH FULL RPG LAYER)

Your plugin is 5 separate systems working together:

🧬 Race System (core identity)
⚡ Ability System (powers + cooldowns)
🤝 Trust System (no friendly fire)
🖥 HUD System (player UI feedback)
💀 Withdraw System (steal/transfer races)

Each one should NOT depend heavily on the others — only communicate through clean data.

🧬 1. RACE SYSTEM (CORE FOUNDATION)
What it does:

Stores what “class” a player is.

Think of it like:

“Who is this player in the world?”

Should handle:
Assigning a race
Saving race data
Loading race on join
Checking player race
Key idea:

This is your source of truth

👉 EVERYTHING ELSE reads from this.

🧪 RACES (CUSTOM FANTASY NAMES + HARDER CRAFTING)

Each race is unlocked using a rare fusion-style crafting recipe (not easy survival items — more like mid-late game + boss loot components).

🔥 Emberborn Covenant

Theme: cursed flame warriors of forgotten volcano gods

Recipe (hard):

1x Blaze Rod
1x Magma Cream
1x Nether Wart Block
1x Diamond Block (center catalyst)
❄ Frostveil Clan

Theme: ancient winter bloodline sealed in eternal ice

Recipe:

1x Packed Ice Core (custom item idea)
1x Heart of the Sea
1x Blue Ice
1x Nether Star Fragment
⚡ Stormbound Acolytes

Theme: storm priests who channel sky wrath

Recipe:

1x Lightning Rod
1x Redstone Block
1x Phantom Membrane
1x Nether Star Fragment
🌑 Umbral Veil Syndicate

Theme: shadow assassins born from void corruption

Recipe:

1x Ender Pearl
1x Ink Sac
1x Obsidian Block
1x Wither Skeleton Skull
🌿 Stonewarden Tribes

Theme: ancient earth guardians of mountain kingdoms

Recipe:

1x Emerald Block
1x Oak Log (ancient wood)
1x Cobblestone Stairs (ritual shape)
1x Enchanted Book
🌊 Tideborn Empire

Theme: ocean empire blessed by sea spirits

Recipe:

1x Prismarine Crystal
1x Heart of the Sea
1x Water Bucket (consumed)
1x Diamond
🌪 Skyreaver Nomads

Theme: floating sky raiders and storm riders

Recipe:

1x Feather
1x Phantom Membrane
1x Quartz Block
1x Elytra Fragment (rare drop idea)
🐉 Draconic Ascendants

Theme: bloodline infused with ancient dragons

Recipe:

1x Dragon Breath
1x Nether Star
1x Diamond Block
1x End Crystal
👼 Seraphic Dominion

Theme: divine celestial holy order

Recipe:

1x Glowstone Block
1x Gold Block
1x Feather
1x Nether Star
😈 Infernal Pactborn

Theme: demonic contract-bound warriors

Recipe:

1x Blaze Powder
1x Soul Sand
1x Netherite Scrap
1x Wither Rose
🧛 Nocturne Bloodline

Theme: aristocratic vampire dynasties

Recipe:

1x Fermented Spider Eye
1x Red Dye (blood essence)
1x Blackstone
1x Nether Wart
🥷 Silent Lotus Clan

Theme: ancient stealth monk assassins

Recipe:

1x String
1x Ink Sac
1x Bamboo
1x Book & Quill
🛡 Crusader Oathguard

Theme: holy knight order of divine justice

Recipe:

1x Iron Block
1x Gold Block
1x Shield
1x Beacon Fragment
☠ Gravebound Covenant

Theme: necromancers bound to forbidden death magic

Recipe:

1x Bone Block
1x Soul Soil
1x Wither Skeleton Skull
1x Enchanted Book
🗡 Daggerfall Covenant

Theme: royal assassination guild of the underworld

Recipe:

1x Iron Sword
1x Black Dye
1x Ender Pearl
1x Obsidian
👑 Eclipse Sovereigns (SECRET RACE)

Theme: godlike rulers beyond mortal kingdoms

Recipe (EXTREME ENDGAME):

1x Dragon Egg
1x Nether Star
1x Beacon
1x Ancient Debris Block
1x Elytra (consumed)
⚡ 2. ABILITY SYSTEM (ENGINE OF POWERS)
What it does:

Handles everything players can do.

Think of it like:

“What can this race actually DO?”

Should handle:
Ability 1 & 2 per race
Passive effects (always active)
Cooldowns
Activation (/ability 1, /ability 2)
Key rule:

Abilities only care about:

player
race
cooldown state
🤝 3. TRUST SYSTEM
What it does:

Prevents PvP between trusted players.

Think:

“Alliances system layered on combat”

Handles:
player friendships
blocking damage
team protection
🖥 4. HUD SYSTEM
What it does:

Real-time player UI.

Shows:
Race name (Covenant name)
Ability names
Cooldowns
Passive effects
Rule:

HUD NEVER affects gameplay — only displays data.

💀 5. WITHDRAW SYSTEM
What it does:

Lets players steal races from kills.

Think:

“Soul loot system”

Handles:
detect kill
copy victim race
assign to killer
Rule:

Only modifies Race System — everything else updates automatically.

🔗 FINAL CONNECTION FLOW
        RACE SYSTEM
             ↓
   ----------------------
   ↓        ↓        ↓
ABILITY   HUD    TRUST SYSTEM
   ↓                 ↓
        COMBAT SYSTEM
             ↓
       WITHDRAW SYSTEM
🧠 FINAL DESIGN RULES
Race System = truth
Abilities = logic
HUD = display
Trust = protection layer
Withdraw = identity theft system
Kodari AI
KodariJun 11 at 12:42 am 35

I’ll create a comprehensive RPG covenant system with 16 races, custom abilities, trust mechanics, HUD feedback, and race stealing.

MysticCovenants
A deep fantasy RPG system featuring 16 unique covenants with distinct abilities, passives, and hard-mode crafting recipes. Players unlock races through challenging fusion crafting, wield powerful abilities with strategic cooldowns, form alliances with trust-based friendly fire protection, and can steal races through PvP kills. Includes real-time HUD feedback via action bars showing race status, ability cooldowns, and active passives.

MysticCovenants created!

16 unique fantasy covenants with hard fusion crafting, 32 custom abilities (2 per race), trust-based friendly fire protection, real-time action bar HUD showing race and cooldowns, and PvP race stealing.

Each covenant requires challenging mid-late game materials like Nether Stars, Dragon Breath, or Beacons. Players unlock races by crafting race tokens, right-click to consume and join that covenant. Use /ability 1 or /ability 2 to activate powers with cooldown tracking. Trust allies with /trust add <player> to prevent friendly fire. Kill enemies to steal their race through the Withdraw system.

All data persists across restarts (races.yml + trust.yml). Action bar updates every second showing current race status and ability cooldowns.

duckster1460

oh im sorry could u also add passives for each race...

Kodari AI
KodariJun 11 at 12:45 am 36

I’ll add unique passive abilities for each race that activate automatically!

Passives added! Each race now has unique passive abilities that activate automatically:

  • Emberborn: Fire immunity + lava walking

  • Frostveil: Freeze nearby enemies + ice walking

  • Stormbound: No fall damage + speed in storms

  • Umbral Veil: Night vision + invisibility when sneaking

  • Stonewarden: Damage resistance + mining haste

  • Tideborn: Water breathing + dolphin’s grace

  • Skyreaver: Slow falling + jump boost

  • Draconic: Dragon scales (armor) + strength

  • Seraphic: Regeneration + glowing aura

  • Infernal: Wither immunity + soul fire trail

  • Nocturne: Lifesteal on hit + night damage boost

  • Silent Lotus: Silent movement + speed when sneaking

  • Crusader: Iron skin (resistance) + thorns damage

  • Gravebound: Undead fortitude + darkness empowerment

  • Daggerfall: Speed + critical strike chance

  • Eclipse Sovereigns: All positive effects combined (godlike)

The PassiveManager runs every 2 seconds applying effects to all online players based on their race. Passives are displayed in the HUD action bar!

duckster1460

can u send me the images of each craftin recipie

duckster1460

how do i craft the races

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
22 2,185
src/main/java/com/mysticcovenants/MysticCovenants.java
package com.mysticcovenants;

import com.mysticcovenants.ability.AbilityManager;
import com.mysticcovenants.ability.CooldownManager;
import com.mysticcovenants.commands.AbilityCommand;
import com.mysticcovenants.commands.RaceCommand;
import com.mysticcovenants.commands.TrustCommand;
import com.mysticcovenants.crafting.RaceCraftingListener;
import com.mysticcovenants.crafting.RaceCraftingManager;
import com.mysticcovenants.hud.HUDManager;
import com.mysticcovenants.listeners.CombatListener;
import com.mysticcovenants.listeners.PassiveListener;
import com.mysticcovenants.listeners.PlayerJoinListener;
import com.mysticcovenants.passive.PassiveManager;
import com.mysticcovenants.race.RaceManager;
import com.mysticcovenants.trust.TrustListener;
import com.mysticcovenants.trust.TrustManager;
import com.mysticcovenants.withdraw.WithdrawListener;
import com.mysticcovenants.withdraw.WithdrawManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MysticCovenants extends JavaPlugin {
    
    private RaceManager raceManager;
    private AbilityManager abilityManager;
    private CooldownManager cooldownManager;
    private TrustManager trustManager;
    private HUDManager hudManager;
    private WithdrawManager withdrawManager;
    private RaceCraftingManager raceCraftingManager;
    private PassiveManager passiveManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.raceManager = new RaceManager(this);
        this.cooldownManager = new CooldownManager();
        this.abilityManager = new AbilityManager(this);
        this.trustManager = new TrustManager(this);
        this.hudManager = new HUDManager(this);
        this.withdrawManager = new WithdrawManager(this);
        this.raceCraftingManager = new RaceCraftingManager(this);
        this.passiveManager = new PassiveManager(this);
        
        raceManager.loadRaceData();
        trustManager.loadTrustData();
        raceCraftingManager.registerRecipes();
        
        registerCommands();
        registerListeners();
        
        hudManager.startHUDUpdater();
        passiveManager.startPassiveUpdater();
        
        getLogger().info("MysticCovenants enabled! 16 covenants ready.");
    }
    
    @Override
    public void onDisable() {
        raceManager.saveRaceData();
        trustManager.saveTrustData();
        hudManager.stopHUDUpdater();
        passiveManager.stopPassiveUpdater();
        
        getLogger().info("MysticCovenants disabled.");
    }
    
    private void registerCommands() {
        getCommand("race").setExecutor(new RaceCommand(this));
        getCommand("ability").setExecutor(new AbilityCommand(this));
        getCommand("trust").setExecutor(new TrustCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TrustListener(this), this);
        Bukkit.getPluginManager().registerEvents(new WithdrawListener(this), this);
        Bukkit.getPluginManager().registerEvents(new RaceCraftingListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PassiveListener(this), this);
    }
    
    public String formatMessage(String key) {
        String prefix = getConfig().getString("messages.prefix", "&8[&6MysticCovenants&8]&r ");
        String message = getConfig().getString("messages." + key, key);
        return colorize(prefix + message);
    }
    
    public String colorize(String text) {
        return text.replace("&", "§");
    }
}