Dynamic Randomized Player Spawn System
Saro’s Random Spawn
Saro’s Random Spawn is an innovative mod for Minecraft that instantly teleports players to random coordinates upon their initial connection to the server.
Key Features
- Initial Random Spawn: Upon first joining the server, players are automatically transported to a random location.
- Safe Teleportation Mechanism: Utilizes a sophisticated algorithm to guarantee that players spawn safely above ground, avoiding dangers like caves or walls.
- Scenic Spawn Option: Provides the unique ability for players to appear high above the ground, allowing for a stunning view as they gently descend.
- Adjustable Settings: Server owners have the flexibility to tweak teleportation parameters according to their needs.
- Personalized Messages: Set up custom notifications that greet players when they are teleported.
- Repeat Teleportation Option: Choose to teleport players each time they join, or just for their first entry.
- Player Exemption Features: Enable whitelisting or blacklisting for specific players who should or should not be teleported.
Configuration Options
This mod includes a configuration file which allows you to modify:
- The minimum and maximum distances for teleportation from the spawn point.
- Whether players should be teleported every time they join or only on their first entry.
- Custom messages to be displayed when players get teleported (default settings do not enable this feature).
- The toggle for safe teleportation to ensure players avoid spawning in hazardous locations.
- The scenic spawn feature, enabling players to start high in the air with a slow falling effect.
- Teleportation settings specific to different dimensions, including options for the Nether and End.
- Lists for players who are excluded from random teleportations.
Here’s a simplified version of the configuration file example:
- [general]
- Minimum distance for teleportation from spawn (in blocks): minDistance = 500
- Maximum distance for teleportation from spawn (in blocks): maxDistance = 2000
- Teleport players on every join: teleportOnEveryJoin = false
- Allow teleportation in the Nether: allowNetherTeleport = false
- Allow teleportation in the End: allowEndTeleport = false
- [messages]
- Show a message to players when they are teleported: showTeleportMessage = false
- Message displayed to players upon teleportation: teleportMessage = “You have been teleported to a random location!”
- [safety]
- Enable teleportation to safe locations: safeTeleport = true
- Enable high spawn with slow falling: spawnHighWithSlowFalling = false
- [debug]
- Enable detailed debug logging: debugMode = false
- [exceptions]
- Use whitelist for teleportation: useWhitelist = false
- List of players excluded from teleportation: playerExceptions = [“ExamplePlayer1”, “ExamplePlayer2”]
Commands
/newspawn
– Teleports yourself to a random location (OP permission required)./newspawn [player]
– Teleports a specified player to a random location (OP permission required)./newspawn @a
– Teleports all players to random locations (OP permission required)./newspawn @r
– Teleports a randomly selected player to a random location (OP permission required)./newspawn @p
– Teleports the nearest player to a random location (OP permission required).
This command allows the use of various player selectors (@a
, @p
, @r
, @e[type=player]
) and can teleport multiple players simultaneously.