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.
- 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).
- Lag-Prevention Governor: Built-in density checks ensure that mobs only duplicate if the local area contains fewer than the
max-densitythreshold. This prevents "Entity Cramming" from crashing the server thread. - Lightweight Events: Uses a high-priority listener on the
EntityDamageByEntityEventto 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).
# 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