warriorgaming0308

Create a complete, stable, bug-free Minecraft Java Edition Paper plugin that adds a horror/adventure system featuring two custom boss mobs: Herobrine and Null.

The plugin should be designed for a private Survival SMP and should work smoothly without causing major server lag, crashes, or gameplay-breaking bugs.

  1. Plugin Activation System

The bosses must NOT spawn automatically when the plugin/server starts.

Only the server owner/operator should be able to activate the system using:

"/entity start"

Requirements:

  • Only OP players can use "/entity start".
  • Before activation, Herobrine and Null must never naturally spawn.
  • After activation, the complete Entity/Boss system becomes active.
  • Add "/entity stop" for OPs to completely disable the system.
  • Add "/entity status" to show whether the Entity system is active.
  • Prevent duplicate boss events if "/entity start" is accidentally executed multiple times.
  1. Seven-Day Boss Cycle

After "/entity start", the plugin should track Minecraft days.

Every 7 Minecraft days, a special boss event should occur.

The bosses should normally remain hidden/inactive outside their event conditions.

The system should:

  • Track Minecraft time accurately.
  • Survive server restarts.
  • Save the current event/day progress in a configuration or data file.
  • Never accidentally reset the cycle when the server restarts.
  • Give configurable warnings before an event begins.

Example:

Day 1 → Normal survival Day 2 → Normal survival ...

Day 6 → Normal survival Day 7 → Entity event begins

Make the 7-day interval configurable in "config.yml".

  1. Herobrine

Create a custom hostile boss called Herobrine.

Appearance

  • Dark, mysterious humanoid appearance.
  • White glowing eyes.
  • Horror-style particles/effects.
  • Custom name: "Herobrine"
  • Boss bar showing his health.

Health

Herobrine should have approximately the health of a Minecraft Warden.

Make his health configurable in "config.yml".

AI

Herobrine should hunt players, but he has a special weakness:

Herobrine cannot see crouching/sneaking players.

If a player continuously sneaks/crouches, Herobrine should lose track of that player.

For example:

  • Player is standing normally → Herobrine can detect them.
  • Player starts sneaking → Herobrine should stop detecting them if they remain hidden.
  • After approximately 1 minute of successfully staying hidden, Herobrine should leave/disappear.

Do NOT make this exploit-prone. The detection system should use proper server-side player sneaking state.

Herobrine should:

  • Chase detected players.
  • Attack nearby players.
  • Prefer players who are not sneaking.
  • Stop chasing players that successfully hide.
  • Have configurable detection range.
  • Have configurable attack damage.
  • Have configurable movement speed.
  • Avoid becoming permanently stuck in blocks.
  • Avoid attacking through walls.
  1. Null

Create a second custom boss/entity called Null.

Null should have a completely different behavior from Herobrine.

Shadow Concept

Null is a supernatural shadow creature.

Players should not be able to kill Null using normal weapons.

Null should be immune to:

  • Normal swords
  • Axes
  • Bows
  • Tridents
  • Normal melee attacks
  • Normal Minecraft damage sources

However, Null has one weakness:

Fire Weakness

Players can damage/burn Null using Flint and Steel.

When a player successfully burns Null:

  • Null should disappear/retreat.
  • The event should be considered a successful defeat.
  • Null should enter a regeneration/recovery state.
  • Null should remain unavailable for 10 Minecraft days.
  • After 10 Minecraft days, Null can return.

Make the 10-day recovery period configurable.

  1. Null's Day/Night Behavior

Null must NOT appear during the daytime.

Null should only appear during the night.

During nighttime:

  • Null can silently observe players.
  • Null should not immediately attack.
  • It should stalk/watch players from a distance.
  • It should sometimes appear in dark areas.
  • It can disappear if the player gets too close.
  • It should create creepy visual/audio effects.
  • It should occasionally teleport to another nearby location.
  • It should avoid daylight.

At sunrise:

  • Null should disappear automatically.

Null should feel like a mysterious shadow rather than a normal Minecraft mob.

  1. Boss Event Behavior

During the special 7-day event:

  • Herobrine and Null should become active according to their individual rules.
  • They should not necessarily appear at the exact same location.
  • Their behavior should be unpredictable but fair.
  • Players should receive subtle warnings.
  • Avoid spawning unlimited copies.
  • Only one active Herobrine and one active Null should exist at a time.

The plugin should prevent duplicate boss entities after server reloads or restarts.

  1. Obsidian Sword

Add a new custom weapon called:

Obsidian Sword

Crafting recipe:

  • 2 Obsidian
  • 1 Stick

Recipe shape:

"Obsidian | Obsidian | Empty" "Empty | Stick | Empty" "Empty | Empty | Empty"

The sword should:

  • Have a unique name.
  • Have a custom lore.
  • Look different from a normal diamond/netherite sword if a resource pack is available.
  • Have very high durability.
  • Deal extremely high damage.
  • Be able to defeat the Ender Dragon in approximately 10 successful hits under normal conditions.

