tsgod5975

Create an simple minecraft mod that is able to mark and set homes with author TSGOD we can set 20 maximum homes and from the folder we can set a number of home limit per person manually and some commands are /home <home name> and /homes when someone type this (/homes) show an inventory like ui where the player can see all his set homes (player head renamed as the homes ) and when someone tap at an marked home he will instantly be teleported to his home

Kodari AI
KodariMar 23 at 3:52 pm 19,343 (v2)

I’ll create a Minecraft Fabric mod for home teleportation with a GUI interface.

SimpleHomesPlus
A comprehensive home teleportation mod allowing players to set, manage, and teleport to multiple home locations. Features include configurable home limits per player (default 20), an interactive GUI using player heads to display saved homes, and simple commands for home management. Players can quickly access their homes through an intuitive inventory interface. Includes persistent data storage and fully customizable configuration for server administrators.
<kodariPatchedFile path="src/main/java/com/tsgod/simplehomesplus/SimpleHomesPlus.java"> <kodariPatchedFile path="src/main/java/com/tsgod/simplehomesplus/command/HomeCommand.java"> <kodariUpdatedFile path="src/main/java/com/tsgod/simplehomesplus/network/OpenHomesScreenPayload.java"> <kodariUpdatedFile path="src/main/java/com/tsgod/simplehomesplus/gui/HomesScreen.java"> <kodariUpdatedFile path="src/client/java/com/tsgod/simplehomesplus/SimpleHomesPlusClient.java"> <kodariCreatedFile path="src/main/resources/assets/simplehomesplus/lang/en_us.json"> --- **Simple Homes Plus mod created successfully!** The mod includes: ✅ **Commands**: - `/sethome <name>` - Set a home at your current location - `/delhome <name>` - Delete a home - `/home <name>` - Teleport to a specific home - `/homes` - Open GUI to view and teleport to all homes ✅ **Features**: - Maximum 20 homes by default (configurable in `config/simplehomesplus.json`) - Interactive GUI showing player heads for each home - Click any home to instantly teleport - Persistent data storage (survives server restarts) - Cross-dimension teleportation support - Author: TSGOD ✅ **Configuration**: Edit `config/simplehomesplus.json` to change `maxHomes` value </kodaripatchedfile>
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
16 680
src/client/java/com/tsgod/simplehomesplus/SimpleHomesPlusClient.java
package com.tsgod.simplehomesplus;

import com.tsgod.simplehomesplus.gui.HomesScreen;
import com.tsgod.simplehomesplus.network.OpenHomesScreenPayload;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.minecraft.client.MinecraftClient;

public class SimpleHomesPlusClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        PayloadTypeRegistry.playS2C().register(OpenHomesScreenPayload.ID, OpenHomesScreenPayload.CODEC);

        ClientPlayNetworking.registerGlobalReceiver(OpenHomesScreenPayload.ID, (payload, context) -> {
            context.client().execute(() -> {
                MinecraftClient.getInstance().setScreen(new HomesScreen(payload.homeNames()));
            });
        });
    }
}