Skip to content

Leo's Lost Cities

Overhaul your minecraft experience with giant customizable cities.

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

Leo's Lost Cities

Leo's Lost Cities is an independently maintained and extensively modified version of The Lost Cities by McJty, developed for Minecraft 1.20.1 Forge.

The project focuses on improving city generation, reducing memory usage, fixing generation issues and making Lost Cities more suitable for large and demanding modpacks.

Rather than relying on a separate optimization addon, the improvements are built directly into the mod itself. A large portion of the internal generation system has been reworked while keeping the original Lost Cities features and customization options available.

Leo's Lost Cities is derivative work distributed under the MIT License, with credit to the original developer.

What's Different?

Leo's Lost Cities improves several aspects of the original city generation system while introducing additional variety and optional integrations with other mods.

Some of the improvements include:

  • Improved building placement and street entrances.

  • Better road connections and intersections.

  • More variety in parks and public areas.

  • Improvements to building loot and chest placement.

  • Improved trees, vegetation and street decorations.

  • Additional furniture and industrial decorations when supported mods are installed.

  • Improvements to building foundations and surrounding terrain.

  • Better handling of large buildings and multibuilding structures.

  • Improved compatibility with other world generation mods.

  • Extensive internal performance and memory optimizations.

The original Lost Cities profiles and customization options remain available. Existing custom profiles and community addons can also be used, although some may require their configuration files to be transferred to the appropriate Leo's Lost Cities configuration folder.

Performance Improvements

One of the main reasons this project was created was to make city generation less demanding, especially in modpacks containing hundreds of mods.

Generating a large city involves considerably more work than generating ordinary Minecraft terrain. Buildings, roads, underground areas, decorations, lighting and terrain modifications all contribute to CPU and memory usage.

Leo's Lost Cities addresses these costs through changes to several internal systems.

Improved Block Storage and Placement

The way blocks are temporarily stored and processed during city generation has been extensively reworked.

Different storage methods are used depending on how much of a chunk section needs to be modified. This reduces unnecessary memory usage and avoids allocating large amounts of storage for smaller operations.

Compatible chunk sections can also be constructed directly from their final block data instead of processing every block through the traditional placement system.

Improved Building Planning and Caching

Information about buildings, roads, terrain and nearby city chunks can be reused more efficiently.

Reusable planning information is stored separately from temporary generation data, allowing the mod to avoid keeping unnecessary objects in memory.

Several frequently used registry lookups, block checks and repeated calculations have also been optimized.

Terrain Generation

Terrain movement, block copying, heightmap calculations and building foundations have received extensive improvements.

These changes reduce unnecessary processing when adapting the surrounding terrain to accommodate cities, roads and other structures.

Native Lighting Optimization

Version 0.0.3 introduces a redesigned internal lighting storage system.

Minecraft normally needs to copy large amounts of lighting information when publishing updated lighting data. The new implementation allows unchanged portions of that storage to be shared safely instead of repeatedly copying the entire map.

Lighting propagation queues have also received memory management improvements.

These changes are designed to reduce temporary memory allocations without reducing lighting quality or disabling lighting calculations.

Scheduled Block and Fluid Ticks

Scheduled block and fluid ticks generated during city construction are stored more efficiently.

The new storage system reduces unnecessary array allocations and copying while preserving tick information and processing order.

This is particularly useful when generating large areas containing water, vegetation and blocks that require scheduled updates.

Parallel Generation

Leo's Lost Cities includes extensive improvements designed to work with parallel chunk generation.

Internal generation data, caches and temporary storage have been reworked with multithreaded generation in mind.

The mod can be used alongside C2ME, allowing both mods to complement each other without requiring another separate Lost Cities optimization addon.

Performance Testing

Development has involved extensive testing using Chunky, Java Flight Recorder and internal generation profiling.

These tests have been used to identify expensive generation operations, repeated calculations, temporary memory allocations and garbage collection bottlenecks.

Some of the most significant measured improvements between development builds include:

  • Over 95% fewer allocations associated with native lighting storage publication.

  • Approximately 72% lower overall lighting allocation volume.

  • Approximately 18 GB fewer cumulative memory allocations during a generation test involving 16,129 chunks.

  • Reduced garbage collection pressure.

  • More efficient storage and processing of city generation data.

