Skip to main content

The Generative Design Python Client is a Python-based interface for the Minecraft HTTP Interface mod.\nIt was created for use in the Generative Design in Minecraft Competition (GDMC).

Project description

GDPC - Generative Design Python Client

GDPC (Generative Design Python Client) is a Python framework for use in conjunction with the Minecraft GDMC-HTTP Mod. It is designed for the Generative Design in Minecraft Competition (GDMC).

You need to be playing in a Minecraft world with the mod installed to use the framework.

The latest version of GDPC is compatible with GDMC-HTTP versions >=1.0.0, <2.0.0.

What's the difference between GDMC, GDMC-HTTP and GDPC?

These abbreviations are all very similar, but stand for different things.

GDMC is short for the Generative Design in Minecraft Competition, a yearly competition for generative AI systems in Minecraft. The challenge is to write an algorithm that creates a settlement while adapting to the pre-existing terrain. The competition also has a Discord server.

GDMC-HTTP is a Minecraft Forge mod that provides a HTTP interface to edit the world. It allows you to modify the world live, while you're playing in it. This makes it possible to iterate quickly on generator algorithms. The mod is an official submission method for the competition.

GDPC (notice the "P") is a Python framework for interacting with the GDMC-HTTP interface. It provides many high-level tools that make working with the interface much simpler.

Installation

To install the latest stable release, type one of the following commands:

  • On Linux/MacOS: python3 -m pip install gdpc
  • On Windows: py -m pip install gdpc

For the latest sexy-but-might-break-something release, type the following instead:

  • On Linux/MacOS: python3 -m pip install --pre gdpc
  • On Windows: py -m pip install --pre gdpc

To update your package, type the following:

  • On Linux/MacOS: python3 -m pip install --upgrade gdpc
  • On Windows: py -m pip install --upgrade gdpc

If you would like to install the latest cutting-edge development version directly from GitHub, replace gdpc with git+https://github.com/avdstaaij/gdpc

For more information on installing from GitHub (such as getting old versions) see the pip documentation.

If you are having trouble with dependencies, download requirements.txt and try running python3 -m pip install -r requirements.txt (or py -m pip pip install -r requirements.txt if you are using Windows). You should not use requirements-dev.txt!

Tutorials and examples

There are various tutorial scripts that will help to get you started.

Some practical examples are also available, though they're slightly older and may not reflect the latest features:

  • visualize_map.py: Displays a map of the Minecraft world using OpenCV.
  • emerald_city.py: Demonstrates basic GDPC functionality by building a simple model of the Emerald City.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdpc-6.0.0.dev1.tar.gz (58.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdpc-6.0.0.dev1-py3-none-any.whl (60.8 kB view details)

Uploaded Python 3

File details

Details for the file gdpc-6.0.0.dev1.tar.gz.

File metadata

  • Download URL: gdpc-6.0.0.dev1.tar.gz
  • Upload date:
  • Size: 58.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for gdpc-6.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 4232bab549d5bbf56f9ff429c2867c35d6f83d88a29050d8d9206c7cd1111a51
MD5 8279c3a70e5395e0f0d8471f144b6d2c
BLAKE2b-256 0c1cb13107d7ea051756ed9889b962d02eca08d644625777b5dcc1d116939890

See more details on using hashes here.

File details

Details for the file gdpc-6.0.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: gdpc-6.0.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 60.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for gdpc-6.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 e73142613d419f47fe9cd82c7bc72ee4428d9432ca92a0778de4072042c55b5f
MD5 cf7690063f17761ba5ba904e79f54326
BLAKE2b-256 64854f4a737bab6058e44c7052a11ca8fd02dbb1100141a527579b9e7170ea17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page