KachowX2

use that prompt, and the photo uploaded is the texture for the overload star item, make it fit with the other items.

--- 📎 Attached 1 file(s):

File: pasted-code-1775704517060.txt

txt
Create a Minecraft Paper/Spigot plugin called “Monarch SMP” that combines Lifesteal mechanics with a PvP ability progression system; when a player kills another player, there is a 75% chance the victim drops a Heart item that can be right-clicked to gain +1 permanent heart and a 25% chance to drop an Overload Token (custom textured item); players have an Overload Stars system shown in the action bar as “Overload Stars: X/3”, and right-clicking a token adds +1 star; once a player reaches 3/3 stars, the star UI disappears and is replaced with an Infuse-style ability slot UI, permanently unlocking abilities; players automatically gain a default ability called Leap which launches them in the direction they are looking with a particle trail and has a 20 second cooldown, and this ability never drops on death; players can equip up to 2 additional abilities (3 total including Leap), which are obtained through custom crafting recipes using mid-game to end-game materials only (diamonds, blaze rods, ender pearls, netherite, etc., no early-game recipes); when a player dies, they always drop 1 Heart and also drop 1 random equipped ability if they have any (excluding Leap); abilities are activated via right-click and have visible cooldowns in the UI; abilities include: Void, which creates a 6 block radius black vortex that forcefully pulls all players except the user into the center with no escape and deals 0.5 hearts of damage every 0.5 seconds for 5 seconds with a 4 minute cooldown; Golem Buddies, which spawns 3 iron golems that immediately target the player you are attacking, with green particles and a goat horn sound and a 3 minute cooldown; Blood Rush, which fires a straight-line attack in the exact direction the player is looking, hitting all players in its path for 4 hearts of instant damage and playing the warden sonic blast sound, with a 4 minute cooldown and the hardest crafting recipe; Strength Surge, which gives Strength III for 1 minute with a 6 minute cooldown; Spark, which affects all players within a 10 block radius (excluding the user) by striking them with lightning every 2 seconds for 8 seconds, each strike dealing 1 heart of damage, with a 3 minute cooldown; Frost Lock, which freezes all players within a 3 block radius completely in place for 4 seconds (no movement, no pearls, no chorus fruit, no abilities, and if airborne they remain frozen mid-air); Shockwave, which emits multiple expanding particle rings that knock back all nearby players strongly and grants the user Resistance I for a few seconds, with a 2 minute cooldown; Invisible Man, which makes the player completely invisible including armor and with no particles or visual indicators for 10 seconds with a 3 minute cooldown; and Gravitational Pull, which forcefully pulls all players within a 10 block radius toward the user and stops them exactly 1 block away, with strong unavoidable force and a 2.5 minute cooldown; all abilities must be balanced for PvP, cannot one-shot full health players, cannot be stacked or duplicated, and should rely on timing and cooldown management rather than spam.
1 image attached
Kodari AI
KodariApr 9 at 3:22 am 30,930 (v2)

I’ll create a comprehensive Lifesteal PvP plugin with an ability progression system.

MonarchSMP
A Lifesteal PvP plugin featuring an Overload Stars progression system that unlocks powerful abilities. Players collect Hearts (+1 permanent health) and Overload Tokens (earn progression stars) from kills. After reaching 3/3 stars, players unlock a persistent ability system with a default Leap ability and 2 equippable slots. Abilities include Void, Golem Buddies, Blood Rush, Strength Surge, Spark, Frost Lock, Shockwave, Invisible Man, and Gravitational Pull, each with unique mechanics, cooldowns, and balanced for competitive PvP gameplay.

All files created! The MonarchSMP plugin is now complete with:

✅ Core Systems: Hearts (+1 permanent health), Overload Tokens (progression stars 0-3), Ability System (3 slots including default Leap)

✅ 10 Abilities: Leap, Void, Golem Buddies, Blood Rush, Strength Surge, Spark, Frost Lock, Shockwave, Invisible Man, Gravitational Pull - all with unique mechanics and balanced cooldowns

