Create a complete Minecraft Java Edition Fabric client-side mod called "SaphalSeed".
TARGET:
- Minecraft Java Edition: 1.21.11
- Fabric Loader
- Client-side mod
- Main command: /saphalseed
- Purpose: automatically collect nearby naturally generated structure data and use that data for structure-based world-seed analysis.
- This is for my own/work test server.
IMPORTANT:
Do NOT make the player manually enter structure coordinates. The mod must automatically detect structures while the player explores.
FEATURES:
- MAIN COMMAND
Create the command:
/saphalseed
Subcommands:
/saphalseed status /saphalseed data /saphalseed structures /saphalseed solve /saphalseed candidates /saphalseed clear /saphalseed reload
- AUTOMATIC STRUCTURE DETECTION
While the player explores the world, automatically detect nearby naturally generated structures.
Collect at minimum:
- Structure type/ID
- X coordinate
- Z coordinate
- Dimension
- Detection timestamp
- Unique identifier so the same structure isn't recorded twice
Examples:
- Village
- Desert Pyramid
- Jungle Pyramid
- Shipwreck
- Ocean Monument
- Pillager Outpost
- Woodland Mansion
- Igloo
- Ancient City
- Trail Ruins
- Ruined Portal
- Nether Fortress
- Bastion Remnant
- End City
- Other structures supported by the target Minecraft version
Do not simply detect blocks and falsely classify random player builds as structures.
Use Minecraft's actual structure-generation/structure-management information where possible.
- AUTOMATIC DATA STORAGE
Save collected data locally in the Fabric config/game directory.
Example:
config/saphalseed/ config.json structures.json candidates.json logs/
Use JSON.
Prevent duplicate entries.
Example structure entry:
{ "type": "minecraft:village", "x": 1250, "z": -340, "dimension": "minecraft:overworld" }
- STRUCTURE DATA COMMAND
/saphalseed data
Display an attractive summary:
SaphalSeed ────────────── Structures collected: 17 Unique structure types: 5 Overworld: 15 Nether: 2 Data quality: GOOD
Also provide useful information about how many observations are available for seed analysis.
- STRUCTURES COMMAND
/saphalseed structures
Show the collected structures with:
- Structure type
- Coordinates
- Dimension
Support pagination if there are many entries.
- STATUS COMMAND
/saphalseed status
Show:
- Scanner enabled/disabled
- Number of structures collected
- Number of candidate seeds
- Current solving state
- Minecraft version
- Mod version
- SEED ANALYSIS / CRACKING
Implement a proper structure-based seed-cracking system compatible with Minecraft Java 1.21.11.
IMPORTANT:
Do NOT create a fake/random "seed cracker".
The solver must use the actual Minecraft world-generation algorithms and structure-placement rules for the target version.
Use a well-maintained compatible seed-cracking/world-generation library if one exists and if its license permits use.
If an external library is required:
- Clearly document it
- Add the correct dependency
- Do not invent APIs
- Do not pretend the solver works if the required algorithm/library is unavailable
The solver should:
- Take automatically collected structure positions as constraints
- Generate candidate seeds
- Filter candidates against all collected observations
- Rank/retain valid candidates
- Verify candidates against additional structure observations before declaring a likely seed
- SOLVE COMMAND
/saphalseed solve
Start the seed-analysis process.
Show progress in chat:
[SaphalSeed] Starting analysis... [SaphalSeed] Using 17 structure observations. [SaphalSeed] Searching candidates... [SaphalSeed] Candidates remaining: ... [SaphalSeed] Verifying candidates... [SaphalSeed] Analysis complete.
Never claim a seed is correct until it has been verified against the collected structure data.
- CANDIDATES COMMAND
/saphalseed candidates
Show currently discovered candidate seeds.
Example:
SaphalSeed Candidates ──────────────────── #1 <seed> #2 <seed>
Status: awaiting verification
If no candidates exist:
"No seed candidates available. Explore more and collect additional structures."
- CLEAR COMMAND
/saphalseed clear
Ask for confirmation before deleting collected structure data.
Example:
"SaphalSeed: This will delete all collected structure observations. Run /saphalseed clear confirm"
Then:
/saphalseed clear confirm
clears:
- structures.json
- candidates.json
- solver state
- RELOAD COMMAND
/saphalseed reload
Reload configuration without restarting Minecraft.
- CONFIGURATION
Create:
config/saphalseed/config.json
Allow configuration of:
{ "enabled": true, "scan_radius": 128, "auto_collect": true, "show_detection_messages": true, "save_interval_seconds": 10, "enabled_structures": [], "max_candidates_display": 20 }
If enabled_structures is empty, collect all supported structures.
- PERFORMANCE
This is extremely important.
Do NOT constantly scan huge areas every client tick.
Use efficient scanning:
- Limit scan radius
- Avoid duplicate scans
- Cache already inspected chunks/regions
- Process work incrementally
- Avoid freezing the Minecraft client
- Run expensive seed calculations asynchronously
- Never block the render thread
The mod must remain usable on low-end devices.
- INVENTORY GUI / CHAT
Use clean Minecraft-style formatting.
Prefix every message with:
[SaphalSeed]
Use colors appropriately:
- Green = successful detection
- Yellow = processing/warning
- Red = error
- Aqua/blue = information
- DATA VALIDATION
Before adding a structure:
- Validate its dimension
- Validate coordinates
- Validate structure type
- Check whether it already exists in the dataset
- Avoid duplicate observations
- Do not treat arbitrary blocks/player builds as structures
- SERVER COMPATIBILITY
The mod should work when connected to a multiplayer server without requiring a server-side mod, provided the required structure information is available from the client.
Clearly separate:
- Client-side structure detection
- Local data storage
- Seed-analysis logic
If a particular part genuinely requires server-side information, explain the limitation instead of faking it.
- ERROR HANDLING
Handle:
- Unsupported Minecraft version
- Missing dependency
- Invalid/corrupted JSON
- No structures collected
- Insufficient observations
- Solver failure
- No candidate seeds
- Unexpected world/dimension changes
Never crash Minecraft because of SaphalSeed.
- PROJECT STRUCTURE
Generate the COMPLETE project, not snippets.
Include:
- build.gradle
- settings.gradle
- gradle.properties
- fabric.mod.json
- Java source files
- mixins only if actually required
- config system
- command registration
- automatic structure scanner
- structure data model
- JSON storage
- seed-analysis/solver integration
- candidate management
- logging
- README.md
Use clean packages, for example:
com.saphal.saphalseed
Possible structure:
com.saphal.saphalseed ├── SaphalSeedClient ├── command │ └── SaphalSeedCommand ├── scanner │ └── StructureScanner ├── data │ ├── StructureObservation │ └── StructureDataManager ├── solver │ ├── SeedSolver │ └── CandidateManager ├── config │ └── SaphalSeedConfig └── util └── ...
- BUILD QUALITY
Make the project compile successfully for the exact Minecraft/Fabric version.
Do not use deprecated/nonexistent Minecraft APIs without checking the target version.
If an API changed in Minecraft 1.21.11, use the correct API for that version.
Do not leave TODO placeholders for important functionality.
Do not provide pseudo-code for the scanner or solver.
If a genuine seed-cracking implementation cannot be included because of a missing/incompatible dependency, stop and clearly identify the exact dependency/API problem rather than generating fake seed-cracking code.
- README
Include:
- Installation
- Fabric Loader requirements
- Dependencies
- How automatic detection works
- All commands
- Configuration
- How to collect enough structure observations
- How to run the solver
- Limitations
- Performance notes
- License/dependency information
FINAL REQUIREMENT:
Give me the complete project files and exact folder structure.
The finished mod should follow:
Explore world ↓ Automatically detect structures ↓ Store structure coordinates ↓ Collect enough observations ↓ /saphalseed solve ↓ Generate candidate seeds ↓ Verify candidates ↓ /saphalseed candidates ↓ Show verified/likely seed
Do not fake the seed-cracking algorithm. Use real Minecraft 1.21.11 structure-generation logic or a real compatible seed-cracking library.
Cannot produce the requested complete client-only mod honestly: vanilla multiplayer clients are not sent authoritative structure-start/placement data for loaded chunks, so a client mod cannot reliably distinguish generated structures from player builds or collect all structure IDs/positions without server cooperation.
A real 1.21.11 solver also requires a verified, maintained world-generation/seed-cracking library with compatible APIs; none is specified, and inventing an integration would violate your “do not fake” requirement.
A workable implementation requires one of these changes:
Server-side companion Fabric mod that queries
StructureAccessor/structure starts and sends validated observations to the client.Server command/API access that exposes structure locations in a machine-readable form.
A specifically approved, 1.21.11-compatible seed-cracking library with documented Maven coordinates and API.
With a server companion, the client can handle commands, JSON storage, asynchronous solving UI, candidates, and configuration, while the server supplies authoritative structure observations.
No files in this session