itzvoidsnare

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.

Kodari AI
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:

  1. Create a client-only Fabric 1.21.11 project with split source sets and metadata.

  2. Add client commands that save named locations locally and request server-authorized teleportation.

  3. Add JSON persistence, tab completion, validation, and user-facing feedback.

  4. 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.

  • Configured Java 21, Yarn mappings, Fabric Loader/API, split client source sets, and Fabric metadata.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
9 316
src/client/java/com/kodari/namedlocations/NamedLocationsClient.java
package com.kodari.namedlocations;

import net.fabricmc.api.ClientModInitializer;

public final class NamedLocationsClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        LocationManager.load();
        LocationCommands.register();
    }
}