These figures come from comparisons between earlier and later development versions of Leo's Lost Cities. They represent improvements to specific systems and cumulative memory allocation, not reductions in the amount of RAM you need to allocate to Minecraft.

Actual generation speed and memory usage depend on your hardware, installed mods, generation settings and the complexity of the cities being generated.

How Is It Different From C2ME and LC²H?

C2ME and LC²H are both useful projects that approach world generation performance in different ways.

C2ME focuses on improving Minecraft's chunk generation and management systems, allowing more generation work to be performed in parallel.

LC²H improves parts of the original Lost Cities generation system.

Leo's Lost Cities takes a broader approach by modifying and maintaining the Lost Cities engine itself.

This includes changes to building planning, terrain processing, block placement, memory management, lighting storage, caching and several other internal systems.

C2ME can be used alongside Leo's Lost Cities and is optional.

LC²H is not required, and using separate addons that modify the internal generation code of original Lost Cities may cause conflicts.

Leo's Lost Cities makes use of the existing chunk generation infrastructure provided by Minecraft and C2ME rather than requiring its own separate chunk generation system.

Community Addon Compatibility

Compatibility with the existing Lost Cities community is an important part of this project.

Original Lost Cities asset identifiers and APIs have been retained to support existing city packs, custom buildings, palettes and generation profiles.

Version 0.0.3 has been tested with ChaosZPack, including its custom generation profile and associated dependencies.

Custom city packs may require their original Lost Cities configuration files to be transferred to the Leo's Lost Cities configuration directory.

Compatibility with every existing addon cannot be guaranteed, particularly with addons that directly modify the internal code of Lost Cities. Please report any issues you encounter.

Supported Mods

Leo's Lost Cities includes optional integrations with several furniture, lighting, decoration and world generation mods.

When supported mods are installed, their blocks can be used to add more variety to buildings, streets and other areas of cities.

Furniture and Lighting

Building and Industrial Decoration

Nature and World Generation

All of these integrations are optional. Leo's Lost Cities works without them.

Only furniture and decoration mods with implemented integrations will have their blocks automatically included in city decorations.

Do I Need to Change Any Settings?

No additional performance configuration is required.

The performance improvements are enabled automatically when the mod is installed. You do not need to add JVM arguments, install additional libraries or manually enable individual optimizations.

You can still customize city generation using the available profiles and configuration options.

An internal performance profiler is also available for troubleshooting and development purposes, but it is disabled by default.

Installation

Minecraft Version: 1.20.1

Mod Loader: Forge

Java Version: 17

  • Remove the original Lost Cities mod if it is installed.

  • Install Leo's Lost Cities in your mods folder.

  • Install C2ME if you want to use its additional chunk generation improvements.

  • Create a new world and select your preferred city generation settings.

Do not install original Lost Cities and Leo's Lost Cities together.

Leo's Lost Cities is a replacement for the original mod, not an addon.

A new world is recommended when switching between versions or changing generation profiles. Always back up existing worlds before replacing a world generation mod.

Known Limitations

Some generation behavior is inherited from original Lost Cities.

Vanilla villages and structures added by other mods may occasionally generate awkwardly around cities. Structure avoidance settings can also cause gaps or abrupt terrain transitions in some areas.

These issues depend heavily on the selected generation profile and installed structure mods.

The project will continue receiving compatibility and stability updates as issues are discovered.

When reporting an issue, please include your latest log, installed mods, generation profile and screenshots whenever possible.

Credits

Leo's Lost Cities is developed and maintained by leo_san.

Based on The Lost Cities by McJty.

Full credit goes to McJty for creating the original Lost Cities mod and its city generation system.

Leo's Lost Cities is an independently maintained derivative project and is not an official release of The Lost Cities.

Where to contact me :

-This is my discord if you wanted to contact me directly. (leo_san) OR (.leo_san) one of them should work.

-this is a link to my discord community https://discord.gg/4vFHj9beKU

description_33b5b6cf-5b61-4ca7-9038-b99208f9933f.png