New Features:
- Added a
minDistance
option to the config to control how close to world spawn you can appear. - Added a
/drandomspawn set_spawn
command for server admins. - Added a darkness effect during the spawn search for a smoother experience.
Fixes:
- Fixed a major bug where the new random spawn point wasn't saving correctly.
Enhancements and Refinements:
- Codebase refactored for improved readability and maintainability.
- Several commands have been renamed for clearer and more intuitive usage.
- Added a new player argument to the
random_teleport
command, enhancing its flexibility.
Version 1.1.0+1.20.1
Key Features
✨ Asynchronous Random Spawn Generation
Initial random spawn searches for new players and subsequent respawns now execute on a separate thread. This significantly reduces server-side lag and stuttering that could occur during these events, providing a smoother experience for players and server administrators.
🛡️ Optional Spectator Mode Lock
A new configurable option (useSpectatorLock
) allows players to be temporarily placed into spectator mode during the random spawn search. This feature prevents unintended player movement or interaction with the world while a safe location is being determined, ensuring a seamless and controlled transition.
Improvements & Refinements
- Refined Respawn Logic: The mod now intelligently respects player-set respawn points (beds, respawn anchors, and
/spawnpoint
command). A unique random spawn will only be assigned or reused if no other specific respawn point is defined for the player. - Enhanced Command System:
- The
/drandomspawn rtp
command has been updated to utilize the new asynchronous search, providing immediate "searching..." feedback and improved responsiveness. - The
/drandomspawn getSpawn
command's logic has been consolidated for clarity, and its permission checks have been precisely applied.
- The
- Standardized Messaging: All in-game messages have been reviewed and standardized for improved clarity and consistency in player feedback.
Miscellaneous
- Internal Refinements: Significant internal code restructuring has been performed to enhance the mod's overall performance, stability, and maintainability.
🎉 First Release!