Skip to content
Commands to manage player/force spawn point
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
locale/en
.gitattributes Fix ignore settings on API file Jun 10, 2019
.gitignore Fix ignore settings on API file Jun 10, 2019
LICENSE.txt Change case of license filename Jun 12, 2019
README.md Add `spawn map` command Jun 17, 2019
api-dependencies.txt Add `spawn map` command Jun 17, 2019
changelog.txt Update info and changelog Jun 17, 2019
commands.lua Forgot to refactor to use local variable Jun 17, 2019
control.lua Add `spawn map` command Jun 17, 2019
info.json Update info and changelog Jun 17, 2019

README.md

Set Spawn

Simple and minimal commands to manage player/force spawn point. Useful when the starting spawn point is nowhere near your factory.

Usage

The primary command is spawn, which accepts subcommands as its first argument.

set

set [x,y | x y] -- Note: The brackets here represent optional parameters

set [gps=x,y]

Sets the spawn point of the invoking user's force. If given no arguments, uses the current position. Also accepts rich-text [gps] tags introduced in v0.17.0, which can be conveniently inserted by shift-clicking somewhere on the world.

get

get

Prints the current spawn point of the invoking user's force to the console.

show

show

Like get, but uses a [gps] tag, which shows the spawn point as a waypoint on the map.

map

map

Toggles a map tag (waypoint) showing the location of the spawn point.

reset

reset

The mod makes a note of the force's original spawn point. This command resets the spawn point to this location.

Other Information

This mod is in its infancy and could certainly be improved. Suggestions and pull requests are absolutely welcome!

You can’t perform that action at this time.