https://github.com/niels-ntg/gdmc2021mgai
Our submission for the Settlement Generation Challenge 2021 (https://gendesignmc.wikidot.com/wiki:settlement-generation-competition).
https://github.com/niels-ntg/gdmc2021mgai
architecture barcelona generative-art minecraft pcg procedural-generation
Last synced: 2 months ago
JSON representation
Our submission for the Settlement Generation Challenge 2021 (https://gendesignmc.wikidot.com/wiki:settlement-generation-competition).
- Host: GitHub
- URL: https://github.com/niels-ntg/gdmc2021mgai
- Owner: Niels-NTG
- License: mit
- Created: 2021-04-23T11:33:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-02T13:18:38.000Z (almost 4 years ago)
- Last Synced: 2025-01-27T14:50:35.706Z (4 months ago)
- Topics: architecture, barcelona, generative-art, minecraft, pcg, procedural-generation
- Language: Python
- Homepage:
- Size: 2.39 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This code creates a procedurally generated city based on Eixample, Barcelona.
The program is written to work for Python 3.6 or newer. The required modules are listed in requirements.txt
This script works combined with the [Minecraft HTTP Interface Mod](https://github.com/nilsgawlik/gdmc_http_interface).
Follow the installation instructions in the above github file to install the mod and the Forge Mod launcher which are required to run our code.After a succesful installation the city can be spawned by running the main.py file, no arguments required. By default it places structures at origin 0,0,0 within a 128 by 128 horizontal space. This can be changed by setting the current buildarea with the `/setbuiltarea fromX fromY fromZ toX toY toZ` command in Minecraft.
In `main.py`, the variable `USE_THREADING` can be set to `True`. This will enable multi-threading, which somewhat speeds up the generation process. Due keep in mind that in very large building areas (eg. larger than ~200x200) this may slow down the process instead of speeding it up, and can even crash the Forge Minecraft server due to it being overwhelmed by requests.