
Fabric per player spawns - Individual Mob Spawns for Each Player
This modification is a fork of the Lambdacraft project, created after the original developer ceased active support.
The main goal of the mod is to ensure fair distribution of mobs among all players on a server with Fabric installed. I completely reworked the mixin system for compatibility with version 1.16.5 and made significant changes to the operating logic.
How It Works
The modification fundamentally changes the standard creature spawning system:
- Rewrites the mob generation algorithm, taking into account chunks and the number of creatures in them within a square area around each player
- The radius of the considered territory is determined by the server's render distance settings (similar to standard mob limits in vanilla game)
- Each participant gets their own limit on the number of mobs, which applies to chunks in their vicinity (when zones overlap, the highest available limit is used)
- For debugging, hold a glistering melon in creative or spectator modes
In practice, this means: when two players are relatively close to each other, they can either share 70 mobs in the common territory, or have 70 creatures each if their zones don't overlap. Usually, about 105 mobs will be in the overlap zone, which corresponds to the original game developers' intention.
- Default hostile mob limit, configurable ** Approximately at a distance of one server render; calculated as number of loaded chunks/(SRD⋅2+1)²
The mod is fully compatible with Proper Mobcap Modifier from the same author.