quinnthomasbrk9mx
📎 1 file 8,574 chars
📄
pasted-code-1773812190229.txt
txt 625 lines
▶
PLUGIN NAME: Bloodline Ascension SMP

SERVER: Paper / Spigot Minecraft 1.21+

---

CORE CONCEPT

Players choose a Bloodline (Race) that gives special powers.

Each bloodline includes:

• Limited player slots
• Passive abilities
• Normal ability
• Emperor passive ability
• Emperor ability
• Awakening tasks
• Only 1 Emperor per bloodline

Dragon is the strongest bloodline.
Leviathan is the second strongest.

---

BLOODLINE POWER RANKING

1. Dragon (Strongest)
2. Leviathan
3. Phoenix
4. Titan
5. Shadow
6. Storm
7. Sandworm
8. Celestial

---

PLAYER JOIN SYSTEM

When a player joins:

Check if the player already has a bloodline.

IF player has no bloodline

→ Open Bloodline Selection INVENTORY GUI automatically.

Delay INVENTORY GUI by 1 second after join to prevent bugs.

INVENTORY GUI title:

"Choose Your Bloodline"

Players must select a bloodline.

If INVENTORY GUI closed without selecting:

Reopen after 2 seconds.

---

BLOODLINE LIMITS

Dragon – 3 players (1 Emperor)
Leviathan – 3 players (1 Emperor)
Phoenix – 3 players (1 Emperor)
Titan – 4 players (1 Emperor)
Shadow – 4 players (1 Emperor)
Storm – 4 players (1 Emperor)
Sandworm – 3 players (1 Emperor)
Celestial – 2 players (1 Emperor)

If bloodline is full it appears LOCKED in INVENTORY GUI.

---

BLOODLINE CHOOSE SYSTEM

Command:

/bloodline choose

Opens Bloodline selection INVENTORY GUI.

Rules:

• Player can choose only once
• Bloodline cannot be changed
• Player receives Dormant Bloodline

Admin reset command:

/bloodline reset 

---

/BLOODLINE COMMAND MENU

Command:

/bloodline

Shows help menu.

Example:

Bloodline Commands

/bloodline choose
/bloodline awaken
/bloodline awaken task
/bloodline ability
/bloodline info

Admins also see:

/bloodline set
/bloodline remove
/bloodline setemperor
/bloodline removeemperor
/bloodline reset
/bloodline list
/bloodline slots

---

ABILITY SYSTEM

Command:

/bloodline ability

Logic:

IF player is NOT Emperor

→ Activate Normal Ability

Works even if bloodline is NOT awakened.

IF player is Emperor AND awakened

→ Activate Emperor Ability.

If player tries Emperor ability without awakening:

Show message:

"Awaken your bloodline to unlock Emperor power."

---

COOLDOWN SYSTEM

Normal ability cooldown:

20 seconds

Emperor ability cooldown:

120 seconds

Cooldown shown using ActionBar timer.

Example:

Ability Cooldown: 18s

---

PASSIVE EFFECT SYSTEM (INFINITE)

All bloodline passive effects must be applied with infinite duration.

Implementation example:

player.addPotionEffect(
new PotionEffect(PotionEffectType.FIRE_RESISTANCE,
Integer.MAX_VALUE,
0,
false,
false,
true)
);

Rules:

• Passive effects never expire
• Passive effects reapply automatically if removed
• Passive effects restore if player dies
• Passive effects restore if player rejoins
• Passive effects restore if player changes world

---

ABILITY STACK PREVENTION

Before activating ability:

Check if ability already active.

If active:

Send message:

"Ability already active."

---

ABILITY CLEANUP

If player:

• dies
• logs out
• teleports world

Then:

• cancel ability task
• remove potion effects
• remove player from active ability map

---

ANTI FARMING SYSTEM

Only unique player kills count for tasks.

If same player killed within 30 minutes

Kill does NOT count.

---

AWAKENING TASKS

Dragon

Kill 6 unique players
Pop 3 totems
Kill 25 mobs
Mine 2 ancient debris

Leviathan

Kill 5 unique players
Pop 3 totems
Kill 20 mobs
Swim 2000 blocks

Phoenix

Kill 5 unique players
Pop 3 totems
Survive lava 20 seconds
Kill 15 mobs while burning

Titan

Kill 5 unique players
Pop 3 totems
Mine 3 stacks stone
Kill 20 mobs

Shadow

Kill 5 unique players
Pop 3 totems
Kill 15 mobs at night
Travel 3000 blocks

