Skip to content

A simple and configurable one-mixin mod that makes all (even datapacks and modded) structures more spread out (or more common!), essentially making them rarer/easier to find. Useful in big modpacks with a lot of structures mod to encourage exploration and make the experience more challenging or balanced.

License

Notifications You must be signed in to change notification settings

abm991/sparsestructures

 
 

Repository files navigation

Sparse Structures

A simple and configurable one-mixin mod that makes all (even datapacks and modded) structures more spread out (or more common!), essentially making them rarer/easier to find. Useful in big modpacks with a lot of structures mod to encourage exploration and make the experience more challenging or balanced.

Notice: this does not alter the generation of ores/geodes or other features of this kind, and alters very slightly the terrain and trees (not enough to be an issue to most players).

Examples

Comparison between two world on the same seed, the one on the left showing a witch hut and a mansion (without the mod), the one on the right showing the same terrain but without those structures

In a modded environment:

First screenshot of the comparison, showing many (maybe too many) structures at once in the ocean because of the quantity of structure mods installed. Second screenshot of the comparison, showing lot less structures in the same world (seed), at the same coordinates.

Structure Mods in the picture : Tidal towns, Explorify, all Yung's mods, Just Another Structure Pack, MVS, Explorations, Towns and Towers, Dungeons and Taverns...

Configuration

The config can be found in the config folder of your instance, and is named sparsestructures.json5. It contains the following options :

  • spreadFactor : the factor by which the separation and spacing of structures should be multiplied. The default value is 2, which means that structures will be twice as rare. If you want structures to be more common, you can set this value to 0.5 for example.
    • ⚠️ Warning : a very low value (like 0.01) makes the world generation process considerably slower.
  • customSpreadFactors : a list of custom spread factors for specific structures. The default value makes the mansion twice as rare as an example (which has no effects with a global spreadFactor of 2). If you want to change the spread factor of a structure, you can add an entry to this list. Each entry is a JSON object with two fields : name (the name of the structure) and spreadFactor (the spread factor of the structure). Here's an example :
{
    "name": "minecraft:mansion",
    "spreadFactor": 2
}
// More detailed info can be found inside the config file

For now (v2.0), you have to restart the game for the config to be reloaded. This behavior may change in the future.

Dependencies

This mod doesn't have any (not even fabric-api).

Future Updates

  • World-specific configs
  • Open an issue on this project's repo if you have any suggestion!
  • Add an option to blacklist mods/structures. (added in v2.0)
  • Add an option to change the spread factor. (added in v2.0)

Credits

Icon made with Gimp using Twemoji and FiraCode

About

A simple and configurable one-mixin mod that makes all (even datapacks and modded) structures more spread out (or more common!), essentially making them rarer/easier to find. Useful in big modpacks with a lot of structures mod to encourage exploration and make the experience more challenging or balanced.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%