MASTER PROMPT — Fabric 26.3 Smart Region Blueprint & Construction Machine Mod
Act as a senior Minecraft Java Edition mod developer, Fabric API expert, performance engineer, and Minecraft systems architect.
Your task is to DESIGN AND BUILD a complete, functional, production-quality Minecraft Fabric mod for Minecraft Java Edition 26.3.
Do not create a NeoForge, Forge, Bukkit, Spigot, or Paper plugin. This MUST be a Fabric client-and-server compatible mod.
The mod should introduce an advanced, survival-friendly construction machine that allows players to scan regions, create building blueprints, track missing blocks, and automatically register placed blocks into a construction progress system.
- Main Concept
Create a new in-game machine called:
Smart Blueprint Scanner & Construction Machine
The machine allows players to select a building region, scan it, generate a visual blueprint map, and track every required block needed to complete the construction.
The system should feel like a combination of:
- A Minecraft schematic system.
- A building blueprint visualizer.
- A missing-block tracker.
- A survival-friendly construction assistant.
- A lightweight region scanner.
Everything must work naturally in Survival Mode without requiring creative mode or cheats.
- Region Selection System
Players must be able to define a custom construction region.
Requirements:
- Allow selecting two opposite corners of a region.
- Provide an easy in-game selection tool or machine interface.
- Show the selected region's dimensions (X, Y, Z).
- Display the total number of blocks in the region.
- Allow a maximum horizontal scanning area of approximately 100 chunks.
- Make the maximum configurable.
- Support saving multiple blueprints.
- Allow players to rename, delete, and reload saved blueprints.
- Prevent accidental selection of extremely large regions that could cause lag or crashes.
- Interactive Region Map
When a player interacts with the machine, open a custom GUI displaying a top-down map of the selected region.
The map must:
- Display terrain and building layouts in an understandable way.
- Show different block types using distinguishable colors or textures.
- Allow zooming and panning.
- Support different map layers.
- Display chunk borders as an optional overlay.
- Allow selecting specific sections of the region.
- Show construction progress visually.
- Update progressively instead of freezing while scanning.
IMPORTANT PERFORMANCE REQUIREMENT:
Do NOT render or scan all 100 chunks at once.
Use:
- Asynchronous background processing where safe.
- Incremental scanning.
- Chunk-based caching.
- Distance-based detail levels.
- Lazy loading.
- Efficient rendering.
- Strict limits on per-tick work.
Never access Minecraft world data unsafely from background threads. All world interactions must follow Fabric/Minecraft thread-safety requirements.
The map must NOT cause significant FPS drops, memory spikes, or server TPS problems.
- Blueprint Creation & Missing Block Detection
The player must be able to designate an existing structure or an empty construction area as a blueprint.
The machine must analyze the blueprint and generate an accurate list of all required blocks.
For example:
Required:
- 250 Stone Bricks
- 120 Oak Planks
- 64 Glass
- 32 Lanterns
Currently placed:
- 200 Stone Bricks
- 80 Oak Planks
- 40 Glass
- 12 Lanterns
Missing:
- 50 Stone Bricks
- 40 Oak Planks
- 24 Glass
- 20 Lanterns
The missing-block list must:
- Update automatically.
- Display exact quantities.
- Group blocks by type.
- Support searching and filtering.
- Show completed and incomplete categories.
- Account for block states when relevant.
- Avoid counting already completed positions twice.
- Construction Progress Tracking
When the player breaks or removes a required block from the designated structure:
- Detect that the required position is now incomplete.
- Update the missing-block count.
- Highlight the missing position on the blueprint map.
- Display the exact missing block type and quantity.
- Restore the position to the incomplete state.
When the player places the correct block in the correct position:
- Automatically recognize it.
- Mark that position as completed.
- Update the missing-block list.
- Update the percentage of completed construction.
- Update the map without requiring a manual rescan.
If the player places the wrong block:
- Do not count it as completed.
- Keep the position marked as missing.
- Optionally show which block is required.
Track individual block positions rather than relying only on inventory totals.
- Survival-Friendly Construction
The machine MUST NOT automatically generate blocks, duplicate items, or give players free materials.
The player must obtain all materials legitimately through Survival gameplay.
The machine is a construction assistant, NOT a cheating tool.
Additional features:
- Show which missing materials the player currently has in their inventory.
- Show how many additional materials they need.
- Provide a shopping-list-style material checklist.
- Allow sorting by required quantity.
- Allow marking materials as collected.
- Support normal Minecraft inventory and crafting workflows.
- Machine Connection & Region Linking
After creating a blueprint, the player must be able to connect or register the selected construction region to the machine.
Once connected:
- The machine monitors the registered region.
- Block placements and removals are detected automatically.
- Construction progress stays synchronized.
- The player can disconnect, reconnect, or move the machine according to configurable rules.
- Multiple independent construction projects should be supported.
Use efficient event-driven updates instead of repeatedly scanning the entire region every tick.
Persist project information safely across world saves, server restarts, and player reconnects.
- Advanced GUI Design
Create a polished Minecraft-style GUI with the following sections:
- REGION MAP
- Interactive top-down map. - Zoom and pan controls. - Missing-block position highlights. - Chunk border overlay.
- MATERIALS
- Required materials. - Available materials. - Missing quantities. - Search and sorting.
- PROGRESS
- Overall completion percentage. - Completed blocks. - Missing blocks. - Progress indicators.
- SETTINGS
- Scanning limits. - Map rendering quality. - Update frequency. - Visual overlays. - Performance settings.
The interface should be intuitive, visually clean, and optimized for Minecraft's normal GUI scaling.
- Performance Engineering — CRITICAL
Performance is one of the highest priorities.
The mod must be designed for low-end and mid-range computers.
Strict requirements:
- No continuous full-region scanning.
- No expensive operations every tick.
- No unnecessary block entity updates.
- No excessive network packets.
- No memory leaks.
- No unbounded caches.
- No blocking main-thread operations.
- No expensive rendering calculations every frame.
- Use efficient data structures.
- Use incremental updates and batching.
- Cache map data and invalidate only changed sections.
- Synchronize only the necessary project information between client and server.
- Implement configurable update budgets.
- Avoid loading unloaded chunks just to scan them.
The map must support large regions while remaining lightweight.
- Multiplayer & Server Compatibility
The mod must support multiplayer servers.
Requirements:
- Server-authoritative construction tracking.
- Proper client-server synchronization.
- Permission checks.
- Prevent players from modifying projects they do not own.
- Handle chunk loading and unloading correctly.
- Prevent duplicate project registration.
- Support multiple players viewing the same authorized blueprint.
- Never trust client-submitted block changes without server verification.
- Technical Requirements
Use:
- Minecraft Java Edition 26.3.
- Fabric Loader compatible with Minecraft 26.3.
- The correct Fabric API version for 26.3.
- Java version required by the target Minecraft version.
- Gradle with Fabric Loom.
- Official Minecraft mappings or a consistent supported mapping system.
Before implementation:
- Verify that Fabric Loader and Fabric API actually support Minecraft 26.3.
- Verify available Minecraft and Fabric APIs.
- Never invent nonexistent classes, methods, events, or APIs.
- Use correct mod metadata and dependencies.
- Keep the code modular and maintainable.
- Deliverables
I want a COMPLETE working mod project, not just an explanation.
Provide:
- Full Gradle project.
- Correct build.gradle.
- gradle.properties.
- settings.gradle.
- fabric.mod.json.
- All Java source files.
- Client-side rendering and GUI code.
- Server-side region tracking code.
- Networking implementation.
- Block and item registration.
- Machine block and block entity implementation.
- Data persistence.
- Configuration system.
- Resource files.
- Textures and GUI assets.
- README with installation and usage instructions.
The project must compile successfully.
- Testing & Quality Assurance
Before declaring the project complete:
- Build the mod.
- Fix all compilation errors.
- Test machine placement and interaction.
- Test region selection.
- Test scanning.
- Test blueprint generation.
- Test block placement tracking.
- Test block removal tracking.
- Test save/load persistence.
- Test multiplayer synchronization.
- Test unloaded chunks.
- Test large regions.
- Check for memory leaks and performance issues.
Do not claim that something was tested if it was not actually tested.
- Final Instructions
Do not simplify the main features into placeholders.
Do not create fake GUI buttons that do nothing.
Do not replace the actual world-scanning system with a hardcoded demonstration.
Do not omit important files.
Do not provide pseudocode instead of implementation.
If a specific API or feature is unavailable in Minecraft 26.3, find a legitimate alternative and explain the limitation.
If the complete implementation is too large for one response, build it in organized stages while preserving a consistent architecture.
FINAL GOAL:
Deliver a fully functional, optimized, multiplayer-compatible Fabric 26.3 mod that lets players select up to approximately 100 chunks, view an interactive map of their construction area, create blueprints, see exactly which blocks are missing and how many are needed, and automatically track every correct placement or removal through a connected construction machine — all while remaining fair, survival-friendly, and extremely performance-conscious.
Add the survival machine and selection tool, with bounded, incremental server-side scanning.
Persist blueprints and position-level progress; update on world changes and synchronize authorized viewers.
Build the owo-ui controls, map/progress views, registrations, resources, and project metadata.
Created a Fabric 26.3 project with the machine and wand, survival recipes, saved named scans, incremental server-thread scanning that pauses at unloaded chunks, and exact-state progress tracking through a server-side block-change mixin. The owo-ui screen includes a map, materials and progress views, plus YACL settings.
This is not yet the full requested feature set: scans capture existing structures, but there’s no way to author a blueprint for an empty site; map-cell selection doesn’t filter materials by section; and breaking and replacing the machine does not transfer its saved projects. I also haven’t performed in-game QA, so I can’t claim gameplay testing.
package com.kodari.smartblueprint.client;
import com.kodari.smartblueprint.ModContent;
import com.kodari.smartblueprint.network.BlueprintPayloads;
import com.kodari.smartblueprint.network.BlueprintPayloads.ProjectProgress;
import com.kodari.smartblueprint.network.BlueprintPayloads.ProjectSnapshot;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.fabricmc.fabric.api.event.player.UseBlockCallback;
import net.minecraft.client.Minecraft;
import net.minecraft.world.InteractionResult;
public final class SmartBlueprintClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
UseBlockCallback.EVENT.register((player, level, hand, hit) -> {
if (!level.isClientSide()) {
return InteractionResult.PASS;
}
if (player.getItemInHand(hand).getItem() == ModContent.BLUEPRINT_WAND) {
return InteractionResult.SUCCESS;
}
if (level.getBlockState(hit.getBlockPos()).getBlock() == ModContent.BLUEPRINT_MACHINE) {
Minecraft.getInstance().gui.setScreen(new BlueprintMachineScreen(hit.getBlockPos()));
return InteractionResult.SUCCESS;
}
return InteractionResult.PASS;
});
ClientPlayNetworking.registerGlobalReceiver(ProjectSnapshot.TYPE,
(payload, context) -> BlueprintMachineScreen.receive(payload));
ClientPlayNetworking.registerGlobalReceiver(ProjectProgress.TYPE,
(payload, context) -> BlueprintMachineScreen.receive(payload));
}
}