Sparse Structures
Mod Overview
This practical and configurable modification changes the frequency of all structures in Minecraft, including standard buildings as well as those added by other modifications or datapacks. With it, you can make structures more rare or, conversely, more common, which is especially useful in large modpacks to encourage exploration and add challenge to the gameplay.
Important: the mod does not affect the generation of ores, geodes, or similar objects, and also has minimal impact on landscape formation and vegetation.
Usage Examples
Demonstration of the mod's functionality:
![""]https://cdn.modrinth.com/data/qwvI41y9/images/be9e463926fb59e8314ba24c69d173ab4d636278.png
In a modded environment:
![""]https://cdn.modrinth.com/data/qwvI41y9/images/ae9d2621f1f12bf208a7af27738e6a9113e3de45.png ![""]https://cdn.modrinth.com/data/qwvI41y9/images/78f2018c9beb7c9e5992b0c246313ff7c7228e03.png
Structure mods in the images: Tidal towns, Explorify, all Yung's mods, Just Another Structure Pack, MVS, Explorations, Towns and Towers, Dungeons and Taverns...
Functional Capabilities
- Full Configuration — adjusting the rarity of any structures, including custom ones.
- MC-177381 Fix — fixing the error with incorrect distance in the /locate command.
- Information Gathering — the /dumpstructuresets command outputs a complete list of structure sets in the required configuration format.
- Extended Limitations — removal of distance limits between structures, allowing them to be rarer.
- Structure Disabling — setting the spread factor to zero completely removes the object from generation.
- Improved Distribution — prevents close placement of patterns through the use of salt based on structure identifier.
Configuration
Settings are located in the configuration folder of the game instance under the name sparsestructures.json5. Main parameters:
- spreadFactor — base multiplier for distance and interval between structures. Default is 2 (structures become twice as rare). To increase frequency, you can use a value of 0.5. Setting to 0 disables the structure.
Warning: setting a very small value (for example, 0.01) may slow down world generation.
- idBasedSalt — controls the uniqueness of structure salt to avoid mass appearance (active by default).
- customSpreadFactors — individual settings for specific patterns. Usage example:
json5 { "name": "minecraft:mansion", "spreadFactor": 2 } // Detailed information is available in the configuration fileTip: get an automatically populated list using the /dumpstructuresets command.
In the current version (v2.0), a game restart is required to apply changes.
Note: when using the "Alex's Caves" mod, it is recommended to set its structure factors to 1 to prevent issues.
Dependencies
- Fabric API (for Fabric) or equivalent for Quilt
Future Updates
- Per-world configurations
- Support for structure tags
- Biome constraint customization
- Resolving /locate command issue for disabled structures (1.20.X only)
- Mutual exclusion option for objects
- Customizable configuration (implemented in v2.0)
- Banning specific structures (from v3.0)
- Frequency-based generation (from v3.0)
Known Issues
- Searching for a disabled structure in versions 1.20.X causes internal server freeze (requires restart). This doesn't happen in 1.21.X.
- Incompatibility with the Cyanide mod