_drayx__
📎 1 file 3,416 chars
📄
pasted-code-1786715770314.txt
txt 141 lines
▶
Core trait system

Give every player 1–2 traits when they join.

Examples:

🔥 Pyromancer — immune to fire, fire attacks deal more damage; weakness: water damage / reduced movement in rain.
🧊 Frostborn — can freeze nearby enemies; weakness: takes extra fire damage.
🦇 Vampire — lifesteal at night; weakness: sunlight damages them.
⚡ Stormborn — chance to strike lightning when attacking; weakness: takes extra damage during thunderstorms.
🌑 Shadow — temporary invisibility in darkness; weakness: weaker in daylight.
🪨 Titan — extra hearts and knockback resistance; weakness: slower movement.
🐺 Beast — increased speed/jump and stronger melee; weakness: cannot use certain ranged weapons.
👁️ Oracle — gets occasional warnings about nearby players; weakness: low maximum health.
💀 Necromancer — can summon temporary undead; weakness: healing potions are less effective.
🌿 Druid — regeneration near natural terrain; weakness: weaker underground.
Features that would make it really good

1. Trait leveling
Players gain XP for using their trait.

For example:
Trait Level 1 → 2 → 3 → 4 → 5

Each level unlocks something new rather than simply giving +damage.

2. Trait abilities
Give each trait active abilities with cooldowns.

Example:
/trait ability

A Shadow player could have:

Smoke Bomb — invisibility for 4 seconds
Shadow Step — teleport 8 blocks
Night Vision — permanent passive

3. Trait evolution
At high levels, let players choose an evolution.

Example:

Vampire → Blood Lord
or
Vampire → Night Stalker

This creates different builds even when two players have the same starting trait.

4. Trait rerolls
Don't make players permanently stuck with a bad trait.

Possible system:

Rare Trait Shards
7-day cooldown
Expensive reroll
Special item obtained from bosses

This keeps rerolling from becoming spammy.

5. Trait combinations
This could be your biggest selling point.

Certain traits interact:

Fire + Strength → Inferno
Ice + Water → Frostwalker
Shadow + Vampire → Nightmare
Nature + Beast → Wildborn

But I'd keep combinations relatively rare so they feel special.

6. Anti-overpowered system
Every powerful trait should have a counter.

For example:

Vampire = amazing at night
→ weakness = sunlight

Titan = extremely tanky
→ weakness = slow

Shadow = excellent assassin
→ weakness = poor defense

That makes PvP more strategic instead of “who rolled the best trait wins.”

7. Trait contracts
Add special challenges related to someone's trait.

Example:

Blood Hunter
Kill 10 hostile mobs at night.

Reward:
+1 Trait Level

8. World events
Every few hours, trigger events that interact with traits:

Blood Moon
Eclipse
Thunderstorm
Frozen Night
Nether Rift
Ancient Boss
Trait Surge

During a Blood Moon, for example, Vampire players become stronger while everyone else gets weaker.

9. Trait boss
Create a boss that drops Trait Cores.

Players can use cores to:

Upgrade traits
Unlock abilities
Evolve traits
Craft special trait items

10. Trait INVENTORY GUI
Make /traits open a nice inventory INVENTORY GUI showing:

╔══════════════════════╗
║     YOUR TRAIT       ║
║                      ║
║  🦇 VAMPIRE          ║
║  Level: 4 / 10       ║
║  XP: 720 / 1000      ║
║                      ║
║  Passive: Lifesteal  ║
║  Ability: Blood Rush ║
║  Weakness: Sunlight  ║
║                      ║
║  [Abilities]         ║
║  [Evolution]         ║
║  [Statistics]        ║
╚══════════════════════╝
Kodari AI
KodariAug 14 at 2:00 pm 2
TraitForge
A comprehensive Minecraft trait system plugin that assigns each player 1-2 unique traits on join (Pyromancer, Vampire, Titan, Shadow, etc.). Features trait leveling through XP gain, active abilities with cooldowns, trait evolution paths at high levels, and rare reroll system using shards. Includes powerful trait combinations, anti-overpowered weaknesses, and special contracts with rewards. World events like Blood Moon interact with traits. A trait boss drops cores used for upgrades and evolution. A GUI-based /traits menu displays player stats, abilities, evolution options, and statistics through an interactive inventory system.
  1. Build the plugin foundation and persistent 1–2 trait assignment system.

  2. Add trait passives, weaknesses, combat XP, leveling, rerolls, and active abilities.

  3. Add /traits and /trait ability|reroll commands with an inventory GUI.

  4. Add Bukkit metadata/configuration and cross-version XSeries item/effect handling.

Created the CoreTraits Bukkit plugin foundation with:

  • Persistent random assignment of 1–2 traits per player.

  • 10 traits with passives, weaknesses, XP, levels, and cooldown-based abilities.

  • Trait effects for fire, frost, vampire lifesteal, storms, shadows, titans, beasts, oracles, necromancers, and druids.

  • /traits inventory GUI.

  • /trait ability, /trait reroll, and /trait info.

  • Seven-day reroll cooldown.

  • Persistent YAML player data.

  • XSeries-based cross-version materials, attributes, and potion effects.

  • Gradle build configuration and plugin metadata.

_drayx__

it should be for 1.21.11

Kodari AI
KodariAug 14 at 2:00 pm 1
  1. Update the server API target to 1.21.11.

  2. Set the required Java target to Java 21.

  3. Update plugin.yml to advertise the 1.21 API level.

Updated CoreTraits for Minecraft 1.21.11:

  • Spigot API: 1.21.11-R0.1-SNAPSHOT

  • Java target: Java 21

  • plugin.yml API version: 1.21

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
17 1,088
src/main/java/com/kodari/coretraits/CoreTraitsPlugin.java
package com.kodari.coretraits;

import com.kodari.coretraits.ability.TraitAbilityManager;
import com.kodari.coretraits.command.TraitCommand;
import com.kodari.coretraits.gui.GUIListener;
import com.kodari.coretraits.gui.GUIManager;
import com.kodari.coretraits.gui.TraitsGUI;
import com.kodari.coretraits.listener.TraitListener;
import com.kodari.coretraits.trait.TraitManager;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class CoreTraitsPlugin extends JavaPlugin {
    private TraitManager traitManager;
    private TraitAbilityManager abilityManager;
    private GUIManager guiManager;

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

        this.traitManager = new TraitManager(this);
        this.abilityManager = new TraitAbilityManager(this, traitManager);
        this.guiManager = new GUIManager();

        Bukkit.getPluginManager().registerEvents(new TraitListener(this, traitManager), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);

        TraitCommand traitCommand = new TraitCommand(this, traitManager, abilityManager, guiManager);
        getCommand("traits").setExecutor(traitCommand);
        getCommand("trait").setExecutor(traitCommand);
        getCommand("trait").setTabCompleter(traitCommand);

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) {
                traitManager.applyPeriodicEffects(player);
            }
        }, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (traitManager != null) {
            traitManager.saveData();
        }
    }

    public TraitManager getTraitManager() {
        return traitManager;
    }

    public TraitAbilityManager getAbilityManager() {
        return abilityManager;
    }

    public void openTraits(Player player) {
        guiManager.openGUI(new TraitsGUI(this, traitManager, abilityManager), player);
    }
}