Skip to content

2b2names/DuplicateMobs

Repository files navigation

DuplicateMobs v1.0.0

Dynamic Combat Escalation for Paper 1.21.1

DuplicateMobs is a server-side combat utility that introduces a "Hydra-style" mechanic to hostile mobs. Every time a Monster successfully damages a player, it triggers an instant duplication event, forcing players to prioritize crowd control and defensive maneuvers.

This plugin is ideal for "Ultra Hardcore" (UHC) servers, Survival challenge maps, or as a limited-time event for anarchy communities.


⚔️ Gameplay Mechanics

  • The Hydra Effect: If a Zombie, Skeleton, or Creeper hits a player, it spawns an identical twin.
  • Escalating Threat: A single missed block can lead to an exponential horde in seconds.
  • Shield Integration: Smart-detection prevents duplication if the player successfully blocks the attack with a shield (configurable).

🛠 Technical Optimization

  • Lag-Prevention Governor: Built-in density checks ensure that mobs only duplicate if the local area contains fewer than the max-density threshold. This prevents "Entity Cramming" from crashing the server thread.
  • Lightweight Events: Uses a high-priority listener on the EntityDamageByEntityEvent to ensure zero impact on global TPS.
  • Metadata Tagging: Duplicated mobs carry a temporary metadata tag to prevent "Infinite Loops" where mobs could potentially trigger their own duplicates (safety-first engineering).

⚙️ Configuration

# Maximum mobs of the same type in a 5-block radius before duplication stops
max-density: 15

# Should the mob duplicate even if the player blocks with a shield?
trigger-on-shield-block: false

# List of worlds where this mechanic is active
enabled-worlds:
  - world
  - world_nether

About

A high-intensity combat mechanic for Paper 1.21.1. Hostile entities duplicate upon successfully damaging a player, creating an escalating difficulty curve and dynamic threat environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages