Bemmbu Xdd
📎 1 file 15,214 chars
📄
pasted-code-1789810818061.txt
txt 203 lines
▶
Kodari AI, act as an Expert Minecraft Java Developer specializing in the modern Paper 1.21.11 API. Your task is to generate the Java code for a highly complex, cinematic Minecraft plugin based exactly on the blueprint provided below. Ensure you use modern Paper implementations (Adventure API/MiniMessage, ParticleBuilder, AsyncChatEvent) and write highly optimized, production-ready code.

Plugin Design Document: Shadow Monarch (Solo Leveling) - Ultimate Visual & Audio Edition
This document serves as the final, fully compiled blueprint for Kodari AI. It is strictly optimized for a Minecraft Paper 1.21.11 server environment. It integrates all core architectures, elite mob kits, custom chat listeners, persistent data, individual/global stances, Beru's personality hooks, Kaisel's gargoyle perch, and heavy, anime-accurate VFX (Visual Effects) and SFX (Sound Effects) enhancements.

1. Core Architecture, Engine & Authentication
Target Engine: Strictly Paper 1.21.11. You must utilize modern Paper API features (e.g., Adventure API/MiniMessage for chat formatting, ParticleBuilder for optimized VFX rendering, and modern Mob Pathfinding/NMS for 1.21.11).

Exclusive Access: The plugin must include a hardcoded permission check. The Necromancer job, all commands, chat listeners, and shadow ownership are exclusively locked to the player IGN: BemmbuXD (and their associated UUID). No other player can trigger these events or obtain this class.

Trigger System: Commands should be implemented via Paper's modern io.papermc.paper.event.player.AsyncChatEvent listener rather than standard slash commands (e.g., /). When BemmbuXD types specific phrases in the chat, the plugin cancels the chat message event and executes the anime-accurate action.

2. Shadow AI, Chat Directives & Combat Feedback
Shadows must use advanced pathfinding (1.21.11 Custom NMS or Paper Pathfinders) to execute specific chat orders flawlessly.

Summon & Recall Commands (Cinematic VFX/SFX):

Global Summon: "Come out" or "Arise, my shadows" spawns all stored shadows. VFX/SFX: A massive shockwave of thick purple-black DRAGON_BREATH and SOUL_FIRE_FLAME particles bursts from the ground around BemmbuXD, accompanied by a booming ENTITY_WITHER_SPAWN pitch 0.5 and the iconic deep dark rumble sound effect.

Individual Summon: [Shadow Name] come out (e.g., igris come out) spawns only that specific shadow with concentrated purple smoke particles (CAMPFIRE_COSY_SMOKE) and a localized ENTITY_ENDERMAN_TELEPORT sound.

Recall: "Return" or "Save" dissolves shadows into swirling black ash particles (WITHER_ROSE) with a reverse suction visual effect.

Global & Individual Stances (Idle, Protect, Follow):

Syntax (Individual/Global): [Shadow Name] [stance] or All [stance] (follow, idle, protect). Shadows lock into their rigid guard behaviors instantly.

Targeted Assassination & Protection:

Syntax: [Shadow Name] kill [Target] or [Shadow Name] protect [Player]. VFX/SFX: A quick flash of crimson red particle indicators (DUST with red coloration) streams toward the target.

Resource Gathering:

Syntax: [Shadow Name] gather [Block]. Shadows target blocks with mining animations and particle breaks.

Action Feedback:

Whenever a shadow triggers an ability, BemmbuXD receives a private log formatted via Adventure API (MiniMessage): [Shadow] Igris used Blood Slash on [Target]!

3. The Elite Shadows & Anime-Accurate VFX/SFX Skill Kits
Every elite shadow displays a hologram/nametag showing Name, Rank, and Level. Their skills are heavily backed by particle mathematics to mirror the anime's visual style.

Igris (The Blood Red Commander):

Skill 1: Blood Slash: Swings his sword, generating a wide 180-degree crescent wave of bright red dust and crimson sweep particles (SWEEP_ATTACK + CRIT). SFX: ENTITY_PLAYER_SWEEP_ATTACK mixed with a sharp blade slash sound.

Skill 2: Ruler's Hand: Invisible telekinesis pulling a target 5 blocks back. VFX: Intense converging purple and gold string/portal particles (PORTAL + WITCH) wrapping around the target.

