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.
- 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.
- 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".
- 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.
- 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.
- 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.
- 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.
- Obsidian Sword
Add a new custom weapon called:
Obsidian Sword
Crafting recipe:
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 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.