作者:rebot | 分类:模组
Minecraft 版本: 1.21.1
平台: fabric
标签: game-mechanics management utility

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


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"]

/newspawn - Teleports yourself to a random location (requires OP permission)/newspawn <player> - Teleports the specified player to a random location (requires OP permission)/newspawn @a - Teleports all players to random locations (requires OP permission)/newspawn @r - Teleports a random player to a random location (requires OP permission)/newspawn @p - Teleports the nearest player to a random location (requires OP permission)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.
请登录后举报
暂无评论,抢个沙发吧~