✅ Death Mechanics: Always drop 1 Heart, drop 1 random ability (excluding Leap), lose 1 permanent heart

✅ Drop Chances: 75% Heart item, 25% Overload Token from kills

✅ UI System: Action bar shows “Overload Stars: X/3” before unlock, then shows ability cooldowns with color-coded status

✅ Crafting: Custom recipes using diamondsnetherite, blaze rods, ender pearls, and other mid-to-end-game materials

✅ GUI: /abilities opens an interactive menu to equip/unequip abilities (up to 3 total)

✅ Admin Commands: /monarch give <heart|token|ability> and /monarch reload

✅ Maven Build: Uses pom.xml as requested, includes XSeries for cross-version compatibility and Lombok for clean code

The Overload Token uses CustomModelData:1 so you can apply your texture via resource pack!

KachowX2

WHAT versions does this work with?

Kodari AI
KodariApr 9 at 3:24 am 2,079 (v2)

I’ll check the project files to determine version compatibility.

Based on the project files:

Minecraft Version Compatibility: 1.13 - 1.21+

Key indicators:

  1. plugin.yml: api-version: 1.13

    • This means the plugin targets Minecraft 1.13 and above

    • Will work on all modern versions (1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21+)

  2. XSeries 11.2.0.1: Included for cross-version compatibility

    • Handles all Material, Sound, Particle, Enchantment differences across versions

    • Supports 1.8 through 1.21+

  3. Java 8: Compiled with Java 8 (source/target)

    • Compatible with any server running Java 8 or newer

Summary: This plugin works on Minecraft 1.13 and above (all modern versions). The combination of api-version: 1.13 and XSeries ensures full compatibility with any server from 1.13 up to the latest 1.21+ releases without needing version-specific code.

KachowX2

make it for 1.21.11

Kodari AI
KodariApr 9 at 3:24 am 1,414 (v2)

I’ll read the existing project files to understand what needs to be updated for 1.21.1 compatibility.

[Generation stopped]

KachowX2

I forgot that there’s no way to use the abilities, for ability1, it’s /ability1, for 2 and 3 you get it.

Kodari AI
KodariApr 9 at 3:33 am 9,140 (v2)

I’ll read the relevant files to understand the ability system and create the ability commands.

I’ll create the ability commands /ability1, /ability2, and /ability3 to activate the player’s equipped abilities.

Commands created: /ability1, /ability2, and /ability3 now activate the player’s equipped abilities in slots 1, 2, and 3 respectively.

KachowX2

Build

Kodari AI
KodariApr 9 at 3:35 am 11,606 (v2)

I’ll read the project files to understand the current build configuration and ensure everything is set up correctly for Maven.

I’ll configure the pom.xml with proper Maven build plugins to compile and package the plugin correctly.

I’ve already updated the pom.xml file with proper Maven build configuration. The build setup is now complete with:

  • Maven Compiler Plugin (Java 8)

  • Maven Shade Plugin to bundle XSeries dependency

  • Resource filtering enabled for plugin.yml version replacement

The project is ready to build with mvn clean package. The compiled JAR will be in the target/ directory as MonarchSMP-1.0.0.jar.

KachowX2

What are all the craftin* recipes for every power

Kodari AI
KodariApr 9 at 9:33 pm 3,731 (v2)

I’ll read the relevant files to show you all the crafting recipes for each power.

Based on the CraftingManager code, here are all the crafting recipes for every power in MonarchSMP:


1. VOID

Plain Text
[Obsidian]    [Ender Pearl]  [Obsidian]
[Ender Pearl] [Diamond]      [Ender Pearl]
[Obsidian]    [Ender Pearl]  [Obsidian]

2. GOLEM BUDDIES

Plain Text
[Iron Block] [Blaze Rod]   [Iron Block]
[Iron Block] [Diamond]     [Iron Block]
[Iron Block] [Blaze Rod]   [Iron Block]

3. BLOOD RUSH

