runebook · rune
runebook · rune
manifest: sha256:fc8b4a9a7301c882cb16b1fc2d2a2c47af969641dc857e3ef84f48a844ac5c27
rune add @rune/positions@0.1.0rune add @rune/positions
import { snapshot, teleportTo } from "@rune/positions";
const points = rune.store("my-positions");
points.set("lobby", snapshot(player.getLocation()));
const result = teleportTo(player, points.get("lobby"));
if (!result.ok) player.sendMessage("The destination is unavailable.");
Snapshots are plain JSON with the world name, coordinates, yaw, and pitch.
resolvePosition returns a live Bukkit location when the world is loaded.
Teleport on the Paper thread. Bukkit can cancel a teleport and other Runes
can handle that result.