Do not simply use an unrealistic global damage multiplier. Make the weapon's damage configurable.

  1. Glowing Scythe

Add another custom weapon:

Glowing Scythe

The scythe should:

  • Have a unique appearance.
  • Glow using enchantment/glow effects.
  • Have custom lore.
  • Have high durability.
  • Deal powerful damage.
  • Be able to defeat the Ender Dragon in approximately 8 successful hits under normal conditions.
  • Have special visual particles when attacking.
  • Have configurable damage.

If a resource pack is required for the scythe model, include the required item-model/resource-pack structure.

  1. Knight Armor Set

Add a complete custom armor set called:

Knight Armor

Items:

  • Knight Helmet
  • Knight Chestplate
  • Knight Leggings
  • Knight Boots

The armor should:

  • Be significantly stronger than normal armor.
  • Have custom names and lore.
  • Have high durability.
  • Provide useful defensive effects.
  • Have a unique medieval/knight appearance.
  • Support custom textures through a resource pack.
  • Have configurable armor values and special abilities.

Do not make it so powerful that the game becomes completely trivial.

  1. Dungeons

Add several procedurally generated or pre-designed dungeon structures.

Examples:

  • Shadow Dungeon
  • Herobrine Temple
  • Ancient Knight Castle
  • Abandoned Crypt
  • Dark Forest Ruins

Dungeons should contain:

  • Traps
  • Hostile mobs
  • Hidden rooms
  • Chests
  • Rare loot
  • Boss-related items
  • Secret areas
  • Atmospheric lighting/particles

Make dungeon generation safe so it does not destroy important player builds.

  1. New Structures

Add new overworld structures such as:

  • Abandoned castles
  • Ruined temples
  • Shadow towers
  • Ancient villages
  • Underground crypts
  • Herobrine shrines

Structures should generate naturally or through configurable generation rules.

Add rare loot tables containing:

  • Special weapons
  • Knight Armor components
  • Rare materials
  • Enchanted items
  • Boss-related items
  • Extremely rare collectibles

Loot should be configurable.

  1. Horror Atmosphere

Make the plugin feel mysterious and scary without constantly annoying players.

Add optional:

  • Ambient sounds
  • Lightning effects
  • Particles
  • Screen/title messages
  • Boss bars
  • Strange environmental events
  • Footstep sounds
  • Distant sounds
  • Temporary darkness effects

All horror effects should be configurable and preferably toggleable.

  1. Commands

Add these commands:

"/entity start" "/entity stop" "/entity status" "/entity spawn herobrine" "/entity spawn null" "/entity reload"

Only OPs/admins should be able to use administrative commands.

Add tab completion.

  1. Configuration

Create a detailed "config.yml" containing settings for:

  • Boss activation
  • Seven-day cycle
  • Herobrine health
  • Herobrine damage
  • Herobrine detection range
  • Sneaking detection behavior
  • Null night-only behavior
  • Null fire weakness
  • Null recovery time
  • Weapon damage
  • Armor stats
  • Dungeon generation
  • Structure generation
  • Loot
  • Particles
  • Sounds
  • Messages
  • Boss bars
  • Debug mode

Do not hardcode important gameplay values.

  1. Persistence

The plugin must save important data so that restarting the server does not break the system.

Save:

  • Whether "/entity start" has been activated.
  • Current Minecraft-day progress.
  • Active boss status.
  • Null's recovery timer.
  • Event state.

Make the data system reliable and corruption-resistant.

  1. Performance & Stability

The plugin must be optimized for a survival SMP.

Important requirements:

  • Do not run expensive checks every tick unless absolutely necessary.
  • Use scheduled tasks efficiently.
  • Do not create unlimited entities.
  • Clean up inactive boss entities.
  • Prevent memory leaks.
  • Prevent duplicate event timers.
  • Handle server restarts correctly.
  • Handle chunks unloading safely.
  • Avoid excessive particle/sound spam.
  • Make all major systems configurable.
  1. Compatibility

Target:

Minecraft Java Edition 1.21.x + Paper

Use modern Paper API practices.

Do not use deprecated APIs unnecessarily.

The final project should include:

  • Complete Java source code
  • "plugin.yml"
  • "config.yml"
  • Any required data/resource-pack files
  • Maven or Gradle build configuration
  • Proper package structure
  • Event listeners
  • Commands
  • Boss AI system
  • Custom item system
  • Dungeon/structure system
  • Persistence system
  1. Final Requirement

The plugin must be provided as a complete buildable project, not as pseudocode or incomplete examples.

Every class should be included and properly connected.

Before considering the project complete, check for:

  • Compilation errors
  • Missing imports
  • Incorrect API usage
  • Duplicate listeners
  • NullPointerExceptions
  • Boss duplication
  • Restart bugs
  • Timer bugs
  • Incorrect Minecraft-day calculations
  • Recipe registration problems
  • Entity cleanup problems
  • Command permission problems

The final result should feel like a polished Herobrine + Null horror survival expansion for a private Minecraft SMP, with challenging bosses, custom weapons, Knight Armor, dungeons, structures, rare loot, and a mysterious 7-day event cycle.

