Skip to content

About

Adds commands for world, personal, and shared spawn points.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SpawnCommands

SpawnCommands adds server-side commands for world, personal, and explicitly shared spawn points on Fabric and NeoForge for Minecraft 26.3.

Personal spawn points continue to use vanilla beds, respawn anchors, dimensions, yaw, and pitch. The mod does not create a second spawn system. /myspawn and /spawnof land where a vanilla respawn would: the stand-up position beside a bed or respawn anchor, or exactly on a /spawnpoint position. The respawn_radius gamerule's random spread belongs to the world spawn and never moves a personal spawn. Teleporting does not use a respawn anchor charge. If the bed or anchor is gone or obstructed, the command fails instead of falling back to the world spawn.

Features

  • World and personal spawn commands.
  • Spawn sharing is persistent and owner-scoped. Granting access to one player's spawn never grants access to another player's spawn.

Getting started

  • Fabric Loader 0.19.5 or newer with Fabric API, or NeoForge 26.3.0.99 or newer.
  • BrainageLib 2.0.0 or newer, below 3.0.0, for the matching loader.
  • Install exactly one matching JAR on the server: the Fabric JAR with Fabric API, or the NeoForge JAR with NeoForge.

Commands

  • /spawn – teleports you to the world's configured spawn dimension, position and rotation. You land on top of the floor in the spawn block: farmland, a slab, a floor built over the spawn, or the top of a fence or wall just below it. If there is no room for you there, even to crawl, the command fails and you stay where you are. A spawn in a chunk that nobody has loaded still works: its chunk is loaded in the background first, which vanilla's own spawn search does too, and the check and the teleport follow once it is there. You are told that the spawn is loading, and you arrive a moment later.
  • /myspawn – teleports you to your vanilla personal respawn point.
  • /spawnof <player> – teleports you to an online player's personal spawn if they shared access with you.
  • /spawnshare <players> – grants the selected online players access to your personal spawn.
  • /spawnshare revoke <players> – revokes that access, also from players who are offline. It suggests the players who have access.
  • /spawncommands or /spawncommands help – lists these commands.
  • /spawn, /myspawn and /spawnof refuse a destination in lava or over the void, where no block lies below it down to the minimum build height, and leave you where you are with a message.

Messages use BrainageLib's style: a grey [SpawnCommands] prefix with a green body for success and a red body for errors. SpawnCommands is listed in BrainageLib's /servermods help and first-join notice. Every command answers the player with a UI click sound, and a command only a player can use, run from the console, gets BrainageLib's shared "This command can only be used by players!" message.

Known limits

  • /spawnshare revoke looks a typed name up only in the server's name cache (usercache.json), never through Mojang. The cache holds the players the server has seen recently and saves at most 1000 of them, so a guest who has dropped out of it cannot be named until they join again. Operators can still pick online players with selectors such as @p.
  • When two cached guests have the same name (one was renamed and another took the name), /spawnshare revoke with that name revokes both.

Configuration

No configuration yet.

Compatibility

Vanilla clients can join without installing the mod.

Documentation

About

Adds commands for world, personal, and shared spawn points.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages