Ahmed ابو العلا

Develop a Bedrock mini-map plugin that displays player locations, waypoints, and terrain features in real-time. Include customizable markers, zoom levels, and a user-friendly interface that allows players to toggle map visibility and adjust settings easily. Ensure compatibility with various Bedrock server versions for seamless integration.

1 image attached
Kodari AI
KodariOct 8 at 10:54 am 1
BedrockMiniMap
Develops a Fabric 1.26.3 Bedrock-compatible mini-map mod displaying real-time player locations, waypoints, and terrain features. Includes customizable markers, adjustable zoom levels, and an intuitive HUD interface. Players can toggle map visibility, configure display settings, and manage waypoints through a user-friendly menu. Ensures seamless integration across various Bedrock server versions for enhanced navigation and gameplay awareness.

I can’t build this one as a Bedrock plugin. This project is a Fabric 26.3 Java mod workspace, and Bedrock Edition doesn’t load Fabric mods or Java plugins. Bedrock add-ons use their own JSON and Script API format, so they need a separate project.

The screenshot shows a Java Edition minimap, so I can build that version here:

  • Fabric 26.3 minimap mod: a corner or circular map that shows terrain, player markers, and waypoints.

  • Zoom levels that you can cycle through with a keybind.

  • Toggle keybind to show or hide the map.

  • Settings screen for marker colors, map size, and position, built with YACL.

  • Survival-ready: a crafted item or keybind for waypoints, saved per world.

Should I build the Fabric 26.3 Java version? If you need Bedrock support, that has to be a separate Bedrock add-on project.

Ahmed ابو العلا

Compilation Error Missing required files for Fabric mod

Kodari AI
KodariOct 8 at 11:10 am 6

Plan:

  1. Look up the Fabric and vanilla 26.3 signatures the mod needs.

  2. Create the build files and the client-only minimap, with a keybind, zoom, waypoints, and a settings screen.Key findings from the library: HUD elements and screens draw through extractRenderState(GuiGraphicsExtractor, ...), not GuiGraphics.render. Before writing the screen and key code, I need the widget builder, key-mapping, and chunk-check signatures.The screen, key, and chunk signatures check out. Before I write the HUD, I need the window size, the singleplayer and server-key accessors (for per-world waypoint files), and the key constants.The screen, key, HUD, and world-key signatures are confirmed. I’ll create the build files and the client-side mod now.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
11 710
src/client/java/com/example/minimap/MinimapClient.java
package com.example.minimap;

import com.mojang.blaze3d.platform.InputConstants;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElementRegistry;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.Identifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.file.Path;

public class MinimapClient implements ClientModInitializer {
    public static final Logger LOGGER = LoggerFactory.getLogger("minimap");

    private final Path configDir = FabricLoader.getInstance().getConfigDir();
    private final Path configFile = configDir.resolve("minimap.properties");

    private MinimapConfig config;
    private WaypointManager waypoints;
    private MinimapHud hud;
    private KeyMapping toggleKey;
    private KeyMapping zoomKey;
    private KeyMapping waypointKey;
    private KeyMapping settingsKey;

    @Override
    public void onInitializeClient() {
        config = MinimapConfig.load(configFile);
        waypoints = new WaypointManager(configDir.resolve("minimap").resolve("waypoints"));
        hud = new MinimapHud(config, waypoints);

        KeyMapping.Category category = KeyMapping.Category.register(Identifier.fromNamespaceAndPath("minimap", "controls"));
        toggleKey = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.minimap.toggle", InputConstants.Type.KEYBOARD, InputConstants.KEY_M, category));
        zoomKey = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.minimap.zoom", InputConstants.Type.KEYBOARD, InputConstants.KEY_Z, category));
        waypointKey = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.minimap.waypoint", InputConstants.Type.KEYBOARD, InputConstants.KEY_B, category));
        settingsKey = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.minimap.settings", InputConstants.Type.KEYBOARD, InputConstants.KEY_N, category));

        HudElementRegistry.addLast(Identifier.fromNamespaceAndPath("minimap", "map"), hud);
        ClientTickEvents.END_CLIENT_TICK.register(this::onClientTick);
    }

    private void onClientTick(Minecraft client) {
        waypoints.switchWorld(worldKey(client));
        hud.tick(client);

        while (toggleKey.consumeClick()) {
            config.enabled = !config.enabled;
            config.save();
            notify(client, config.enabled ? "Minimap shown" : "Minimap hidden");
        }
        while (zoomKey.consumeClick()) {
            config.zoomIndex = (config.zoomIndex + 1) % MinimapConfig.ZOOM_BLOCKS.length;
            config.save();
            notify(client, "Minimap zoom: " + config.zoomBlocks() + " blocks");
        }
        while (waypointKey.consumeClick()) {
            if (client.level == null || client.player == null || !waypoints.hasWorld()) {
                continue;
            }
            int x = (int) Math.floor(client.player.getX());
            int y = (int) Math.floor(client.player.getY());
            int z = (int) Math.floor(client.player.getZ());
            String dimension = client.level.dimension().identifier().toString();
            Waypoint waypoint = waypoints.add(dimension, x, y, z, config.waypointColor());
            notify(client, "Added " + waypoint.name() + " at " + x + ", " + y + ", " + z);
        }
        while (settingsKey.consumeClick()) {
            client.gui.setScreen(new MinimapSettingsScreen(config, waypoints));
        }
    }

    private static String worldKey(Minecraft client) {
        if (client.level == null) {
            return null;
        }
        if (client.getSingleplayerServer() != null) {
            return "singleplayer-" + client.getSingleplayerServer().getWorldData().getLevelName();
        }
        if (client.getCurrentServer() != null) {
            return "server-" + client.getCurrentServer().ip;
        }
        return null;
    }

    private static void notify(Minecraft client, String message) {
        if (client.player != null) {
            client.player.sendSystemMessage(Component.literal(message));
        }
    }
}