📄
pasted-code-1787565028286.txt
txt
177 lines
▶
Build/fix my Paper 1.20+ MiniBoss plugin from scratch. Make the implementation production-ready, compile cleanly, and ensure all mechanics actually work in-game. Use YAML-driven configuration and avoid unnecessary changes to unrelated systems.
BOSSES
- 5 bosses:
- grimjaw — Grimjaw the Hollow King
- frostmaw — Frostmaw the Glacial Terror
- ashfang — Ashfang the Cinder Beast (ZOGLIN)
- venomcoil — Venomcoil the Bog Widow
- duskrender — Duskrender the Wraith Stalker
- Bosses should be large (~1.5x scale where supported), tanky, hard to combo/stunlock, actively pursue players, and have independent cooldowns.
- At low HP (~30% or below), bosses should occasionally retreat/reposition rather than always standing still and being combo-killed.
- Bosses should have 3–4 phases with increasingly difficult themed abilities.
- Every boss has a 3-hour spawn cooldown.
- Add `/bosspawn `: player-only, spawns the selected boss exactly at the player's current location, with tab completion and clear cooldown/error messages.
- Keep existing `/miniboss` admin commands if useful.
THEMED ABILITIES
Grimjaw:
- Wither-skull themed ranged attacks instead of arrows.
- Bone Guard / wither-skeleton summons.
- Bone Storm, Death Grip, Bone Throw, Intimidate, Soul Rend.
- NO zombie summons.
- NO normal arrow attacks.
Frostmaw:
- Ranged/spacing boss; DO NOT force it into melee.
- Stay roughly 14+ blocks away and retreat if players get close.
- Frost Spikes, Blizzard Dash, Frozen Armor, Hailstorm, Volley, Ice Nova.
- Skyfall Escape: temporarily flies/teleports above and away from target, attacks from the sky, then returns.
- While airborne, prevent melee combo/stunlock.
- Do not use charge to pull Frostmaw into melee.
Ashfang:
- ZOGLIN.
- Magma Burst, Lava Hounds, Inferno Ring, Blazing Charge, Molten Pool, Eruption, Fire Wave, Leap Smash.
- Persistent burn zones and knock-up effects.
Venomcoil:
- Make it significantly harder/tankier than before.
- NO zombie summons.
- NO arrow-based attacks.
- Poison Spit should be a direct venom attack/projectile that does not use arrows.
- Web Trap, Leap Pounce, Silk Pull, Venom Burst, Wall Climb, Spawn Spiderlings.
- Strong poison/web synergy and aggressive mobility.
Duskrender / Wraith Stalker:
- Remove normal Vindicator basic melee damage.
- Keep blindness/shadow mechanics.
- Shadow Step, Charge, Summon Wolves, Enrage Roar.
- Phantom Axes: throws 2 axes in a spread and they return like boomerangs.
- Mark of the Wraith: marked target takes 20% increased damage for 6 seconds.
- Axe Whirlwind: melee spin hitting everything within 3 blocks over 3 ticks.
- Vanish: 3 seconds invisibility; breaks immediately when Duskrender attacks.
- Wraith Blast and Phantom Blades should remain as arrow-free shadow abilities.
- DO NOT convert other bosses' arrows into wither skulls.
CUSTOM ITEMS
Five signature items:
1. Hollow Crown
2. Glacial Fang
3. Cinder Core
4. Widow's Kiss
5. Wraithstep Boots
Hollow Crown:
- Netherite helmet.
- +2 armor.
- When worn and player remains still for 3 seconds, grant invisibility for 10 seconds.
- Invisibility has a 20-second cooldown.
- Once invisibility activates, it MUST remain active even if the helmet is removed.
- Moving should not cancel the already-active invisibility.
- Prevent repeated triggering until cooldown expires.
- Correct item name/lore when obtained.
Glacial Fang:
- Diamond sword.
- Right-click target within 6 blocks: root + Slowness II.
- Every successful hit applies Slowness II.
- Slowness must work on BOTH players and mobs.
- Slowness duration: 5 seconds.
- Active ability cooldown: 16 seconds.
- Never display "Slowness X"; always show "Slowness II" / "Level II".
- Make sure the effect is actually applied and not overwritten immediately.
- Correct item name/lore when obtained.
Cinder Core:
- Magma Cream, intended for offhand.
- Fire/lava/fire-tick/hot-floor damage immunity must work while equipped in offhand.
- Sprinting creates a MUCH SMALLER flame trail than before.
- Trail should be subtle, short-range, and not spam excessive particles.
- No unnecessary cooldown unless required.
- Correct item name/lore.
Widow's Kiss:
- Bow.
- Fully charged shots apply Poison.
- Fully charged shot MUST create a poison cloud at/around the actual impact location.
- Cloud must still trigger even if the player switches items after firing.
- Fix projectile tracking so the cloud reliably appears.
- Correct item name/lore.
Wraithstep Boots:
- Leather boots worn in armor slot.
- Double-tap sneak triggers a short dash.
- Dash cooldown: 10 seconds.
- Must work while equipped as armor; NOT require boots in hand.
- Dash should work reliably with normal player movement/input.
- If the dash hits/dashes through a player, briefly apply Blindness to that player.
- No fall damage while boots are equipped.
- Correct item name/lore.
SET BONUS
- Wearing all 5 custom items activates the Hollow Court set bonus.
- 10% damage reduction + soul-fire themed aura.
- Ensure equipment checks are armor/offhand/main-hand appropriate and reliable.
LOOT
- Remove tokens completely.
- No old guaranteed token system.
- No old vanilla bonus-item system.
- Bosses should drop their associated signature item with these chances:
- Hollow Crown: 24%
- Glacial Fang: 24%
- Cinder Core: 30%
- Widow's Kiss: 24%
- Wraithstep Boots: 30%
- Eligible players must deal at least 5% boss damage.
- Each eligible player rolls independently.
- Also add bonus/basic materials such as ores and useful vanilla materials as configurable boss drops.
- Bosses should have configurable upgrade drops related to their signature item.
ITEM UPGRADES
- Add a configurable upgrade system for signature items.
- Bosses can drop upgrade materials/items that improve their associated signature item.
- Upgrades should support things such as:
- longer effect duration
- stronger passive effects where appropriate
- shorter cooldowns where appropriate
- increased dash distance
- improved poison/cloud duration
- improved fire-trail duration/range
- Upgrades must have configurable maximum levels.
- Never allow upgrades beyond the configured max.
- Upgrade items should be identifiable safely using PersistentDataContainer/custom IDs, NOT display names alone.
- If an upgrade is held in the offhand and the base signature item is in the main hand (or another clearly defined supported slot), provide a configurable upgrade interaction.
- Make the upgrade system safe against applying the wrong boss/item upgrade.
- Show current upgrade level and max level in item lore.
- Make upgrades persist after relog/restart.
- Add clear feedback when an upgrade succeeds, fails, or is already maxed.
- Do not destroy the base item accidentally on failed upgrades.
ITEM TEXT / UX
- Fix ALL item names, descriptions, lore, capitalization, colors, cooldown messages, and obtain messages.
- Never show outdated descriptions such as old 8/12-second cooldowns or Slowness III.
- Make lore accurately describe current mechanics.
- Avoid broken Unicode/color formatting.
- Clearly show upgrade level/max level where applicable.
- Give useful messages when players obtain, activate, upgrade, or fail to use an item.
GENERAL RELIABILITY
- All abilities must actually execute; no scheduler/condition bugs that prevent ability ticks.
- Safely handle unloaded worlds, invalid entities, missing configs, reloads, deaths, despawns, and server restarts.
- Use PersistentDataContainer for boss/item/projectile identification.
- Clean up temporary effects, tasks, entities, boss bars, and flight/gravity states on death/despawn/reload.
- Prevent duplicate schedulers/listeners.
- Preserve cooldowns and phase behavior through reloads where appropriate.
- Add useful console diagnostics for invalid configuration.
- Use safe Bukkit/Paper APIs and compatibility-safe entity/effect handling.
- Soft dependencies: WorldGuard, Vault, PlaceholderAPI, ModelEngine.
- Paper 1.20+.
- Include complete Gradle setup, plugin.yml, Java source, and default config.yml.
- Ensure the bundled config is installed with `saveDefaultConfig()`.
- Make boss IDs case-insensitive/whitespace-safe.
- Do not silently fail: commands and abilities should report useful errors.
IMPORTANT:
Before finishing, inspect the entire project for conflicts with previous implementations. Do not duplicate classes, listeners, commands, schedulers, or configuration sections. Merge the requested changes into the existing architecture cleanly. Compile/test the project and fix all compilation errors and obvious runtime failure paths before returning the final artifact.
Create the Paper/Gradle project and YAML defaults.
Add persistent signature-item and upgrade management.
Add boss spawning, phases, abilities, damage tracking, and loot.
Add item mechanics, set bonus, projectile handling, and commands.
Core project files are in place. I’m adding the boss runtime now, including per-boss cooldowns, phase selection, contribution tracking, cleanup, and configurable independent loot rolls.
The runtime is wired. I’m tightening the interaction path and filling the remaining themed phase abilities so every boss has distinct ranged, mobility, control, and low-health behavior rather than a generic attack loop.
Implemented the Hollow Court Paper plugin from scratch with:
Gradle/Paper 1.20.6 setup and
plugin.ymlFive configurable bosses with 4 phases, boss bars, cooldowns, targeting, retreat behavior, PDC identification, and cleanup
Themed abilities for Grimjaw, Frostmaw, Ashfang, Venomcoil, and Duskrender
/bosspawn <boss>with cooldowns, validation, and tab completion/miniboss spawn|reloadadmin commandAll five signature items with configurable names, lore, effects, cooldowns, and upgrade levels
Persistent PDC-based upgrade system with max-level enforcement
Crown invisibility, Glacial Fang rooting/slowness, Cinder Core immunity/trail, Widow’s Kiss poison clouds, and Wraithstep dash mechanics
Hollow Court set bonus with damage reduction and soul-fire aura
Contribution-based loot eligibility requiring 5% boss damage
Independent signature-item rolls, upgrade drops, and configurable material drops
Fully charged Widow’s Kiss projectile tracking that survives item switching
No token drops, zombie summons, or normal Grimjaw/Venomcoil arrow attacks
saveDefaultConfig()and comprehensive default YAML configuration
Okay i want you to add all cool abilities like 4-5 for each of them and make it so that they are agressive like they would always tp to players and retreat when they low etc
Audit the current boss runtime and existing ability hooks.
Expand each boss to 4–5 distinct abilities with independent cooldowns.
Make targeting aggressive with reliable teleport/reposition logic and low-health retreats.
Patch cleanup and state handling so repeated teleports/retreats do not create combat or scheduler issues.
Implemented the aggressive boss behavior.
All five bosses already had 4–10 themed abilities, so I kept those abilities and improved their combat behavior instead of duplicating them.
Added independent YAML-configured
huntcooldowns for every boss.Bosses now periodically teleport behind or near their target when they are too far away.
Frostmaw keeps its ranged spacing and teleports to a safe position roughly 16 blocks from the target instead of being pulled into melee.
Increased default target range from 32 to 64 blocks.
Added safe teleport validation to avoid placing bosses inside blocks or unloaded chunks.
Low-health bosses now teleport 12 blocks away from their target every 16 seconds while below 30% health.
Removed the old per-hit velocity retreat, preventing constant retreat spam.
Retreat and pursuit cooldowns are configurable per boss through
ability-cooldowns.Bosses now clear their velocity after successful teleport repositioning, helping prevent combos and stunlocking.
Added themed teleport particles for pursuit and retreat behavior.
package com.kodari.hollowcourt;
import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
public final class HollowCourtPlugin extends JavaPlugin {
private ItemManager itemManager;
private UpgradeManager upgradeManager;
private BossManager bossManager;
@Override
public void onEnable() {
saveDefaultConfig();
NamespacedKey itemKey = new NamespacedKey(this, "signature_item");
NamespacedKey upgradeKey = new NamespacedKey(this, "upgrade_target");
NamespacedKey levelKey = new NamespacedKey(this, "upgrade_level");
NamespacedKey bossKey = new NamespacedKey(this, "court_boss");
NamespacedKey projectileKey = new NamespacedKey(this, "court_projectile");
NamespacedKey projectileLevelKey = new NamespacedKey(this, "court_projectile_level");
itemManager = new ItemManager(this, itemKey, levelKey);
upgradeManager = new UpgradeManager(this, itemManager, upgradeKey);
bossManager = new BossManager(this, itemManager, bossKey, projectileKey, projectileLevelKey);
GameListener listener = new GameListener(this, itemManager, upgradeManager, bossManager, projectileKey, projectileLevelKey);
Bukkit.getPluginManager().registerEvents(listener, this);
BossCommand command = new BossCommand(this, bossManager);
getCommand("bosspawn").setExecutor(command);
getCommand("bosspawn").setTabCompleter(command);
getCommand("miniboss").setExecutor(command);
getCommand("miniboss").setTabCompleter(command);
bossManager.start();
getLogger().info("Hollow Court enabled with five configured bosses.");
}
@Override
public void onDisable() {
if (bossManager != null) bossManager.stop();
}
public ItemManager items() { return itemManager; }
}