Go to file
octacian faf9e2824f Remove after decimal before saving positions
Adds helper function, spawnpoint.pos_clean, to strip off everything past the decimal point when saving a new spawnpoint position.
2017-03-08 17:47:26 -08:00
LICENSE Initial Commit 2017-03-08 12:33:22 -08:00
README.md Add screenshot 2017-03-08 14:40:54 -08:00
init.lua Remove after decimal before saving positions 2017-03-08 17:47:26 -08:00
screenshot.png Add screenshot 2017-03-08 14:40:54 -08:00

README.md

Screenshot

Static Spawnpoint [spawnpoint]

This is a rather simple mod introducing two commands to set a static spawnpoint and to teleport to it. Yes, I know you can set this in minetest.conf, however, doing so causes the spawnpoint to be the same across all of your worlds (very inconvenient). Instead of using minetest.conf, this mod stores the spawnpoint as a string in a file called spawnpoint.conf in the world directory. This allows each and every world to have a different spawnpoint.

Commands

  • /spawn <player>: Teleports you or the player specified to the spawnpoint (requires spawn privilege, and bring privilege to teleport another player)
  • /setspawn <position>: Sets the spawn to the position specified (in format x, y, z) or to your current location (requires server privilege)

Note: If no spawnpoint is specified, nothing will happen when a player executes /spawn.

Screenshot was taken at spawn on the awesome HOMETOWN server!