notlukaknighttt
📎 1 file 36,084 chars
📄
RacePlugin-fixed_COMPLETE_BREAKDOWN.txt
txt 1887 lines
▶
RACEPLUGIN-FIXED — COMPLETE PLUGIN BREAKDOWN
================================================

Source archive inspected:
RacePlugin-fixed.zip

Archive contents:
- 47 Java source files
- plugin.yml
- pom.xml
- 49 files total

This document contains the full breakdown of the plugin: its gameplay, files, commands, messages, abilities, V4 system, persistence, and implementation quirks.

================================================
1. WHAT THIS PLUGIN IS
================================================

This is a Minecraft/Paper race system with six races:

Human
Mink
Ghoul
Cyborg
Angel
Shark

Each race has four versions:

V1 = basic passive
V2 = active ability
V3 = upgraded passive
V4 = staged transformation/ultimate system

High-level ability table:

Human
- V1: attack damage
- V2: Last Stand
- V3: more attack damage
- V4: seven arrows + Second Life

Mink
- V1: speed
- V2: Dash
- V3: much more speed
- V4: enhanced dash + Ultimate

Ghoul
- V1: no implemented passive
- V2: Soul Drain
- V3: speed + damage + lifesteal
- V4: skull attack + capped lifesteal

Cyborg
- V1: no implemented passive
- V2: temporary armor
- V3: armor + knockback resistance + reduced hunger loss
- V4: chain damage + bleed + lightning ultimate

Angel
- V1: no implemented passive
- V2: Divine Flight
- V3: regeneration
- V4: flight + Shulker Bullet + stun aura

Shark
- V1: water breathing
- V2: Deep Predator
- V3: water/land resistance
- V4: Ice Throw + slowing water aura

================================================
2. NEW-PLAYER EXPERIENCE
================================================

When a player joins:

If they already have race data:
- Race data is loaded from races.yml.
- Their race and version are restored.
- V4 quest progress, stage and meter are restored.
- Their correct base passive is reapplied.

If they do not have race data:
- A random race is selected from the six races.
- The player starts at V1.
- Quest progress = 0.
- V4 stage = 0.
- V4 meter = 0.

The new player receives:

✦ RACE AWAKENED ✦
Your race is: 
Race Version: V1

The random race list is:
HUMAN
MINK
GHOUL
CYBORG
ANGEL
SHARK

Java's random selection makes the intended odds approximately equal among the six.

================================================
3. VERSION SYSTEM
================================================

V1:
The basic passive.

V2:
Keeps the V1 passive and adds a V2 active ability.

V3:
Removes/replaces the V1 passive and applies a stronger V3 passive.

V4:
Uses the V3 passive as its base, then adds the V4 system and race-specific abilities.

A V4 player therefore still gets the V3 base passive.

Many V2 abilities are disabled while V4 is active.

================================================
4. V4 SYSTEM
================================================

V4 player data includes:
- Quest progress: 0–3
- Stage: 0–3
- Meter: 0–100%

There are three intended quests and three intended stages.

IMPORTANT:
The code contains completeQuest(player, quest), but no gameplay code in this plugin actually calls it.

Therefore:
- There is no real quest objective system implemented.
- There are no actual kill/collection/survival quests implemented here.
- /v4 quest <1-3> checks quest status.
- It does not complete quests.

The practical way to give quest/stage progress is the OP /change command.

================================================
5. /v4 ACTIVATION
================================================

Command:
 /v4

Requirements:
- Version must be 4 or higher.
- Quest 1 must be complete.
- V4 meter must be at 100%.

The actual meter check is approximately:
meter >= 99.999

On success:

✦ V4 ACTIVATED ✦
V4 Stage  active.

The V4 meter then drains.

There is no normal /v4 off command.

================================================
6. V4 METER
================================================

Meter range:
0% to 100%

When a V4 player hits another player:
+100/15 = approximately +6.67%

When a V4 player hits a mob:
+100/60 = approximately +1.67%

The meter is capped at 100%.

Meter updates are displayed as:

V4 Meter: % filled

