build a 1.21.11 fabric mod for java where we can set different locations with /setlocation (name) and tp to that with /location (name of the location saved with /setlocation). This should be a cheat-free client side mod which should work in servers as well.
KodariAug 7 at 1:24 pm 2
LocationTeleportMod
A client-side Fabric mod for Minecraft 1.21.11 that allows players to save named locations using /setlocation <name> and teleport to them with /location <name>. The mod stores coordinates locally, works on servers without requiring server-side installation, and includes no cheat functionality—it simply provides a convenient way to mark and revisit places. Commands support listing saved locations and removal, with persistent storage across sessions.
Plan:
Create a client-only Fabric 1.21.11 project with split source sets and metadata.
Add client commands that save named locations locally and request server-authorized teleportation.
Add JSON persistence, tab completion, validation, and user-facing feedback.
Add required assets and build configuration.
Created a Fabric 1.21.11 client-only mod named Named Locations.
/setlocation <name> saves the current position, rotation, and dimension locally.
/location <name> sends a normal server /tp command, so it respects server permissions and does not bypass anti-cheat.
Locations persist in .minecraft/config/namedlocations.json.
Added tab completion for saved locations.
Added name validation and localized feedback messages.
package com.kodari.namedlocations;
import net.fabricmc.api.ClientModInitializer;
public final class NamedLocationsClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
LocationManager.load();
LocationCommands.register();
}
}