Skill 3: Lightning Dash: Instantly teleports behind the target. VFX/SFX: Leaves a jagged trail of deep red lightning particles and plays ENTITY_LIGHTNING_BOLT_THUNDER (pitch 2.0).

Skill 4: Dominator's Flurry: A 5-hit rapid combo that suspends the target mid-air. VFX: Rapid crimson afterimage lines and floating debris particles.

Beru (The Ant King):

Skill 1: Venomous Strike: Slashes with insectoid precision. VFX/SFX: Emits dripping neon-green and black fallout fluid particles (FALLING_OBSIDIAN_TEAR + SQUID_INK) with a toxic hiss sound (ENTITY_SPIDER_HURT).

Skill 2: Healing Saliva: Dashes to BemmbuXD when <30% HP. VFX: Swirling emerald healing particles (HAPPY_VILLAGER) and a bright flash.

Skill 3: Frenzy: Triples attack speed. VFX: Beru's body becomes outlined in a dark purple aura (SOUL).

Skill 4: Sonic Flight: Dive-bombs targets. VFX/SFX: Creates a massive ring-shaped shockwave of cloud particles (CLOUD + EXPLOSION_LARGE) on impact, playing ENTITY_ENDER_DRAGON_FLAP.

Bellion (The Grand Marshal):

Skill 1: Centipede Whip: Extends an 8-block strike. VFX: A linear slash of black-and-silver sweeping particles that bypasses defense.

Skill 2: Ashborn's Will: Roars to buff team speed/damage by 20%. VFX/SFX: A towering shockwave of dark purple aura rings expanding 15 blocks, playing a deep ENTITY_ENDER_DRAGON_GROWL.

Skill 3: Heavenly Descent: Leaps 20 blocks up and crashes down. VFX/SFX: Massive crater particle scatter (BLOCK_CRACK) and screen shake effect.

Skill 4: Armor Crush: Shatters armor durability. VFX: Gold/iron shattering item break particles (ITEM_CRACK).

Iron (The Shield):

Skill 1: Taunt of the Monarch: Slams shield to force 10-block aggro. VFX/SFX: Golden shockwave ripple particles with ENTITY_RAVAGER_ROAR.

Skill 2: Shield Bash: Heavy knockback + 2s stun. VFX: White block-impact flash particles (CRIT).

Skill 3: Seismic Leap: Ground slam. VFX: Flying dirt and stone slab particles in a circle.

Skill 4: Indestructible: 5s damage immunity at <20% HP. VFX: Solid obsidian-black glass shell aura wrapping his model.

Tank (The Bear):

Skill 1: Earth Shatter: Linear fissure slam. VFX: Ripped-up earth block particles tearing across the ground.

Skill 2: Unstoppable Charge: High-speed trample leaving dust tracks (CAMPFIRE_SIGNAL_SMOKE).

Skill 3: Bear Hide: Reflects 15% melee damage with a metallic clink sound.

Skill 4: Savage Bite: Burst damage + redstone blood splatter particles (DUST colored deep red).

Greed (The Mage):

Skill 1: Flame Pillar: Launching fire column (SOUL_FIRE_FLAME).

Skill 2: Mana Explosion: Blue arcane energy sphere explosion (SONIC_BOOM visual mapping + ENTITY_WARDEN_SONIC_BOOM sound).

Skill 3: Greed's Pull: Mini black hole. VFX: Swirling vortex of black portal particles drawing entities inward.

Skill 4: Chain Lightning: Arcing blue lightning bolts between targets.

4. Extraction & Progression Mechanics ("Arise")
Shadow Extraction:

VFX/SFX: When a mob/player dies, a persistent, ominous black-and-purple pool of swirling souls (SOUL + SMOKE_LARGE) lingers for 30 seconds. Typing "Arise" triggers a booming voice-line sound packet and a pillar of shadow energy shooting upward from the corpse as the shadow rips free.

Probability: Standard mobs 95%; Bosses/Players 10-20%. Max 3 attempts before permanent destruction.

Leveling System: Named shadows gain combat XP, scaling their internal Ranks (Infantry -> Elite -> Knight -> Commander -> Marshal) with particle tier upgrades as they grow stronger.