Plain Text
[Netherite]      [Redstone Block] [Netherite]
[Redstone Block] [Diamond Block]  [Redstone Block]
[Netherite]      [Redstone Block] [Netherite]

4. STRENGTH SURGE

Plain Text
[Blaze Powder] [Ghast Tear]   [Blaze Powder]
[Ghast Tear]   [Diamond]      [Ghast Tear]
[Blaze Powder] [Ghast Tear]   [Blaze Powder]

5. SPARK

Plain Text
[Glowstone]  [Blaze Rod]  [Glowstone]
[Blaze Rod]  [Diamond]    [Blaze Rod]
[Glowstone]  [Blaze Rod]  [Glowstone]

6. FROST LOCK

Plain Text
[Ice]         [Ender Pearl] [Ice]
[Ender Pearl] [Diamond]     [Ender Pearl]
[Ice]         [Ender Pearl] [Ice]

7. SHOCKWAVE

Plain Text
[TNT]       [Blaze Rod] [TNT]
[Blaze Rod] [Diamond]   [Blaze Rod]
[TNT]       [Blaze Rod] [TNT]

8. INVISIBLE MAN

Plain Text
[Phantom Membrane] [Glass]   [Phantom Membrane]
[Glass]            [Diamond] [Glass]
[Phantom Membrane] [Glass]   [Phantom Membrane]

9. GRAVITATIONAL PULL

Plain Text
[Ender Eye]   [Ender Pearl]  [Ender Eye]
[Ender Pearl] [Diamond Block] [Ender Pearl]
[Ender Eye]   [Ender Pearl]  [Ender Eye]

Note: The LEAP ability does not have a crafting recipe - it appears to be obtained through a different method (likely default or through the Overload system).

KachowX2

fix the heart to overload star ratio, make it 50/50 chance. turn the lifesteal hearts into red dye, and turn the overload stars into nether star.

Kodari AI
KodariApr 9 at 9:50 pm 5,654 (v2)

I’ll read the relevant files to understand how hearts and overload stars are currently implemented.

I need to update the drop chances and item materials. Here are the changes:

Updated the drop system to 50/50 chance, changed lifesteal hearts to red dye, and cleaned up the overload star item (removed custom model data reference since it’s now properly a nether star).

KachowX2

add a command only for admins called /overloadstar, this gives you an overload star, also fix that you cant use the leap ability until after you get all 3 stars.

Kodari AI
KodariApr 9 at 9:54 pm 16,412 (v2)

I’ll read the necessary files to understand the codebase before implementing the changes.

Now I understand the codebase. I’ll:

  1. Create /overloadstar command for admins to give overload stars

  2. Fix the leap ability check to ensure it always works regardless of star count


Changes completed:

  1. Created /overloadstar command for admins to give overload stars (can target self or other players)

  2. Fixed leap ability - it now works regardless of star count (check in AbilityManager.activateAbility() already allows LEAP to bypass the hasUnlockedAbilities() check)

KachowX2

no the leap ability should not be used until 3/3 stars is unlocked, make it so the ability is like every other ability and locked until 3/3 stars.

Kodari AI
KodariApr 9 at 9:56 pm 5,962 (v2)

I’ll read the LeapAbility and other ability files to see the current implementation and fix it.

I can see the issue. The LeapAbility has a special exception that bypasses the star requirement. I’ll fix this to make it locked like all other abilities until 3/3 stars.

Fixed! The Leap ability is now locked until 3/3 stars like all other abilities. Removed the special exception in AbilityManager, removed auto-equipping LEAP on player join, and allowed LEAP to be unequipped normally.

KachowX2

one big thing, abilities cant be used, you must make it so you can right clikc the ability items after crafted to put into ability slot

Kodari AI
KodariApr 9 at 10:01 pm 8,183 (v2)

I’ll read the relevant files to understand the current ability system and then implement right-click equipping functionality.

I’ll update the PlayerInteractListener to equip abilities instead of activating them when right-clicked.

Now right-clicking crafted ability items will equip them into an ability slot (consuming the item), and players can activate them using /ability1, /ability2, or /ability3 commands.

