dragonhollo3w

Create me a plugin where every player gets a random active+passive ability and the passive ability should be permanent and active ability should be done by right click and total abiltiies should be 12 ( active+passive) and when they join the server for the first time. The ability should be assigned through a spinning wheel animation while the player is floating in the air. And when the player fall after the ability is assigned they should take no fall damage and the abilitiy cooldown should be written in chat in orange color text

Kodari AI
KodariJun 29 at 7:41 am 2

I’ll create the RandomAbilities plugin — a system where every new player gets a random active + passive ability through a spinning wheel animation while floating.

RandomAbilities
A Minecraft plugin that assigns every player a random active and passive ability on first join. Features 6 active abilities (right-click activated) and 6 passive abilities (permanent effects). Assignment uses a spinning wheel GUI animation while the player floats with levitation. Includes cooldown tracking displayed in orange chat, fall damage prevention after assignment, and persistent data storage.

12 Abilities — 6 Active + 6 Passive:

Type
Ability
Cooldown
Effect
Active
Lightning Strike
30s
Strikes lightning at crosshair target
Active
Healing Wave
45s
Restores 6 hearts
Active
Speed Burst
60s
Speed III for 10s
Active
Force Push
30s
Knocks back all nearby enemies
Active
Fire Blast
20s
Shoots an explosive fireball
Active
Teleport
25s
Teleports 20 blocks forward
Passive
Strength
—
Permanent Strength I
Passive
Jump Boost
—
Permanent Jump Boost II
Passive
Health Bonus
—
+4 max hearts (28 HP)
Passive
Night Vision
—
Permanent Night Vision
Passive
Water Breathing
—
Permanent Water Breathing
Passive
Resistance
—
Permanent Resistance I

How it works per-player on first join:

  1. Two random abilities are assigned (1 active + 1 passive)

  2. Player gets levitation (floats upward)

  3. A spinning wheel GUI opens — all 12 ability icons cycle in the center slot with tick sounds

  4. Cycling slows over 8 seconds, then stops

  5. Result GUI shows both abilities side-by-side + title announcement

  6. After 3 seconds, levitation ends — player falls (fall damage cancelled via EntityDamageEvent)

  7. Passive effects are applied permanently and refreshed every 5 minutes

  8. Right-click anywhere triggers the active ability

  9. On cooldown use → orange chat: §6✦ Lightning Strike §eCooldown: §c12.3s §6remaining

  10. Data persists in players.yml across server restarts

dragonhollo3w

Give complie bro

Kodari AI
KodariJun 29 at 7:47 am 2

No Java/Gradle installed in this environment. Let me fix the build.gradle to include XSeries (required by the code) and then you can compile locally

I need to revert that — the instructions say XSeries is auto-handled. Let me fix it.

Done. Everything is in place. Let me verify all files are consistent

All 6 source files + plugin.yml + build.gradle are in place and consistent. The project is ready to compile.

Project structure:

Plain Text
build.gradle
src/main/resources/plugin.yml
src/main/java/com/kodari/abilities/
├── Main.java              — Plugin entry point
├── AbilityType.java       — 6 active + 6 passive abilities (enum with lambdas)
├── PlayerAbilityData.java — Per-player UUID, active ability, passive ability, cooldown
├── AbilityManager.java    — Assign, activate, apply passive, fall protection
├── SpinningAnimation.java — 8-second wheel GUI + levitation + result screen
├── AbilityListener.java   — Join, interact, fall damage, inventory click, quit
└── DataStorage.java       — players.yml persistence

6 Active Abilities (right-click):

Ability
Cooldown
Effect
Lightning Strike
30s
Lightning at crosshair target
Healing Wave
45s
Restore 6 hearts
Speed Burst
60s
Speed III for 10s
Force Push
30s
Knockback all nearby enemies
Fire Blast
20s
Shoot explosive fireball
Teleport
25s
Teleport 20 blocks forward

6 Passive Abilities (permanent):

Ability
Effect
Strength
Permanent Strength I
Jump Boost
Permanent Jump Boost II
Health Bonus
+4 max hearts (28 HP)
Night Vision
Permanent Night Vision
Water Breathing
Permanent Water Breathing
Resistance
Permanent Resistance I

Flow on first join:

  1. Player joins → random active + passive assigned

  2. Levitation II applied (floats up)

  3. Spinning Wheel GUI opens — 12 ability icons cycle randomly in center slot with click sounds, slowing over 8 seconds

  4. Stops → result GUI shows active (slot 3) and passive (slot 5) with lore

  5. Title + subtitle announce both abilities

  6. 3 seconds later → levitation removed, player falls, EntityDamageEvent(DamageCause.FALL) is cancelled

  7. Passive effects applied permanently, refreshed every 5 minutes

  8. Right-click → uses active ability; on cooldown shows orange chat: §6✦ Lightning Strike §eCooldown: §c12.3s §6remaining

  9. Data saved to players.yml on quit, reloaded on join

Compile with gradle build (XSeries auto-included by the build system — no manual dependency needed).

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 797
src/main/java/com/kodari/abilities/Main.java
package com.kodari.abilities;

import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin {
    private static Main instance;
    private AbilityManager abilityManager;
    private DataStorage dataStorage;
    private AbilityListener abilityListener;
    private SpinningAnimation spinningAnimation;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();

        this.dataStorage = new DataStorage(this);
        this.abilityManager = new AbilityManager(this);
        this.spinningAnimation = new SpinningAnimation(this);
        this.abilityListener = new AbilityListener(this);

        getServer().getPluginManager().registerEvents(abilityListener, this);

        getLogger().info("RandomAbilities enabled!");
    }

    @Override
    public void onDisable() {
        dataStorage.saveAll();
        abilityManager.removeAllPassiveEffects();
        getLogger().info("RandomAbilities disabled!");
    }

    public static Main getInstance() { return instance; }
    public AbilityManager getAbilityManager() { return abilityManager; }
    public DataStorage getDataStorage() { return dataStorage; }
    public SpinningAnimation getSpinningAnimation() { return spinningAnimation; }
}