2025
Cartopia
A Minecraft Forge 1.20.1 mod that builds an in-game world from a selected real-world area at roughly 1:1 scale. It combines OpenStreetMap features with elevation and land-cover data, then generates terrain, roads, buildings and urban infrastructure in Minecraft.
Project roles
Technologies and tools
- Built a Minecraft 1.20.1 mod on Forge 47.4.0 and Java 17 that reconstructs selected real-world areas at roughly 1:1 scale, with one block representing approximately one metre. Documented setup and geographic limits: generation supports latitudes from 60° S to 85° N, excluding the polar regions beyond those bounds.
- Implemented the in-game area-selection flow: pressing `M` opens the mod menu with a short guide, a map launcher and a real-time/weather synchronization toggle. An embedded HTTP server at `127.0.0.1:4567` serves the web UI and accepts player coordinates, selected-area data and synchronization settings; a health endpoint reports server readiness.
- Built a Leaflet map with OpenStreetMap tiles. Users can search for a place by name, address or coordinates through Nominatim, pan and zoom the map, select and confirm a square area, switch light/dark themes, and move or collapse the control panel. The default side length is 500 m, the minimum is 200 m, and the adjustment step is 100 m; large areas trigger a warning.
- Configured OpenStreetMap feature collection through Overpass. Queries cover roads, pedestrian routes and crossings, traffic signals and calming, barriers, railways, platforms and stops, water, aeroways and aerialways, land use and natural areas, buildings and parts, POIs and urban infrastructure, utilities, boundaries and populated places. For resilience, requests are tried against up to five Overpass servers in sequence; the server rejects areas wider than 20° in latitude or longitude.
- Built the raster-data pipeline: download and validate a GMRT digital elevation model in GeoTIFF with up to 10 attempts, and clip OpenLandMap land-cover data to the selected area through `gdal_translate` when GDAL is installed. `SurfaceGenerator` converts the DEM into Minecraft terrain, smooths sharp elevation changes, handles water separately and uses land-cover classes to color the surface. Geometry and terrain are prepared as JSON/NDJSON and binary sidecar files; generators stream feature geometry and access the elevation grid through memory-mapped files, with fallback to the original JSON.
- Implemented 58 generator classes wired into the sequential Cartopia Pipeline, plus a separate construction-site decorator. They build terrain and surface cover, water, buildings with complex and multipart footprints, address-point houses, roads and railways, piers, bridges, overpasses, tunnels and underpasses; road-button elements and markings, stop and railway-crossing markings, pedestrian crossings, parking stalls, helipads, lamps and traffic lights.
- Added urban and utility features: street utility boxes, lighthouses, wind turbines and windmills, watchtowers, chimneys, masts and tank towers, solar panels, substations, power poles and lines, overhead pipelines, fuel pumps, car washes and EV chargers; flagpoles, shelters and water sources; rest areas with benches, tables, barbecues, gazebos and tents; beaches with loungers; football, basketball, tennis, volleyball, badminton and golf facilities, shooting ranges and fitness areas; waste bins and recycling facilities, fences and guardrails, cemetery graves, fire hydrants, parking meters, bicycle parking, post boxes, cameras, information boards, apiaries, mines and mineral features, windsocks, cranes, advertising, fountains, monuments, aerialways and cave entrances. The pipeline also generates traffic-calming features and vegetation. Object placement and material selection follow available source geometry and tags, with simplified variants when tags are incomplete.
- Connected the stages into one end-to-end pipeline: after the user confirms an area, the browser sends its coordinates and fetched OSM features to the local server; the server saves a separate generation package, downloads the DEM and clips OpenLandMap data if GDAL is available. The inputs are then split into a streamed feature file and binary terrain files. The pipeline first builds the surface from elevation and land-cover data, then places roads, railway features, buildings and the remaining generators in sequence. It reports progress in chat, moves players to safe ground, starts time/weather synchronization, saves the world and cleans dropped items from the generated area.
- Implemented an Open-Meteo controller that requests local time and weather for the selected coordinates hourly and applies changes gradually in Minecraft. Added synchronization controls to the in-game menu and map panel, and implemented saving weather conditions and generation results in the game world.
- Prepared 18 illustrated generation examples and 19 interface screenshots, plus Russian and English documentation for installation, controls, pipeline stages, data sources and limitations. Documented checks in Saint Petersburg, Moscow, Karelia, Kazan and Naberezhnye Chelny, plus selected areas in China, the USA and India; recorded test systems including a MacBook Air M2 with 8 GB memory and a Windows 10 PC with a GTX 960, 16 GB RAM and an Intel i5-4460.
- Developed a separate Node.js/Express server prototype for GMRT downloads, GDAL integration and area-package preparation, plus Python geospatial and Minecraft-world tools with GeoPandas, Shapely, Rasterio and Amulet. Configured `scripts/start.sh` to launch the Forge client and Gradle/ForgeGradle to build the mod and copy its JAR to `dist/`. Documented limitations from variable DEM resolution, incomplete OSM tagging, external API availability and regenerating areas at the same in-game coordinates.

