HomeJavaModsDistributedMobSpawns
ModsJava

DistributedMobSpawns

This plugin will no longer be updated due to being merged. However the plugin is still useful for older server versions without the patch. To use Paper's…

⬇ Download on Spigot
This plugin will no longer be updated due to https://github.com/PaperMC/Paper/pull/2171 being merged. However the plugin is still useful for older server versions without the patch.

To use Paper's new mob spawn distribution, use the latest 1.14.4 or higher build and set per-player-mob-spawns to true.


Background information

Multiplayer natural mob spawning has a fatal flaw. It uses a global cap that is essentially only dependent on the number of chunks loaded. This means areas with lots of dark areas will get more mob spawns over other areas. This can lead to the situation where some players have many more mobs around them over other players.

Features
DistributedMobSpawns aims to solve this issue by preventing mob spawns around players who have exceeded the spawn limit around their mob-spawn-radius area.
Note: Since most animals are spawned using chunk generation and not through natural spawning, the animal limit has some issues.

Install
A Paper server is recommended so that only naturally-spawned mobs count towards the limit.
Just drop into plugins folder and restart.
config.yml available to tweak responsiveness/lag settings.
It is recommended that the mob-spawn-range is 8 in spigot.yml and view-distance is 10.

Commands
All the commands are for testing and configuration purposes and so
require dms.debug permission.
/dms butcher [mobtype] : kill all mobs of [mobtype] from the current world
/dms stats : view distribution of monsters
/dms help : view command info

/dms toggle : toggle distribution enforcement
mobtypes: [animals] [monsters] [ambients] [watermobs] [all]

Images
Images are screenshots of the /dms stats command after using /dms toggle and /dms butcher all

Enforcement disabled with one player [forest biome]
dms2.PNG
Enforcement enabled with one player [forest biome]
dms1.PNG
Enforcement disabled with one player [ocean biome]
dms22.PNG

Enforcement enabled with one player [ocean biome]
dms11.PNG

Enforcement disabled with 3 players [ocean biome, forest biome, forest biome]
dms222.PNG
Enforcement enabled with 3 players [ocean biome, forest biome, forest biome]
dms111.PNG

Planned updates
Leave a suggestion

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

DistributedMobSpawns is a free Minecraft Java mod. Compatible with Minecraft 1.12, 1.13, 1.14. Downloaded 3,475 times (via Spigot). Download it and open it directly in the game.

Explore more