5. Missing Necromancer Essentials
Shadow Limit (Army Capacity): Dynamic storage cap tied to class level.

Shadow Exchange: Typing Exchange [Shadow Name] instantly teleports BemmbuXD into the shadow's exact position. VFX/SFX: A double flash of purple particle implosions at both starting and ending points (ENTITY_ENDERMAN_TELEPORT).

Domain of the Monarch: Typing "Domain of the Monarch" triggers an absolute cinematic masterpiece. VFX/SFX: The skybox turns pitch black (using 1.21.11 network packets to send artificial midnight time to BemmbuXD), the ground in a 50-block radius transforms temporarily into glowing black coal/obsidian block states, a massive shockwave of dark royal-purple aura blasts outward, playing a terrifying ENTITY_WITHER_SPAWN sound. All shadows gain a permanent 50% stat boost inside.

6. Advanced Monarch Mechanics & Ecosystem
The Immortal Army (Shadow Regeneration):

When a shadow hits 0 HP, it dissolves into black ash particles with a quiet death sound, automatically regenerating after 5 seconds at an MP cost.

Mana (MP) Action Bar System:

Persistent action bar readout above the hotbar tracking MP drain, spell costs, and passive regeneration using Paper's sendActionBar API.

Shadow Sensory (Shared Vision):

Syntax: Shadow senses [Shadow Name]. Locks BemmbuXD's physical body in place (blindness/slowness) while shifting camera view to the shadow via Spectator mode. VFX: A dark vignette screen overlay. Cancel with Return to my body.

Shadow Infestation:

Syntax: [Shadow Name] hide in [Player]. The shadow turns into a tiny invisible tracking particle cluster attached to a target's shadow. Can be used for espionage or sudden surprise attacks via [Shadow Name] strike (VFX: Exploding out of the target's feet with a shadow burst).

Item Equipping: Drop weapons/armor directly onto an elite shadow to permanently upgrade their stats utilizing 1.21.11's equipment slot modifications.

Skill: Bloodlust (Murderous Intent):

Syntax: Bloodlust. VFX/SFX: A massive, terrifying pressure wave of dark blood-red and black particle rings expands 20 blocks. All caught entities are paralyzed with Slowness 255, Weakness II, and Blindness for 4 seconds, accompanied by a heavy heartbeat SFX (ENTITY_WARDEN_HEARTBEAT). Costs 30% max MP.

7. The Final Elite Shadows (Mount & Grand Mage)
Kaisel (The Sky Dragon): Spawned via Come out, Kaisel, instantly mounting the player. Flies at 2.5x Elytra speed with thick DRAGON_BREATH particle trails. Pressing 'Space' triggers Wind Pressure (a massive blast of cloud particles knocking back all nearby projectiles and entities).

Unique Idle Pose ("The Gargoyle Perch"): When dismounted or commanded to stay idle (Kaisel idle), Kaisel automatically seeks out the highest nearby solid block, ledge, or rooftop within 15 blocks. He lands, folds his massive dark wings tightly around his body like a cape, tucks his head low, and grips the edge with his claws in a menacing statue pose. When BemmbuXD takes damage or issues a command, Kaisel unfurls his wings with an ENTITY_ENDER_DRAGON_FLAP sound effect and re-enters combat.

Tusk (The High Orc Shaman): Features Hymn of the Fire Dragon (20-block streaming flamethrower of SOUL_FIRE_FLAME), Hymn of Protection (glowing golden-red shield aura granting Resistance III), Hymn of Agony (localized purple gravity well pulling enemies in while dealing void damage), and Giant's Transformation (doubles in physical size with a booming stomp shockwave when HP drops below 40%).

8. The Monarch's Personal Abilities
Ruler's Authority: Authority pull or Authority push within 15 blocks. VFX: Blinding streams of golden-yellow psychic energy particles (END_ROD + DUST gold) wrapping around the target to violently yank them or hurl them backward.

Mutilate: Rapid-fire 10 sword hits in 1.5 seconds triggered by left-clicking a dagger/sword while sneaking, flashing with rapid crimson crit particles.

Shadow Armor (Astralization):

