Maps of the Unknown
Tired of severe server lag when opening chests containing treasure maps or when leveling up villager cartographers? Especially in modpacks where a single chest can contain multiple such maps, causing significant delays during their generation?
This mod offers a simple and effective solution to the problem. Instead of instantly processing structure locations when creating a map, it delays this process until the player uses it. Maps in chests and from traders appear as regular empty maps but transform into full treasure maps upon activation.
Game Settings
The mod adds several game rules for fine-tuning:
doBetterMaps— main toggle for the mod (default:true)doBetterMapsLoot— controls map generation in chests (default:true)doBetterMapsTrades— settings for map appearance from traders (default:true)doBetterMapFromPlayerPos— searches for structures from the player's position (default:false). Note: when set tofalse, the algorithm may find a different instance of the required structure, although it tries to select the closest one to the map creation location.doBetterMapsDynamicLocating— dynamic execution of search tasks (default:true). This option prevents world freezing until search completion and resolves some crash issues. To avoid map duplication, the player must keep the map in hand until receiving the result.
Advantages
The main advantage of the mod is that it's completely server-side! Clients don't need to install it, making it an ideal solution for servers with various modpacks.
Frequently Asked Questions
My world still crashes when using a map, why?
The mod improves loot table processing but doesn't change the structure search logic. It prevents attempts to find multiple structures in a single tick, which often causes crashes even on powerful servers.
Why use the standard empty map?
This allows the mod to work exclusively on the server side.
Why doesn't the map work when used?
Dimension specification has been added to map creation. Hovering over the map in inventory shows a tooltip with the required dimension. If you're in the wrong dimension, a red "x" appears above the hotbar. A blue "x" means the structure wasn't found within the search range.
What happens if I remove the mod?
Special "empty maps" created by the mod will function as regular empty maps in vanilla gameplay.
Compatibility with other mods?
Conflicts with Async Locator are possible if treasure map and trader features are enabled. It's recommended to disable corresponding features in one of the mods.