Storm

Kill 5 unique players
Pop 3 totems
Kill 10 mobs with trident
Survive thunderstorm

Sandworm

Kill 5 unique players
Pop 3 totems
Travel 2000 blocks in desert
Kill 15 mobs on sand

Celestial

Kill 5 unique players
Pop 3 totems
Heal 20 hearts with golden apples
Survive PvP with 3 players

---

AWAKENING RITUAL SYSTEM

After completing tasks player must type:

/bloodline awaken

This starts a ritual event.

---

ASCENSION RITUAL

Duration: 10 minutes

Broadcast:

⚠ PlayerName has begun the Bloodline Ascension Ritual.

Hunt them before they ascend.

---

HUNT SYSTEM

During ritual:

• Player coordinates appear on BossBar
• BossBar updates every 3 seconds

Example:

HUNT THE ASCENDING PLAYER
PlayerName - X: 1243 Z: -882

---

RITUAL FAILURE

If the ascending player dies during the ritual:

• Ritual fails
• Bloodline does NOT awaken
• Player must redo tasks

Broadcast:

⚔ PlayerName failed the Ascension Ritual.

---

RITUAL SUCCESS

If player survives full 10 minutes:

• Bloodline becomes AWAKENED
• Player becomes Emperor of that bloodline
• Emperor passive unlocks
• Emperor ability unlocks

Broadcast:

👑 PlayerName has ascended and become the Emperor of the Dragon Bloodline.

---

DRAGON (STRONGEST)

Before Awakening Passive

+4 hearts
Fire Resistance
Sword automatically gets Fire Aspect II
Iron and Gold auto-smelt when mined with pickaxe

Normal Ability: Dragon Burst

Strength I
Enemies around player burn

Duration: 4 seconds
Cooldown: 20 seconds

After Awakening Passive

Fire Resistance
Resistance I
Strength II
+4 hearts

All effects permanent.

Awakened Ability: Inferno Dominion

Strength III
Fire aura around player
Knockback enemies

Duration: 6 seconds
Cooldown: 120 seconds

---

DRAGON EMPEROR

Emperor Passive

+8 hearts
Fire Resistance
Resistance I
Strength II
Lava immunity

Emperor Ability: World Flame

Strength III
Massive knockback explosion
Enemies burn in 10 block radius

Duration: 6 seconds
Cooldown: 120 seconds

---

LEVIATHAN

Passive

Water breathing
Dolphins grace
+3 hearts

Normal Ability: Ocean Pull

Pull enemies toward player
Slowness I

Cooldown: 20 seconds

Emperor Ability: Leviathan Surge

Strength II
Regeneration II

Duration: 6 seconds
Cooldown: 120 seconds

---

PHOENIX

Passive

Fire Resistance
Regeneration when low HP

Normal Ability: Flame Dash

Dash forward and burn enemies

Cooldown: 20 seconds

Emperor Ability: Phoenix Rebirth

Heal 20 hearts
Regeneration III

Duration: 5 seconds
Cooldown: 120 seconds

---

TITAN

Passive

+4 hearts

Normal Ability: Titan Slam

Ground smash attack
Knockback enemies

Cooldown: 20 seconds

Emperor Ability: Titan Rage

Strength II
Resistance I

Duration: 6 seconds
Cooldown: 120 seconds

---

SHADOW

Passive

Speed I
Night vision

Normal Ability: Shadow Dash

Teleport 10 blocks

Cooldown: 20 seconds

Emperor Ability: Shadow Realm

Invisibility
Speed I

Duration: 6 seconds
Cooldown: 120 seconds

---

STORM

Passive

Speed I
Lightning immunity

Normal Ability: Thunder Strike

Summon lightning on target

Cooldown: 20 seconds

Emperor Ability: Storm Fury

Speed I
Lightning strikes around player

Duration: 6 seconds
Cooldown: 120 seconds

---

SANDWORM

Passive

+2 hearts
No fall damage on sand

Normal Ability: Sand Dive

Player burrows underground
Moves faster on sand

Duration: 3 seconds
Cooldown: 20 seconds

Emperor Ability: Desert Devour

Sand explosion
Pull enemies inward
Blindness effect

Duration: 6 seconds
Cooldown: 120 seconds

---

CELESTIAL

Passive

Regeneration I
+2 hearts

Normal Ability: Celestial Heal

Heal nearby allies

Cooldown: 20 seconds

Emperor Ability: Divine Blessing

Full heal
Strength II

Duration: 5 seconds
Cooldown: 120 seconds