Syntax: Shadow Armor. VFX/SFX: Dense black and purple liquid particles engulf BemmbuXD, fusing into a giant, towering translucent black skeletal warrior avatar around the player for 15 seconds. Grants +20 max hearts (using 1.21.11 attribute modifiers), massive knockback resistance, and complete negative effect immunity. Plays a booming ITEM_ARMOR_EQUIP_NETHERITE sound. Costs 70% max MP.

9. Storage vs. Extraction Dilemma
If storage is full upon a successful extraction, the plugin prompts a clear Adventure API chat dialog: "Your shadow storage is full. To save this shadow, you must release an existing one."

Executed via Release [Existing Shadow Name]. Typing Cancel Extraction discards the new shadow instead.

10. Assassin's Roots & Utility
Stealth: Syntax: Stealth. Complete invisibility and hidden nametag with a subtle ghost-like shimmer particle effect. Drains 10 MP/sec. First strike breaks invisibility and triggers a guaranteed 200% critical hit (Fatal Strike).

Detoxification & Longevity: Permanent immunity to Poison, Wither, Nausea, and Blindness.

Shadow Miniaturization: [Shadow Name] shrink or Shrink all scales shadows down to baby mob hitboxes for tight indoor navigation (utilizing 1.21.11 scale attributes). [Shadow Name] grow restores them.

Custom Shadow Naming: Bestow name [Original Name] [New Name] permanently updates nametags.

11. The System (Dimensional Storage)
Syntax: Open Inventory. Opens a secure 54-slot virtual GUI styled like the anime's system interface window. Items inside cannot be dropped on death, stolen, or take up standard inventory space. Restricted strictly to BemmbuXD.

12. Signature Weapons & Igris Integration
BemmbuXD can summon weapons from Dimensional Inventory and equip them onto Igris:

Knight Killer (Dagger): +50% melee damage against armored targets.

Demon King's Longsword: Upgrades Igris's attacks to Storm of White Flames (10-block AoE white fire sweep with white lightning particles (ENTITY_LIGHTNING_BOLT)).

Kamish's Wrath (Endgame Daggers): Grants True Damage (ignoring armor/shields) and triggers Dragon's Fear (a massive purple-and-black dragon jaw projection visual that inflicts Weakness IV in a 30-block radius).

Quicksilver: Syntax: Dash launches BemmbuXD 15 blocks forward leaving a trail of motion-blur white particles with 0.5s i-frames.

Vital Strike: Backstabbing an enemy guarantees a 300% critical hit + a heavy arterial blood particle spray.