The meter can be charged before activating V4.

Important:
Some real ability damage can also participate in the V4 damage listener because the meter system listens for damage events.

Cyborg's special secondary/internal damage is marked internal so it does not recursively generate more chain effects or extra meter.

================================================
7. V4 METER DRAIN
================================================

While V4 is active:
- Meter drains 1% per second.

At 0%:

V4 ended: V4 Meter empty

V4 then deactivates.

Special one-use V4 abilities are reset when the V4 activation ends normally.

================================================
8. COMMON V4 STAGE 1
================================================

All active V4 players get:
- Glowing
- Resistance I

Everyone except Mink gets +10% movement speed.

Mink does not get that shared +10% speed modifier.

Shark also gets +10% attack damage in common V4 Stage 1.

So:

Human:
- Glowing
- Resistance I
- +10% speed

Mink:
- Glowing
- Resistance I

Ghoul:
- Glowing
- Resistance I
- +10% speed

Cyborg:
- Glowing
- Resistance I
- +10% speed

Angel:
- Glowing
- Resistance I
- +10% speed

Shark:
- Glowing
- Resistance I
- +10% speed
- +10% damage

================================================
9. HUMAN
================================================

HUMAN V1
---------

Actual implemented passive:
+40% attack damage

IMPORTANT COMMENT/CODE MISMATCH:
The source comment says +80%, but the actual constant is 0.40, so the implemented value is +40%.

If the attack damage attribute is unavailable, the plugin can display:
Attack damage attribute is NULL

HUMAN V2 — LAST STAND
---------------------

Activation:
- Right-click
- Main hand
- Air or block
- Disabled while V4 is active

Cooldown:
60 seconds

Duration:
20 seconds

Activation message:
⚔ LAST STAND ACTIVATED! 20 seconds

Activation also plays an attack sound and spawns flame particles.

Damage scaling while active:

Above 75% health:
- 1.00x damage

50–75%:
- 1.10x

25–50%:
- 1.20x

10–25%:
- 1.35x

10% or less:
- 1.50x

Only damage from a Player damager is handled by this specific listener.

IMPORTANT NAME MISMATCH:
The listener is called HumanV2FlashStepListener, but the actual ability implemented is Last Stand.
There is no actual flash-step teleport in this V2 ability.

HUMAN V3
---------

Actual passive:
+60% attack damage

HUMAN V4 STAGE 2 — SEVEN ARROWS
--------------------------------

Activation:
- Right-click
- V4 active
- Stage 2 or higher

Fires:
7 arrows

Spread:
-3, -2, -1, 0, +1, +2, +3

Arrow damage:
3.0 HP

Approximate projectile speed:
2.5

Arrows:
- Cannot be picked up.
- Are tagged with persistent data identifying them as Human V4 arrows.

Cooldown:
5 seconds

Action bar:
⚔ Human Arrows 
Kodari AI
KodariSep 21 at 3:04 pm 4
RaceAwakening
A Minecraft Paper plugin assigning players one of six races (Human, Mink, Ghoul, Cyborg, Angel, Shark) with four progression versions. V1 provides basic passives, V2 adds active abilities like Last Stand, Dash, Soul Drain, Cyborg Armor, Divine Flight, and Deep Predator. V3 upgrades passives with damage, speed, lifesteal, armor, and regeneration. V4 introduces a quest/stage/meter system enabling transformations with race-specific ultimates: seven arrows, enhanced dash, skull attacks, chain damage, shulker bullets, and ice throws. Includes persistent YAML storage, cooldown action bars, particle effects, and OP commands for race manipulation.

I’ll create the complete Paper plugin structure from the supplied breakdown: build metadata, persistence/core systems, commands, passive/version abilities, V4 engine, and all registered listeners.

Created the RacePlugin project from scratch with:

  • Paper/Maven build configuration and plugin.yml

  • Persistent YAML race data and random first-time race assignment

  • /race, /change, and /v4 commands

  • Six races with V1–V4 progression

  • V2 active abilities, V3 passives, and V4 meter/stage systems

  • V4 activation, draining, combat meter gain, and Second Life

  • Race-specific combat abilities and listeners

  • Ability suppression, internal damage tracking, and shared projectile helper

  • Shark water/resistance handling and player lifecycle listeners

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
50 759
src/main/java/me/luka/Race/RacePlugin.java
package me.luka.Race;

