Simple python script to convert a cubiomes csv export to BlueMap markers to generate POIs for structures like strongholds, mansions, monuments, villages or pyramids.
In order to get the markers on your map, you need to export the pois using cubiomes-viewer, run the python script, copy the markers to your BlueMap config and copy the icon images. To achieve this, follow the steps below. The python script does not need any third-party libraries.
- Use cubiomes-viewer to find all structures for your world seed, for reference see the screenshot and instructions below.
- Export all POIs as csv and save the file as "cubiomes-export.csv" in the directory you saved the script in
- Run the script using any halfway modern python version
python3 convert_markers.py
orpython convert_markers.py
on Windows. - Open the generated
markers.json
with a text editor and copy all of its content - Open the
config/maps/overworld.conf
file and scroll to the bottom - Replace the empty brackets (
{}
) with the copied text - Run
java -jar BlueMap-<version>.jar -r
to update your map and add the markers - Download the cubiomes-viewer github repository and copy the pngs from
rc/icons/
to your BlueMapweb/assets/
folder.
By default, the script generates markers for the following structures:
- stronghold
- mansion
- swamp_hut
- monument
- ancient_city
- desert_well
- jungle_pyramid
- igloo
- pillager_outpost
- desert_pyramid
- village
- trail_ruins
Adding or removing certain structures is as easy as removing or adding lines to the top of the python script. Be warned though, adding too many markers will significantly decrease the webui's user experience.
- Enter your world seed
- Click the Structures tab
- Define your map size to generate structures for, e.g. the region you pre-gen'd chunks for
- Hit the analyze button (which is surprisingly quick)
- Export... to the directory you put the script in and name it "cubiomes-export.csv"