13. Additional Server Polish & Immersive Mechanics
Visual "Shadow" Conversion: Automatically renders extracted normal mobs/players with invisible physical bodies, pitch-black dyed leather armor, and a persistent, high-density aura of purple/black dragon breath and soul particles (handled safely via Paper 1.21.11 packet injection so it doesn't cause server lag).

Beru's Dynamic Voice & Personality System: Sends private chat logs exclusively to BemmbuXD based on automated context triggers using MiniMessage formatting:

On Low HP (<30%): "My King! Your sacred vessel is taking damage! Allow me to tear them limb from limb!"

On Kill: "As expected of the Shadow Monarch! Their existence has been permanently erased!"

On Summon: "Reporting for duty, my Liege! The ants are ready to devour your enemies!"

On Skill Trigger: "Suffer in the shadow’s venom, insect!" or "Your wounds are mended, my King!"

Idle Timer (Every 5 mins): "My King, do you require me to clean up any insignificant insects nearby?"

Server Persistence: Automatically serializes and saves all shadow inventories, active extractions, MP values, shadow levels, and Igris's equipped custom weapons into a persistent monarch_data.yml file to completely prevent data loss on server restarts.
Kodari AI
KodariSep 19 at 9:43 am 3
ShadowMonarch
Cinematic Solo Leveling plugin for Paper 1.21.11, exclusively for BemmbuXD. Features chat-triggered shadow summoning with anime-accurate VFX/SFX, elite shadow AI with individual stances and combat skills, extraction and leveling system, dimensional storage GUI, mana action bar, Domain of the Monarch transformation, Shadow Armor astralization, and persistent data serialization. Utilizes Adventure API/MiniMessage, ParticleBuilder, and modern Paper event listeners for optimized performance.
  1. Build the Paper 1.21.11 plugin foundation and hardcoded owner gate.

  2. Add persistent shadow storage, extraction, summoning, stances, AI, and regeneration.

  3. Add the chat-directive command system, cinematic effects, combat abilities, and mana/action-bar loop.

  4. Add the secure dimensional inventory GUI and persistence wiring.

  1. Created the Paper 1.21.11 Gradle project with Java 21, plugin metadata, configuration, and persistence files.

  2. Added hardcoded BemmbuXD ownership checks for all Shadow Monarch functionality.

  3. Implemented asynchronous chat directives for summoning, recall, extraction, stances, domain, Bloodlust, Shadow Armor, stealth, teleportation, sensing, hiding, striking, and inventory access.

  4. Added shadow storage, extraction pools, leveling/ranks, pathfinding stances, regeneration, miniaturization, persistent data, mana/action-bar tracking, VFX/SFX, combat listeners, and a protected 54-slot dimensional inventory GUI.

Bemmbu Xdd

the plugin isnt built properly

Kodari AI
KodariSep 19 at 9:59 am 2

Plan:

  1. Inspect the Gradle build and plugin metadata.

  2. Fix the build configuration and packaging mismatch.

  3. Verify the resulting project structure and report the exact change.

Fixed build.gradle.

The generated plugin JAR now includes the XSeries dependency instead of compiling successfully and failing at runtime with missing com.cryptomorin.xseries classes.

Build with:

Shell
gradle clean build

The distributable JAR will be created in:

Plain Text
build/libs/ShadowMonarch-1.0.0.jar
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
18 1,238
src/main/java/com/bemmbuxd/shadowmonarch/ShadowMonarchPlugin.java
package com.bemmbuxd.shadowmonarch;

import net.kyori.adventure.text.minimessage.MiniMessage;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class ShadowMonarchPlugin extends JavaPlugin {
    private final MiniMessage miniMessage = MiniMessage.miniMessage();
    private MonarchState state;
    private MonarchStorage storage;
    private ShadowManager shadowManager;
    private MonarchAbilities abilities;
    private MonarchInventoryGui inventoryGui;
    private Vfx vfx;
    private Player owner;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        state = new MonarchState();
        state.setMaxMana(getConfig().getDouble("max-mana", 100.0));
        state.setMana(state.getMaxMana());
        storage = new MonarchStorage(this);
        MonarchState loaded = storage.loadState();
        state.setMana(loaded.getMana());
        state.setMaxMana(loaded.getMaxMana());
        state.setStealth(loaded.isStealth());
        state.setStealthUntil(loaded.getStealthUntil());
        state.setInventory(loaded.getInventory());
        vfx = new Vfx();
        shadowManager = new ShadowManager(this, vfx);
        shadowManager.load(storage.loadShadows());
        abilities = new MonarchAbilities(this, shadowManager, vfx, state);
        inventoryGui = new MonarchInventoryGui(this, state, storage);
        getServer().getPluginManager().registerEvents(new ChatDirectiveListener(this), this);
        getServer().getPluginManager().registerEvents(new ShadowCombatListener(this), this);
        getServer().getPluginManager().registerEvents(inventoryGui, this);
        getServer().getScheduler().runTaskTimer(this, () -> {
            owner = findOwner();
            if (owner != null) {
                abilities.tick(owner);
                shadowManager.tick(owner);
            }
        }, 20L, 20L);
        getServer().getScheduler().runTaskTimer(this, () -> storage.save(shadowManager.snapshot(), state), 600L, 600L);
    }

    @Override
    public void onDisable() {
        if (storage != null && shadowManager != null && state != null) {
            storage.save(shadowManager.snapshot(), state);
        }
    }

    public MiniMessage mm() {
        return miniMessage;
    }

    public Player getOwner() {
        if (owner == null || !owner.isOnline()) {
            owner = findOwner();
        }
        return owner;
    }

    public int getShadowCapacity() {
        return getConfig().getInt("shadow-capacity", 24);
    }

    public MonarchState getState() {
        return state;
    }

    public ShadowManager getShadowManager() {
        return shadowManager;
    }

    public MonarchAbilities getAbilities() {
        return abilities;
    }

    public MonarchInventoryGui getInventoryGui() {
        return inventoryGui;
    }

    private Player findOwner() {
        return Bukkit.getOnlinePlayers().stream().filter(OwnerGuard::isOwner).findFirst().orElse(null);
    }
}