Kodari AI
KodariAug 21 at 4:00 am 3
  1. Create the Gradle/Paper project and plugin metadata.

  2. Add persistence, activation/day-cycle management, boss AI, combat rules, atmosphere, and commands.

  3. Add configurable custom weapons, Knight Armor, recipes, dungeon generation, and loot.

  4. Add detailed configuration and wire every subsystem in the main plugin class.

  1. Created a complete Gradle/Paper 1.21.x plugin project with plugin metadata and Java 21 configuration.

  2. Added OP-only /entity commands with start, stop, status, spawn, reload, and tab completion.

  3. Added persistent activation state, cycle progress, event state, boss UUIDs, Null recovery timer, and atomic backup saves.

  4. Added configurable seven-day boss events with warnings, event activation, cleanup, and restart reconciliation.

  5. Added Herobrine using a Warden-based custom boss with configurable health, damage, movement, detection range, line-of-sight checks, sneaking concealment, particles, and boss bar.

  6. Added Null using a silent Enderman-based shadow boss with night-only behavior, stalking teleports, daylight retreat, invulnerability, Flint and Steel weakness, and configurable recovery.

  7. Added Obsidian Sword, Glowing Scythe, Knight Armor recipes, persistent item identifiers, configurable damage/armor/model data, armor effects, and scythe particles.

  8. Added safe event dungeon generation with configurable dungeon types, loot, chests, hostile mobs, and natural-block protection.

  9. Added configurable horror atmosphere with particles, ambient sounds, lightning effects, darkness, and event-based activity.

  10. Added detailed config.yml covering cycle timing, bosses, weapons, armor, dungeons, structures, loot, atmosphere, messages, and debugging.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
13 1,397
src/main/java/com/kodari/entityhorror/EntityHorrorPlugin.java
package com.kodari.entityhorror;

import com.kodari.entityhorror.atmosphere.AtmosphereManager;
import com.kodari.entityhorror.boss.BossManager;
import com.kodari.entityhorror.command.EntityCommand;
import com.kodari.entityhorror.data.DataStore;
import com.kodari.entityhorror.dungeon.DungeonManager;
import com.kodari.entityhorror.item.ItemManager;
import com.kodari.entityhorror.listener.HorrorListener;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;

public class EntityHorrorPlugin extends JavaPlugin {
    private DataStore dataStore;
    private ItemManager itemManager;
    private DungeonManager dungeonManager;
    private BossManager bossManager;
    private AtmosphereManager atmosphereManager;
    private BukkitTask dayTask;
    private BukkitTask bossTask;
    private BukkitTask atmosphereTask;
    private BukkitTask armorTask;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        dataStore = new DataStore(this);
        itemManager = new ItemManager(this);
        dungeonManager = new DungeonManager(this, dataStore.getState(), itemManager);
        bossManager = new BossManager(this, dataStore, dungeonManager);
        atmosphereManager = new AtmosphereManager(this);
        getServer().getPluginManager().registerEvents(new HorrorListener(this, bossManager, itemManager), this);

        EntityCommand command = new EntityCommand(this);
        PluginCommand entityCommand = getCommand("entity");
        if (entityCommand != null) {
            entityCommand.setExecutor(command);
            entityCommand.setTabCompleter(command);
        }

        dayTask = Bukkit.getScheduler().runTaskTimer(this, bossManager::tickDay, 20L, 20L);
        bossTask = Bukkit.getScheduler().runTaskTimer(this, bossManager::tickBosses, 40L, 40L);
        atmosphereTask = Bukkit.getScheduler().runTaskTimer(this, atmosphereManager::tick,
                getConfig().getLong("atmosphere.ambient-interval-ticks", 100L),
                getConfig().getLong("atmosphere.ambient-interval-ticks", 100L));
        armorTask = Bukkit.getScheduler().runTaskTimer(this, () -> getServer().getOnlinePlayers().forEach(itemManager::applyArmorEffects), 40L, 40L);
    }

    @Override
    public void onDisable() {
        if (dayTask != null) dayTask.cancel();
        if (bossTask != null) bossTask.cancel();
        if (atmosphereTask != null) atmosphereTask.cancel();
        if (armorTask != null) armorTask.cancel();
        if (bossManager != null) {
            bossManager.removeBosses(true);
        }
        if (dataStore != null) {
            dataStore.save();
        }
    }

    public void reloadPluginConfiguration() {
        reloadConfig();
    }

    public DataStore getDataStore() {
        return dataStore;
    }

    public BossManager getBossManager() {
        return bossManager;
    }

    public String message(String path) {
        String prefix = getConfig().getString("messages.prefix", "");
        String value = getConfig().getString(path, "");
        return ChatColor.translateAlternateColorCodes('&', prefix + value);
    }

    public void broadcast(String text) {
        Bukkit.broadcastMessage(ChatColor.translateAlternateColorCodes('&',
                getConfig().getString("messages.prefix", "") + text));
    }
}