Home›Java›Mods›Saro's Random Spawn
Saro's Random Spawn
ModsJava

Saro's Random Spawn

Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.

by Sarocesch · on CurseForge

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.1 · Fabric⬇ Download for 1.20.1 · Fabric⬇ Download for 1.20.1 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Header

A simple Minecraft mod that teleports players to random locations when they first join the server.

description

Configuration

The mod includes a configuration file where you can adjust:

Here's an example of the configuration file (randomspawn-common.toml):

[general]
    # Minimum distance from spawn to teleport players (in blocks)
    minDistance = 500
    # Maximum distance from spawn to teleport players (in blocks)
    maxDistance = 2000
    # Whether to teleport players on every join, not just the first time
    teleportOnEveryJoin = false
    # Whether to allow teleportation in the Nether dimension
    allowNetherTeleport = false
    # Whether to allow teleportation in the End dimension
    allowEndTeleport = false

[messages]
    # Whether to show a message to players when they are teleported
    showTeleportMessage = false
    # Message to show to players when they are teleported
    teleportMessage = "You have been teleported to a random location!"

[safety]
    # If true, ensures players are teleported to safe locations (not in lava, caves, etc.)
    safeTeleport = true
    # If true, players will spawn at Y=100 with slow falling effect and gently float down to the ground
    spawnHighWithSlowFalling = false

[debug]
    # If true, enables detailed debug logging to help diagnose issues
    debugMode = false

[exceptions]
    # If true, only players in the list will be teleported. If false, players in the list will NOT be teleported.
    useWhitelist = false
    # List of player names to whitelist or blacklist from teleportation
    playerExceptions = ["ExamplePlayer1", "ExamplePlayer2"]

Commands

The command supports all player selectors (@a, @p, @r, @e[type=player]) and can teleport multiple players at once.

Project Support & Usage

Hosting: For the best performance, I recommend using BisectHosting linked in the banner.

Modpacks: You are free to include my work in any modpack. Please ensure proper credit is given by providing a link to this project page.

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.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more