---

EMPEROR COMMANDS

/bloodline setemperor 

/bloodline removeemperor 

Only one emperor per bloodline.

If new emperor set → old emperor removed.

---

ADMIN COMMANDS

/bloodline set  

/bloodline remove 

/bloodline setemperor 

/bloodline removeemperor 

/bloodline reset 

/bloodline list

/bloodline slots

---

FINAL REQUIREMENTS

Abilities must:

• Stop after duration
• Respect cooldowns
• Not stack
• Not run infinitely
• Work correctly in PvP SMP servers
Kodari AI
KodariMar 18 at 5:41 am 36,349 (v2)

I’ll create a comprehensive Bloodline Ascension SMP plugin with GUI-based bloodline selection, awakening tasks, ascension rituals, and emperor system.

BloodlineAscension
A competitive SMP plugin where players choose powerful bloodline races with unique abilities and passive effects. Features limited slots per bloodline, awakening task progression, 10-minute ascension rituals with coordinate broadcasting, and an emperor system where one player per bloodline gains ultimate power. Includes 8 bloodlines ranked by strength, anti-farming mechanics, infinite passive effects, ability cooldowns, and GUI-based selection.

All files created successfully! The BloodlineAscension plugin includes complete bloodline selection GUI, awakening tasks, ascension ritual system with hunt mechanics, emperor system, infinite passive effects, ability cooldowns, anti-farming protection, and all administrative commands.

quinnthomasbrk9mx
📎 1 file 3,642 chars
📄
pasted-code-1773814093427.txt
txt 286 lines
▶
PLUGIN NAME: Bloodline Ascension SMP (FULL MASTER VERSION)

SERVER: Paper / Spigot 1.21+

---

CORE CONCEPT

Players choose a Bloodline (Race) with unique powers.

Each bloodline includes:

• Limited slots
• Passive abilities (always active)
• Normal ability
• Emperor ability
• Awakening tasks
• Only ONE Emperor per bloodline

Dragon = Strongest
Leviathan = Second strongest

---

BLOODLINES

Dragon (3 players)
Leviathan (3 players)
Phoenix (3 players)
Titan (4 players)
Shadow (4 players)
Storm (4 players)
Sandworm (3 players)
Celestial (2 players)

---

PLAYER JOIN SYSTEM

• On first join:

* Wait 20 ticks
* Open INVENTORY GUI

• If player closes INVENTORY GUI:

* Reopen after 40 ticks

---

INVENTORY GUI SYSTEM

Title: "Choose Your Bloodline"

• Use InventoryClickEvent
• Cancel click
• Detect item by name
• Assign bloodline

If bloodline full → show LOCKED

---

COMMAND SYSTEM

/bloodline → menu
/bloodline choose → INVENTORY GUI
/bloodline ability → use ability
/bloodline awaken → start ritual
/bloodline awaken task → show tasks
/bloodline info → info

ADMIN:

/bloodline set  
/bloodline remove 
/bloodline setemperor 
/bloodline removeemperor 
/bloodline reset 

---

DATA SYSTEM

Store:

UUID → Bloodline
UUID → Awakened
Bloodline → Emperor UUID
UUID → Active Ability

Save in config.yml

---

PASSIVE SYSTEM (INFINITE)

• Reapply every 5 sec
• Use Integer.MAX_VALUE

---

DRAGON (FIXED)

Passive:

• +4 hearts
• Fire Resistance

Fire Ability Fix:

Use EntityDamageByEntityEvent:

→ target.setFireTicks(160)

Auto Smelt:

Use BlockBreakEvent:

IRON_ORE → IRON_INGOT
GOLD_ORE → GOLD_INGOT

Cancel default drops

---

ABILITY SYSTEM (FINAL)

RULES:

Before awakening → 8 sec
After awakening → 10 sec
Emperor → 10 sec

---

ACTIVATION

if activeAbilities contains player:
send "Ability already active"
return

add player to activeAbilities

---

ABILITY TIMER (IMPORTANT)

new BukkitRunnable() {

```
int time = isAwakened(player) ? 10 : 8;

@Override
public void run() {

    if (time <= 0) {

        removeAbility(player)
        activeAbilities.remove(player)
        cancel()
        return
    }

    time--

}
```

}.runTaskTimer(plugin, 0, 20)

---

COOLDOWN

Normal → 20 sec
Emperor → 120 sec

---

CLEANUP SYSTEM

Run ONLY on:

• Death
• Quit
• World change

---