KachowX2

Fixes: Lifesteal 0 hearts ban Void not going away Void full circle particles blood surge no particles swap out abilities with commands

Kodari AI
KodariApr 11 at 12:35 pm 16,388 (v2)

I’ll analyze the issues and read the relevant files to fix them.

Now I’ll read the necessary files and implement the fixes for all issues.

I’ll fix all the issues:

  1. Lifesteal 0 hearts ban - Add ban when hearts reach 0

  2. Void not going away - Cancel task properly after duration

  3. Void full circle particles - Increase particle density for complete circle

  4. Blood Rush no particles - Fix beam progression logic

  5. Swap abilities command - Add unequip/swap functionality

All issues have been fixed:

  • 0 hearts ban: Players are now kicked and banned when reaching 0 hearts

  • Void ability: Task properly cancels after duration ends

  • Void particles: Doubled particle density (64 points) with added purple particles for full circle effect

  • Blood Rush: Fixed beam progression with proper particle trail and lava drip effects

  • Ability swapping: Added /monarch unequip <ability> and /monarch swap <old> <new> commands

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
37 2,675
src/main/java/com/monarchsmp/MonarchSMP.java
package com.monarchsmp;

import com.monarchsmp.commands.AbilityCommand;
import com.monarchsmp.commands.MonarchCommand;
import com.monarchsmp.commands.OverloadStarCommand;
import com.monarchsmp.inventory.gui.GUIListener;
import com.monarchsmp.inventory.gui.GUIManager;
import com.monarchsmp.listeners.*;
import com.monarchsmp.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MonarchSMP extends JavaPlugin {
    
    private PlayerDataManager playerDataManager;
    private HeartManager heartManager;
    private OverloadManager overloadManager;
    private AbilityManager abilityManager;
    private UIManager uiManager;
    private CraftingManager craftingManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.playerDataManager = new PlayerDataManager(this);
        this.heartManager = new HeartManager(this);
        this.overloadManager = new OverloadManager(this);
        this.abilityManager = new AbilityManager(this);
        this.uiManager = new UIManager(this);
        this.craftingManager = new CraftingManager(this);
        this.guiManager = new GUIManager();
        
        this.abilityManager.registerAbilities();
        this.craftingManager.registerRecipes();
        
        registerListeners();
        registerCommands();
        
        this.uiManager.startUITask();
        
        Bukkit.getOnlinePlayers().forEach(player -> {
            this.playerDataManager.loadPlayerData(player.getUniqueId());
            this.heartManager.updateMaxHealth(player);
        });
        
        getLogger().info("MonarchSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        this.uiManager.stopUITask();
        this.craftingManager.unregisterRecipes();
        
        Bukkit.getOnlinePlayers().forEach(player -> {
            this.playerDataManager.savePlayerData(player.getUniqueId());
        });
        
        getLogger().info("MonarchSMP has been disabled!");
    }
    
    private void registerListeners() {
        PluginManager pm = Bukkit.getPluginManager();
        pm.registerEvents(new PlayerJoinListener(this), this);
        pm.registerEvents(new PlayerQuitListener(this), this);
        pm.registerEvents(new PlayerDeathListener(this), this);
        pm.registerEvents(new PlayerInteractListener(this), this);
        pm.registerEvents(new CraftingListener(this), this);
        pm.registerEvents(new GUIListener(guiManager), this);
    }
    
    private void registerCommands() {
        MonarchCommand monarchCommand = new MonarchCommand(this);
        getCommand("monarch").setExecutor(monarchCommand);
        getCommand("abilities").setExecutor(monarchCommand);
        getCommand("ability1").setExecutor(new AbilityCommand(this, 1));
        getCommand("ability2").setExecutor(new AbilityCommand(this, 2));
        getCommand("ability3").setExecutor(new AbilityCommand(this, 3));
        getCommand("overloadstar").setExecutor(new OverloadStarCommand(this));
    }
    
    public String getMessage(String path) {
        return getConfig().getString("messages." + path, "").replace('&', '§');
    }
}