nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)
UnpersistMobs

UnpersistMobs

Plugin

Tweak despawning of persistent mobs

Server MobsOptimizationUtility

7 downloads
0 followers

Non-invasive solution for unwanted entities!

Sometimes mobs can randomly pick up loot from other dead mobs without any player actions and become persistent. Those mobs then can pile up in unexpected places with little to no chances of player encounter or environmental death. Persistent mobs are not counted towards mobcap and continue to accumulate thus contributing to lag, but even if they do count they would drastically reduce other mobs spawning.

This plugin aims to solve this issue without forcibly clearing anything, disabling any mechanics or enabling any restriction, but just by detecting those mobs and unpersisting them, so they will finally be able to naturally despawn!

Simple configuration allows you to customize plugin behavior:

  • ticksLived - Amount of ticks after which mob is considered too long lived.
  • logOnly - Inform about mobs in console but do not take any actions. This is useful if you just want to analyze the situation.
  • dropItems - Should affected mobs drop all their equipment upon despawning to reduce chances of losing something valuable for players.
  • ignoreTeams - Some custom mobs may use teams to make their custom name completely invisible for players. If this option is disabled the plugin makes sure to check mob team tag visibility option.
  • ignoredSpawnReasons - Plugin will skip any mob with any of reasons listed here. By default this includes:
    • DEFAULT - Mobs generated within structures, such as Piglins in Bastions.
    • CUSTOM - Mobs spawned by other plugins.
    • COMMAND - Mobs spawned mostly by datapacks.
    • SPAWNER_EGG - Self explanatory, just in case :)
      Full list of reasons may be found here

All non-monsters, name-tagged mobs and mobs in vehicles are also skipped by design.

❗️ This plugin uses Paper API thus only works on Paper (or any of it's forks)!

External resources


Project members

NineTeam

NineTeam

Organization


Technical information

License
LGPL-3.0-or-later
Project ID