Develop a comprehensive Mini Boss plugin for Minecraft Paper/Purpur (1.21.x) that introduces customizable, stronger vanilla mobs with unique abilities. Each Mini Boss should be fully configurable via YAML, featuring attributes like display name, health, damage, movement speed, armor, and specialized abilities such as Earth Slam or Fire Burst, complete with cooldowns, effects, and configurable damage. Implement a robust AI system that targets players, has world and biome restrictions for spawning, and includes commands for spawning, killing, and managing bosses, alongside loot tables for rewards, damage tracking, and detailed fight statistics displayed upon defeat.
Create the Gradle project and plugin metadata.
Implement configurable boss definitions, abilities, loot, and active-fight tracking.
Add boss spawning, targeting, combat handling, statistics, and automatic spawn checks.
Add administrative commands and the default YAML configuration.
Make so u can spawn the miniboss anywhere
Updated /miniboss spawn <id> so manually spawned Mini Bosses can appear anywhere, ignoring configured world and biome restrictions.
Automatic spawning still respects all configured restrictions.
Okay i like them now what i want you do give me them some unique cool moves based on their personality like earth guardian and change the flame buster with zombified hoglin
Add personality-based abilities for the Earth Guardian.
Change Flame Buster’s base mob to a zombified hoglin and update its defaults.
Earth Guardian: add two earth-themed moves—
STONE_SPIKESandEARTHQUAKE—with configurable damage, radius, knockback, and effects.Flame Buster: switch its base entity to
ZOMBIFIED_HOGLINand update its fiery combat profile.
Earth Guardian abilities
Added
STONE_SPIKES: damages nearby players and applies configurable slowness.Added
EARTHQUAKE: creates expanding shockwave rings, damages players, knocks them back, and applies weakness.Both abilities include configurable cooldowns, radius, damage, knockback, particles, and effects.
Flame Brute
Changed its entity from
ZOMBIFIED_PIGLINtoZOMBIFIED_HOGLIN.Increased its default health, damage, and armor to match the stronger hoglin design.
Reload the plugin with:
/miniboss reload
Okay so make earth guardian hp 150 give him LIKE ACTUCAL MOVES
Set Earth Guardian’s configured health to 150.
Replace its basic effects with visible, combat-focused moves that actively attack nearby players.
Earth Guardian is now 150 HP and has actual combat moves:
Earth Slam — close-range damage, knockback, and slowness.
Stone Spikes — damages nearby players with stone particle effects.
Earthquake — heavy area damage, knockback, and weakness.
Rock Throw — launches a visible stone projectile effect toward its target.
Ground Charge — charges toward the target, creates a cracking-earth trail, and knocks players back.
The new moves are fully configurable in config.yml, including cooldowns, damage, radius, knockback, and potion effects.
The compilation failed with this error:
Compilation failed with 1 error(s):
ERROR in src/main/java/com/kodari/minibossforge/ability/AbilityExecutor.java at line 162: incompatible types: LivingEntity cannot be converted to Player
applyEffects(target, ability.getEffects());
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: LivingEntity cannot be converted to Player
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/kodari/minibossforge/ability/AbilityExecutor.java
Please fix this error by creating a new artifact with the corrected code.
Fixed the compilation error in AbilityExecutor.java by changing applyEffects to accept LivingEntity, which matches the target parameter used by rockThrow.
The method still works for players and now supports any living target.
Okay make the moves craizer and buff it make have 200 hp and effects like resistance strengtch etc
Increase Earth Guardian to 200 HP and add stronger permanent combat effects.
Upgrade its abilities with heavier damage, larger impact areas, and more dramatic effects while keeping them configurable.
Earth Guardian has been heavily buffed:
Health: 200 HP
Damage: 22
Armor: 24
Speed: 0.34
Target range: 36 blocks
Permanent effects:
Resistance II
Strength II
Fire Resistance
Absorption III
Its moves are now more powerful:
Earth Slam: 32 damage, large 8-block radius, strong knockback
Stone Spikes: 28 damage, 9-block radius, Slowness II
Earthquake: 42 damage, 12-block radius, heavy knockback and Weakness III
Rock Throw: 34 damage, 24-block range, knockback and Blindness
Ground Charge: 48 damage with powerful knockback
Fire Burst: 26 damage, fire damage, Weakness, and Slowness
The boss effects are now configurable through the new effects section in config.yml. Reload with:
/miniboss reload
OKAY I SAID MAKE IT STRONGER BUT NOT LIKE THAT MAKE LIKE ACTUCALLY DEFETABLE
Reduce Earth Guardian’s defenses and attack power to a strong but manageable level.
Tone down each move’s damage, radius, knockback, and crowd-control effects while keeping its personality and variety.
Keep Resistance and Strength, but lower them to level I and remove the extra Absorption buffer.
Earth Guardian is now strong but defeatable:
Keeps 200 HP, but armor is reduced to 16.
Damage reduced to 14.
Movement speed reduced to 0.30.
Resistance and Strength reduced to level I.
Removed Absorption.
Earth Slam: 14 damage.
Stone Spikes: 11 damage.
Earthquake: 20 damage.
Rock Throw: 13 damage.
Ground Charge: 22 damage.
Fire Burst: 12 damage.
Reduced ability radii, knockback, crowd control, and fire duration.
It should still feel like a boss while allowing players to defeat it through normal combat.
AND MOST OF THE MOVES DOESNT WORK FIX THAT TOO
Fix the particle calls that abort abilities on 1.21 because
BLOCK_CRACKrequires block-data payload.Make ranged and charge attacks reliably hit their selected target instead of depending on fragile distance checks.
Remove the unnecessary line-of-sight restriction so the boss AI can consistently acquire players and use its moves.
Fixed the move system so Earth Guardian’s abilities can reliably activate and hit players:
Replaced invalid
BLOCK_CRACKparticle calls with safe particles. On 1.21, those calls can fail without block-data and stop the move midway.Fixed Rock Throw so it uses the configured maximum range correctly.
Fixed ranged damage checks so the selected target is actually hit.
Fixed Ground Charge particle effects so the charge does not fail from invalid particle data.
Removed the line-of-sight requirement from target selection, allowing the boss to acquire nearby players consistently.
Reload the plugin:
/miniboss reload
The moves should now execute instead of silently failing.
okay make his health 300 and i want you to add where u can teleport the minibosses when ever they spawn it can be teleported to it and whenever the boss dead players can go to their bed with the commands and make it so they dont spawn naturally and should only with the admin
Set Earth Guardian’s health to 300 and disable natural Mini Boss spawning.
Add an admin-only command to teleport to an active Mini Boss.
Return participating players to their beds when the boss dies, with an admin/player command flow.
Implemented:
Earth Guardian health increased to 300 HP.
Natural spawning disabled with
settings.automatic-spawning: false.Mini Bosses can now be spawned only through the admin command:
Plain Text/miniboss spawn <id>Added admin teleport command:
Plain Text/miniboss tp /miniboss tp <id>Without an ID, it teleports to the nearest active boss.
Players who damaged the boss are automatically teleported to their bed when the boss is defeated.
Players without a bed are safely skipped.
Added tab completion and messages for the teleport command.
Reload the plugin:
/miniboss reload
make it so u can go to there optional not by forced
Remove automatic bed teleportation when a boss dies.
Track participants as eligible for an optional return and add
/miniboss bed(also/miniboss return).Allow participating players to use that command without admin permission, while keeping all management commands admin-only.
Bed returns are now optional:
Players are not teleported automatically when a boss dies.
Eligible participants can use:
Plain Text/miniboss bedor:
Plain Text/miniboss returnThe command returns them to their bed only if they participated in the defeated boss fight.
Management commands remain admin-only.
Added tab completion and messages for the optional bed-return command.
and make it so u can tp to the by optional
Teleporting to a boss is now optional for everyone:
/miniboss tp
Teleports you to the nearest active boss.
/miniboss tp <boss-id>
Teleports you to a specific active boss.
Players are no longer forced to teleport when a boss spawns or dies. Admin-only management commands such as spawn, kill, and reload remain protected.
And make it so that it announces that earth guardian is spawned
Added a server-wide announcement whenever a mini boss spawns.
Default message:
Earth Guardian has spawned!
It is configurable in config.yml:
settings:
announce-spawn: true
messages:
boss-spawn-announcement: "&c{name} &ahas spawned!"
The announcement works for both admin-spawned and automatic spawns.
🌊 Ocean Boss — Elder Tide Guardian
Base Mob: Elder Guardian
Abilities
Water Beam – Fires a stronger Guardian laser.
Tidal Push – Pushes nearby players away with a burst of water.
Guardian Call – Summons 2 Guardians.
Bubble Trap – Bubble Columns appear under nearby players for a few seconds. 🔥 Nether Boss — Magma Colossus
Base Mob: Magma Cube
Abilities
Lava Leap – Performs a massive jump that damages nearby players.
Molten Trail – Leaves small lava patches after jumping.
Magma Burst – Shoots several Magma Cream projectiles.
Cube Spawn – Occasionally summons small Magma Cubes.
Add the Ocean Boss — Elder Tide Guardian with its four abilities.
Add the Nether Boss — Magma Colossus with its four abilities.
Register both bosses, commands, announcements, and configuration without enabling natural spawning.
Added both new minibosses with their requested abilities:
Ocean Boss — Elder Tide Guardian
Water Beam
Tidal Push
Guardian Call: summons 2 Guardians
Bubble Trap
Elder Guardian base mob, ocean biome restrictions, water-themed effects and loot
Nether Boss — Magma Colossus
Lava Leap
Molten Trail
Magma Burst: fires 3 magma projectiles
Cube Spawn: summons 2 small Magma Cubes
Magma Cube base mob, Nether biome restrictions, fire resistance and Nether loot
Also added Magma Cube sizing so the Colossus appears as a large boss.
Both are configured with:
chance: 0.0
Natural spawning remains disabled. Admins can spawn them manually:
/miniboss spawn ocean_guardian
/miniboss spawn magma_colossus
The existing spawn announcement will broadcast their configured names.
Okay make the magma colossul health 100 and give them more moves or somenthing coolor and make so lavas disappear after while
Set Magma Colossus health to 100.
Add a fitting extra magma ability.
Make its temporary lava patches automatically disappear.
Magma Colossus health: reduced to 100 HP.
Added a new Lava Pillar ability:
Creates a fiery pillar under the target.
Damages and launches nearby players.
Applies fire and weakness.
Uses flame/lava particles and an explosion sound.
Molten Trail lava now disappears after 5 seconds and restores the blocks that were there before.
Reload the plugin with:
/miniboss reload
The new ability is configured with a 16-second cooldown.
now do this for elder tribe boss too
Added a new ability for the Elder Tide Guardian:
Health reduced to 100 HP.
Added Water Vortex:
Pulls nearby players toward the boss.
Deals damage.
Applies Mining Fatigue and Slowness.
Uses a water-ring particle effect and splash sound.
Configured with a 16-second cooldown.
Reload the plugin:
/miniboss reload
Spawn it with:
/miniboss spawn ocean_guardian
I told you the change the health of them dude
Both new bosses are already set to 100 health in the plugin configuration:
Elder Tide Guardian:
health: 100.0Magma Colossus:
health: 100.0
The entity setup also applies that value to their max health. If the server is still showing the old health, reload/restart the plugin and update the existing server’s config.yml; changing the bundled default does not overwrite an already-created config file.
it still has the same health has magma cube make sure all of them right and the plugin
Fixed the Magma Colossus setup so its size is applied before its health:
Magma Cube size is set first.
Max health is then set to the configured value.
Current health is applied afterward.
This prevents
setSize(4)from resetting the boss back to the normal Magma Cube health.
The Elder Tide Guardian also uses the configured health correctly.
Set these values in the server’s actual plugins/MiniBossForge/config.yml:
ocean_guardian:
health: 100.0
magma_colossus:
health: 100.0
Then run:
/miniboss reload
Already-spawned bosses will keep their old health, so remove them and spawn them again:
/miniboss kill magma_colossus
/miniboss spawn magma_colossus
package com.kodari.minibossforge;
import com.kodari.minibossforge.command.BossCommand;
import com.kodari.minibossforge.listener.BossListener;
import com.kodari.minibossforge.manager.BossManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class MiniBossForge extends JavaPlugin {
private BossManager bossManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.bossManager = new BossManager(this);
this.bossManager.loadDefinitions();
BossListener listener = new BossListener(this.bossManager);
Bukkit.getPluginManager().registerEvents(listener, this);
BossCommand command = new BossCommand(this.bossManager);
if (getCommand("miniboss") != null) {
getCommand("miniboss").setExecutor(command);
getCommand("miniboss").setTabCompleter(command);
}
long spawnInterval = Math.max(1L, getConfig().getLong("settings.spawn-check-interval-seconds", 10L)) * 20L;
Bukkit.getScheduler().runTaskTimer(this, this.bossManager::tick, 20L, 10L);
Bukkit.getScheduler().runTaskTimer(this, this.bossManager::runAutomaticSpawnCheck, spawnInterval, spawnInterval);
}
@Override
public void onDisable() {
if (this.bossManager != null) {
this.bossManager.shutdown();
}
}
public BossManager getBossManager() {
return this.bossManager;
}
}