אריאל פרייד
📎 1 file 1,162 chars
📄
pasted-code-1788637521315.txt
txt 2 lines
▶
I want a Minecraft plugin with **30 classes** such as Fire, Ice, Wind, etc., with **3 progressively stronger abilities per class** and **1 unique passive effect** per class (for example, Fire = permanent Fire Resistance; Water = Water Breathing and Dolphin’s Grace). Every player gets **1 of the 38 classes** when an operator uses `/rerole`, and every class can only belong to one player at a time. Players start with their class’s **basic ability**. When a player is killed by another player, they drop **exactly 1 Ability Star** and lose their **most advanced unlocked ability**; if they only have the basic ability, they lose the ability completely until they use an Ability Star. Ability Stars are crafted with **4 Diamond Blocks, 4 Gold Blocks, and 1 Netherite Scrap**, and right-clicking while holding one restores/upgrades the lost ability. A **Class Reroller** is crafted with **4 Diamond Blocks, 3 Gold Blocks, and 2 Netherite Ingots**; right-clicking it replaces the player’s class with a class that no one currently has. When a player rerolls, their old class becomes available again, so another player using a Class Reroller can receive that class.
Kodari AI
KodariSep 5 at 7:48 pm 2
ElementalClasses
ElementalClasses is a Minecraft plugin assigning 30 unique elemental classes (Fire, Ice, Wind, etc.) to players. Each class features 3 progressively stronger abilities and 1 unique passive effect. Operators assign classes via /rerole, ensuring each class belongs to only one player at a time. Players begin with their basic ability. PvP deaths drop exactly 1 Ability Star and downgrade the victim's most advanced unlocked ability, potentially removing it entirely. Ability Stars (crafted from 4 Diamond Blocks, 4 Gold Blocks, 1 Netherite Scrap) restore lost abilities when right-clicked. A Class Reroller (4 Diamond Blocks, 3 Gold Blocks, 2 Netherite Ingots) reassigns the user to an unclaimed class, freeing their previous class for others.
  1. Create the Gradle/Paper plugin structure and metadata.

  2. Implement 38 unique classes with three abilities and passive definitions.

  3. Add persistent class ownership, ability progression, death drops, crafting, and reroll mechanics.

  4. Register /rerole and /ability, event listeners, recipes, and passive-effect scheduling.

Created the ClassAbilities Paper plugin with:

  • 38 unique classes, each with 3 abilities and a passive effect.

  • Persistent class ownership and ability progression.

  • /rerole [player] operator command.

  • /ability [1|2|3] command for using and viewing abilities.

  • One-class-per-player enforcement.

  • Player-kill ability loss and exactly one Ability Star drop.

  • Ability Star restoration/upgrading.

  • Class Reroller item with unowned-class selection.

  • Recipes for Ability Stars and Class Rerollers.

  • Passive effects applied periodically.

  • YAML persistence in data.yml.

  • Paper/Gradle project metadata and plugin registration.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
13 750
src/main/java/com/kodari/classabilities/ClassAbilitiesPlugin.java
package com.kodari.classabilities;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class ClassAbilitiesPlugin extends JavaPlugin {
    private ClassManager classManager;
    private AbilityService abilityService;

    @Override
    public void onEnable() {
        DataStore dataStore = new DataStore(this);
        classManager = new ClassManager(dataStore);
        classManager.load();
        abilityService = new AbilityService();
        ItemFactory itemFactory = new ItemFactory(this);
        itemFactory.registerRecipes(this);

        Bukkit.getPluginManager().registerEvents(new ClassListener(classManager, itemFactory), this);
        getCommand("rerole").setExecutor(new ReroleCommand(classManager));
        getCommand("ability").setExecutor(new AbilityCommand(classManager, abilityService));

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) {
                abilityService.applyPassive(player, classManager.getData(player.getUniqueId()));
            }
        }, 1L, 100L);
    }

    @Override
    public void onDisable() {
        if (classManager != null) {
            classManager.save();
        }
    }
}