EMPEROR SYSTEM

• Only 1 emperor per bloodline

If new emperor set:

→ remove old one

---

AWAKENING TASKS

Dragon:

Kill 6 players
Pop 3 totems
Kill 25 mobs
Mine 2 ancient debris

(Similar for others)

---

RITUAL SYSTEM

Command:

/bloodline awaken

• Start 10 min ritual

---

RITUAL EVENT

• BossBar visible to all players
• Update every 3 sec
• Show coordinates

---

FAIL

If player dies:

• Ritual fails
• Reset tasks

---

SUCCESS

After 10 min:

• awakened = true
• set emperor

Broadcast:

"Player has ascended!"

---

ANTI FARM

• Same player kill within 30 min → ignore

---

IMPORTANT FIX RULES

✔ Commands must return true
✔ INVENTORY GUI clicks must be cancelled
✔ Always check null item
✔ Never stack abilities
✔ Never cancel ability early
✔ Always use timer
✔ Reapply passives always

---

FINAL RESULT

✔ Commands working
✔ INVENTORY GUI working
✔ Abilities working
✔ Dragon fire working
✔ Auto smelt working
✔ Ability duration fixed
✔ Emperor working
✔ Ritual working
✔ No bugs
✔ SMP READY

---
Kodari AI
KodariMar 18 at 6:10 am 39,307 (v2)

I’ll analyze your Bloodline Ascension plugin and ensure it matches the specification perfectly. Let me read all the files first to identify any issues.

Analysis Complete

I’ve analyzed your Bloodline Ascension plugin against the specification. I found 7 critical issues that need fixing:

Issues Found:

  1. Ability durations are incorrect - should be 8 sec (160 ticks) before awakening, 10 sec (200 ticks) after/emperor

  2. Missing ability timer countdown - spec requires visible countdown using BukkitRunnable

  3. Missing Dragon fire damage listener - EntityDamageByEntityEvent for additional fire damage

  4. Missing Dragon auto smelt - BlockBreakEvent to smelt ores automatically

  5. Missing GUI reopen logic - if player closes without selecting, reopen after 40 ticks

  6. BossBar updates too frequently - should update every 3 seconds (60L), not every second

  7. Ability duration logic - needs to check awakened status for proper duration

Let me fix all these issues now:

quinnthomasbrk9mx

reset everythimg mow follow this promt

📎 1 file 3,642 chars
📄
pasted-code-1773815167177.txt
txt 286 lines
▶
PLUGIN NAME: Bloodline Ascension SMP (FULL MASTER VERSION)

SERVER: Paper / Spigot 1.21+

---

CORE CONCEPT

Players choose a Bloodline (Race) with unique powers.

Each bloodline includes:

• Limited slots
• Passive abilities (always active)
• Normal ability
• Emperor ability
• Awakening tasks
• Only ONE Emperor per bloodline

Dragon = Strongest
Leviathan = Second strongest

---

BLOODLINES

Dragon (3 players)
Leviathan (3 players)
Phoenix (3 players)
Titan (4 players)
Shadow (4 players)
Storm (4 players)
Sandworm (3 players)
Celestial (2 players)

---

PLAYER JOIN SYSTEM

• On first join:

* Wait 20 ticks
* Open INVENTORY GUI

• If player closes INVENTORY GUI:

* Reopen after 40 ticks

---

INVENTORY GUI SYSTEM

Title: "Choose Your Bloodline"

• Use InventoryClickEvent
• Cancel click
• Detect item by name
• Assign bloodline

If bloodline full → show LOCKED

---

COMMAND SYSTEM

/bloodline → menu
/bloodline choose → INVENTORY GUI
/bloodline ability → use ability
/bloodline awaken → start ritual
/bloodline awaken task → show tasks
/bloodline info → info

ADMIN:

/bloodline set  
/bloodline remove 
/bloodline setemperor 
/bloodline removeemperor 
/bloodline reset 

---

DATA SYSTEM

Store:

UUID → Bloodline
UUID → Awakened
Bloodline → Emperor UUID
UUID → Active Ability

Save in config.yml

---

PASSIVE SYSTEM (INFINITE)

• Reapply every 5 sec
• Use Integer.MAX_VALUE

---

DRAGON (FIXED)

Passive:

• +4 hearts
• Fire Resistance

Fire Ability Fix:

Use EntityDamageByEntityEvent:

→ target.setFireTicks(160)

Auto Smelt:

Use BlockBreakEvent:

IRON_ORE → IRON_INGOT
GOLD_ORE → GOLD_INGOT

