Near World Spawn
This mod offers complete customization of how the world spawn location is determined! When a player joins a server for the first time or dies without a set spawn point, the system randomly selects a new respawn position within the area of active online players. You can configure the spawn zone yourself, choosing locations among currently connected participants.
The mod's configuration can be instantly adjusted during gameplay using new commands, providing maximum convenience.
How It Works
When the spawn zone change system is activated (the mod's main function), every time a player initially appears on the server or dies without an established spawn point, a new respawn position is automatically generated in the area where alive players are located in the Overworld.
Important note: if no other players are found nearby, the last known world spawn point is used.
Spawn Zone Shapes
The geometric shape of the area from which random positions are selected may not necessarily encompass all participants simultaneously. This is specific to the BOX shape. Even when choosing this configuration, redistribution of player influence can change territory coverage.
When only one other player is nearby, the shape transforms into a point. Therefore, if expansion isn't set, respawning occurs directly at that participant's location.

BOX: Rectangular area including all active players

CIRCLE: Circular zone with center midway through the conditional rectangle and radius equal to its longest side. With significant distance between players in one direction, this configuration creates more "empty space". Remember that this is not yet the smallest containing circle.
Player Influence
To avoid excessively large zones with predominant empty space or positioning too far from participants, the concentration of respawn positions around players can be adjusted. With greater player clustering on one side of the zone, the probability of appearing in that specific area significantly increases.

NONE: Even distribution of respawn points throughout the zone

AREA OFFSET: Center accounting for player distribution is calculated, and the entire zone shifts toward this position

AREA SHRINK: Weighted center is applied to the entire zone as a result of its reduction to the calculated center
Space Expansion
Regardless of shape choice or player influence system, the main area might be too tight if you want to preserve gameplay elements with minor movement after respawning (though the mod's primary purpose is eliminating long runs). For this, an expansion parameter is provided, increasing the selected zone by a set number of blocks in all directions.

Spawn Chunks
In standard Minecraft mechanics, spawn point chunks are permanently loaded. The ability to change this location might create inconvenience when organizing constantly operating mechanisms. Additionally, it could potentially cause lag on less efficient servers provided too large a constant load radius is set (future game parameter).
To prevent such issues, settings include the choice of using fixed coordinates (0,0,0) for permanent chunk functioning. This parameter can be modified using the corresponding command, though changes will only be applied after the next player join or death.
Command System
Command execution requires permission level 2.
-
/worldspawn-moddedDisplays the status of the spawn point change system -
/worldspawn-modded <enabled>Activates or deactivates the spawn point movement mechanism -
/worldspawnDisplays all established custom spawn parameters -
/worldspawn (box|circle) <expand> (none|area_offset|area_shrink)Sets the complete set of custom spawn point parameters -
/worldspawn-areashapeDisplays the selected spawn zone shape -
/worldspawn-areashape (box|circle)Sets the spawn area shape -
/worldspawn-playerinfluenceShows the degree of player influence on positioning -
/worldspawn-playerinfluence (none|area_offset|area_shrink)Sets the active participant influence system -
/worldspawn-expandReturns the current territory expansion value -
/worldspawn-expand <expand>Configures the spawn zone increase parameter -
/spawnchunksDisplays the method of determining permanent chunks: by point (0,0,0) or current spawn location -
/spawnchunks (fixed|worldspawn)Selects the anchor for permanent chunks: fixed position (0,0,0) or changing spawn point
In commands, <enabled> accepts boolean values, and <expand> represents a positive integer.
Frequently Asked Questions:
Do I need to install this mod on my server? Yes, since it functions exclusively on the server side, client installation isn't required.
Can I include it in modpacks? Absolutely, usage within prepared compilations is permitted.
For additional information, improvement ideas, and troubleshooting, you can contact the developer's official server or through the bug reporting system.