import me.luka.Race.angel.AngelV2FlightListener;
import me.luka.Race.angel.AngelV4;
import me.luka.Race.cyborg.CyborgV2RocketDashListener;
import me.luka.Race.cyborg.CyborgV3Listener;
import me.luka.Race.cyborg.CyborgV4;
import me.luka.Race.ghoul.GhoulV2SoulDrainListener;
import me.luka.Race.ghoul.GhoulV3Listener;
import me.luka.Race.ghoul.GhoulV4;
import me.luka.Race.human.HumanV2FlashStepListener;
import me.luka.Race.human.HumanV2LastStandDamageListener;
import me.luka.Race.human.HumanV4;
import me.luka.Race.mink.MinkV2DashListener;
import me.luka.Race.mink.MinkV4;
import me.luka.Race.shark.SharkV2DamageListener;
import me.luka.Race.shark.SharkV2RushListener;
import me.luka.Race.shark.SharkV3Listener;
import me.luka.Race.shark.SharkV4;
import org.bukkit.plugin.java.JavaPlugin;

public class RacePlugin extends JavaPlugin {
    private RaceManager raceManager;
    private V4Manager v4Manager;
    private AbilityBlockManager abilityBlockManager;
    private InternalDamageManager internalDamageManager;

    @Override
    public void onEnable() {
        raceManager = new RaceManager(this);
        v4Manager = new V4Manager(this);
        abilityBlockManager = new AbilityBlockManager();
        internalDamageManager = new InternalDamageManager();
        getServer().getPluginManager().registerEvents(new PlayerRaceListener(this), this);
        getServer().getPluginManager().registerEvents(new V4CoreListener(this), this);
        getServer().getPluginManager().registerEvents(new HumanV2FlashStepListener(this), this);
        getServer().getPluginManager().registerEvents(new HumanV2LastStandDamageListener(this), this);
        getServer().getPluginManager().registerEvents(new HumanV4(this), this);
        getServer().getPluginManager().registerEvents(new MinkV2DashListener(this), this);
        getServer().getPluginManager().registerEvents(new MinkV4(this), this);
        getServer().getPluginManager().registerEvents(new GhoulV2SoulDrainListener(this), this);
        getServer().getPluginManager().registerEvents(new GhoulV3Listener(this), this);
        getServer().getPluginManager().registerEvents(new GhoulV4(this), this);
        getServer().getPluginManager().registerEvents(new CyborgV2RocketDashListener(this), this);
        getServer().getPluginManager().registerEvents(new CyborgV3Listener(this), this);
        getServer().getPluginManager().registerEvents(new CyborgV4(this), this);
        getServer().getPluginManager().registerEvents(new AngelV2FlightListener(this), this);
        getServer().getPluginManager().registerEvents(new AngelV4(this), this);
        getServer().getPluginManager().registerEvents(new SharkV2RushListener(this), this);
        getServer().getPluginManager().registerEvents(new SharkV2DamageListener(this), this);
        getServer().getPluginManager().registerEvents(new SharkV3Listener(this), this);
        getServer().getPluginManager().registerEvents(new SharkV4(this), this);
        getCommand("race").setExecutor(new RaceCommand(this));
        getCommand("change").setExecutor(new RaceCommand(this));
        getCommand("v4").setExecutor(new RaceCommand(this));
        getLogger().info("RacePlugin enabled!");
        getLogger().info("V4 system initialized!");
    }

    @Override
    public void onDisable() { getLogger().info("RacePlugin disabled!"); }
    public RaceManager getRaceManager() { return raceManager; }
    public V4Manager getV4Manager() { return v4Manager; }
    public AbilityBlockManager getAbilityBlockManager() { return abilityBlockManager; }
    public InternalDamageManager getInternalDamageManager() { return internalDamageManager; }
}