Cancel default drops

---

ABILITY SYSTEM (FINAL)

RULES:

Before awakening → 8 sec
After awakening → 10 sec
Emperor → 10 sec

---

ACTIVATION

if activeAbilities contains player:
send "Ability already active"
return

add player to activeAbilities

---

ABILITY TIMER (IMPORTANT)

new BukkitRunnable() {

```
int time = isAwakened(player) ? 10 : 8;

@Override
public void run() {

    if (time <= 0) {

        removeAbility(player)
        activeAbilities.remove(player)
        cancel()
        return
    }

    time--

}
```

}.runTaskTimer(plugin, 0, 20)

---

COOLDOWN

Normal → 20 sec
Emperor → 120 sec

---

CLEANUP SYSTEM

Run ONLY on:

• Death
• Quit
• World change

---

EMPEROR SYSTEM

• Only 1 emperor per bloodline

If new emperor set:

→ remove old one

---

AWAKENING TASKS

Dragon:

Kill 6 players
Pop 3 totems
Kill 25 mobs
Mine 2 ancient debris

(Similar for others)

---

RITUAL SYSTEM

Command:

/bloodline awaken

• Start 10 min ritual

---

RITUAL EVENT

• BossBar visible to all players
• Update every 3 sec
• Show coordinates

---

FAIL

If player dies:

• Ritual fails
• Reset tasks

---

SUCCESS

After 10 min:

• awakened = true
• set emperor

Broadcast:

"Player has ascended!"

---

ANTI FARM

• Same player kill within 30 min → ignore

---

IMPORTANT FIX RULES

✔ Commands must return true
✔ INVENTORY GUI clicks must be cancelled
✔ Always check null item
✔ Never stack abilities
✔ Never cancel ability early
✔ Always use timer
✔ Reapply passives always

---

FINAL RESULT

✔ Commands working
✔ INVENTORY GUI working
✔ Abilities working
✔ Dragon fire working
✔ Auto smelt working
✔ Ability duration fixed
✔ Emperor working
✔ Ritual working
✔ No bugs
✔ SMP READY

---
Kodari AI
KodariMar 18 at 6:28 am 37,173 (v2)

I’ll analyze the existing structure and rebuild the plugin according to the specifications.

I’ll rebuild the entire plugin from scratch following the specifications exactly. Let me start by analyzing what needs to be created.

Plan:

  1. Rebuild all managers with exact specifications from prompt

  2. Fix ability timer system to match specification

  3. Ensure all commands work correctly

  4. Verify GUI system with proper reopening logic

  5. Implement all passive effects and abilities correctly

  6. Add proper anti-farm and ritual systems

Plugin rebuilt with all specifications from the prompt. All systems are now properly implemented including the exact ability timer system, GUI reopening logic, dragon abilities, anti-farm system, ritual system, and all commands working correctly.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
37 2,490
src/main/java/com/bloodline/BloodlineAscension.java
package com.bloodline;

import com.bloodline.ability.AbilityManager;
import com.bloodline.bloodline.BloodlineManager;
import com.bloodline.commands.BloodlineCommand;
import com.bloodline.data.PlayerDataManager;
import com.bloodline.inventory.gui.GUIListener;
import com.bloodline.inventory.gui.GUIManager;
import com.bloodline.listeners.*;
import com.bloodline.ritual.RitualManager;
import com.bloodline.task.TaskManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BloodlineAscension extends JavaPlugin {
    private PlayerDataManager playerDataManager;
    private BloodlineManager bloodlineManager;
    private AbilityManager abilityManager;
    private TaskManager taskManager;
    private RitualManager ritualManager;
    private GUIManager guiManager;

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

        this.playerDataManager = new PlayerDataManager(this);
        this.bloodlineManager = new BloodlineManager(this);
        this.abilityManager = new AbilityManager(this);
        this.taskManager = new TaskManager(this);
        this.ritualManager = new RitualManager(this);
        this.guiManager = new GUIManager();

        getCommand("bloodline").setExecutor(new BloodlineCommand(this));

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TaskTrackingListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PassiveEffectListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DragonAbilityListener(this), this);

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            bloodlineManager.reapplyPassives();
        }, 20L, 100L);

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

    @Override
    public void onDisable() {
        if (ritualManager != null) {
            ritualManager.cancelAllRituals();
        }
        if (abilityManager != null) {
            abilityManager.cleanup();
        }
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
        getLogger().info("BloodlineAscension disabled!");
    }
}