Skip to main content

CraftGround - Reinforcement Learning Environment for Minecraft

Wheels (All)) Python package CMake Build Gradle Build

Static Badge Static Badge

CraftGround_Logo

Hits

CraftGround provides a lightweight and customizable environment for reinforcement learning experiments using Minecraft.

CraftGround supports Minecraft 1.21.0 (default), 26.2, and 26.3. The newer versions have separate Fabric runtimes. See Minecraft 26.3 installation and capture modes and Minecraft 26.2 & Vulkan Support.



Installation

Quick start (conda / mamba)

conda create -n my_experiment_env python=3.11
conda activate my_experiment_env
conda install conda-forge::openjdk=21 conda-forge::cmake conda-forge::glew-dev conda-forge::libpng conda-forge::libzlib conda-forge::libopengl conda-forge::libflite
pip install craftground

Quick start (Ubuntu based systems)

Refer to the provided Dockerfile for a complete setup.

sudo apt-get update
sudo apt-get install -y openjdk-21-jdk python3-pip git \
    libgl1-mesa-dev libegl1-mesa-dev libglew-dev \ 
    libglu1-mesa-dev xorg-dev libglfw3-dev xvfb
apt-get clean
pip3 install --upgrade pip
pip3 install cmake # You need latest cmake, not the one provided by apt-get
pip3 install craftground

Windows Setup

Resolve Windows Path Length Limitation

Note: you may need to enable long file path due to windows limitation. You can enable it by editing registry as mentioned here

In the latest versions of Windows, this limitation can be expanded to approximately 32,000 characters. Your administrator will need to activate the “Enable Win32 long paths” group policy, or set LongPathsEnabled to 1 in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.

The following command does the same as the above instruction:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f

Resolve Conda Installation Issues

Using conda is recommended for Windows users. You can install conda from here. Make sure to execute

powershell -ExecutionPolicy Bypass
conda init powershell

if you are using PowerShell, in the anaconda powershell prompt.

Setup Headless Environment (Linux)

Refer to Headless Environment Setup for setting up a headless environment.

Install development version

pip install git+https://github.com/yhs0602/CraftGround.git@dev

Run your first experiment

Example repositories

Example code

from craftground import craftground
from stable_baselines3 import A2C

# Initialize environment
env = craftground.make(port=8023, isWorldFlat=True, ...)

# Train model
model = A2C("MlpPolicy", env, verbose=1)
model.learn(total_timesteps=10000)
model.save("a2c_craftground")

Environment Specifications

For detailed specifications, refer to the following documents:

Technical Details

See Technical Details for detailed technical information.

License and Acknowledgements

This project is licensed under the LGPL v3.0 license. The project includes code from the following sources:

Devaju fonts

Gamma Utils

This project includes code licensed under the GNU Lesser General Public License v3.0:

Fabric-Carpet

This project includes code from the Fabric Carpet project, licensed under the MIT License:

Development / Customization

For detailed development and customization instructions, see Develop.

Star History

Star History Chart

Metadata

Release files for craftground 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for craftground 2.8.0
File Size Uploaded Provenance Actions
craftground-2.8.0.tar.gz 18.5 MB With provenance Details for craftground-2.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for craftground 2.8.0
File Actions
craftground-2.8.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for craftground-2.8.0-cp313-cp313-win_amd64.whl
craftground-2.8.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for craftground-2.8.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
craftground-2.8.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for craftground-2.8.0-cp312-cp312-win_amd64.whl
craftground-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for craftground-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
craftground-2.8.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for craftground-2.8.0-cp311-cp311-win_amd64.whl
craftground-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for craftground-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
craftground-2.8.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for craftground-2.8.0-cp311-cp311-macosx_11_0_arm64.whl
craftground-2.8.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for craftground-2.8.0-cp310-cp310-win_amd64.whl
craftground-2.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for craftground-2.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
craftground-2.8.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for craftground-2.8.0-cp310-cp310-macosx_11_0_arm64.whl
craftground-2.8.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for craftground-2.8.0-cp39-cp39-win_amd64.whl
craftground-2.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for craftground-2.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
craftground-2.8.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for craftground-2.8.0-cp39-cp39-macosx_11_0_arm64.whl

Total release size: 24.8 MB

Release files / craftground-2.8.0.tar.gz

Download URL craftground-2.8.0.tar.gz
Size 18.5 MB
Tags Source
SHA-256 checksum
How to use checksums
5491a6166ac47ffcb3a614ab02a05e7c4ca738f4fcc84c3e755ebe3103e7fe64
BLAKE2b-256 checksum
How to use checksums
58231d6fd97ccf2830eab60aa45ffc95de942770838de5c227300631bae61c1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp313-cp313-win_amd64.whl

Download URL craftground-2.8.0-cp313-cp313-win_amd64.whl
Size 408.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
7777186b582b5bde750155736fe3e7275a48c83f1ae983a21195f1e7d3823c3a
BLAKE2b-256 checksum
How to use checksums
005fe9c162f98a2246b51ac6d4bf6dd03dcccbca17107391bdb9518b35ceffa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL craftground-2.8.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 629.0 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7ad965b30a1a3cd590a259bdf106410972ef34b85556e21cfbd5277547c87b9b
BLAKE2b-256 checksum
How to use checksums
5456a5f48993eb31eafc9826975e0db0594cf433f5e7fae22f5042caa456956c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp312-cp312-win_amd64.whl

Download URL craftground-2.8.0-cp312-cp312-win_amd64.whl
Size 408.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
543307744785f12343f15ca5b1648c3e05ce67eb649a87dd8a5a805d86bcab32
BLAKE2b-256 checksum
How to use checksums
464a2dd0fe929848b563f8c46feaaa923b73b909a004fdd7725370da615bcc17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL craftground-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 629.0 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
13d5b1ad400151597840c0690a95874bd469185390a9881b554b8ea71a26e7fa
BLAKE2b-256 checksum
How to use checksums
af58698f470ab5902f3caf91a0a72196651c8bce35a752dab75e84a2cebb5098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp311-cp311-win_amd64.whl

Download URL craftground-2.8.0-cp311-cp311-win_amd64.whl
Size 407.5 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
dac3b2fbe91c6859dd01ffd4fe313e22da9594f2554780f7acea7135330a6c61
BLAKE2b-256 checksum
How to use checksums
e630e402057c5562ce2139c259a6db21a57fb3578e3629bc911c44e3ec63b90a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL craftground-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 630.0 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0a866585958790f7eb08a75635dbf193c848c98db64d479de9c182357bab0ddf
BLAKE2b-256 checksum
How to use checksums
6faf979cc428723f9ad259c3fec4f5ad72d329a1a279c6eaf101a98be4e0822b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL craftground-2.8.0-cp311-cp311-macosx_11_0_arm64.whl
Size 400.8 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d4d94dd422c3f26b6e2cda7ae3127d77b28809cf9326a21c0fa8553553f06578
BLAKE2b-256 checksum
How to use checksums
1ccb4c21eab3d1a1d40199fe90332acc6983ca4ffe21b000f6f4615f52e9a92d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp310-cp310-win_amd64.whl

Download URL craftground-2.8.0-cp310-cp310-win_amd64.whl
Size 406.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
21e39653dd64da57e22f4db30cdd6ca1a4034bc732bb0d6ecb8378a8fb48b508
BLAKE2b-256 checksum
How to use checksums
1de31032c0a4b36095ba45fe4cec50fdc4bfd604b6f537c2661dfb8dbae743a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL craftground-2.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 628.6 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
de94a1714316a1ae2731d2c581b749ff5b43153e1c6ffb95c7b1476e818e5598
BLAKE2b-256 checksum
How to use checksums
420435af5492e1927a2d14e9f4ad6b1abb52d2c601bc6b564160109ca43cdc35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL craftground-2.8.0-cp310-cp310-macosx_11_0_arm64.whl
Size 399.6 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0a06e5a27335dfcf29abaed202f8b87c61548343e533cd1ab66c5c0ef077ef18
BLAKE2b-256 checksum
How to use checksums
2556dc7313623f724850f58f68d88ff9cfaaf7dc0c14addba8b1dc07d5803715
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp39-cp39-win_amd64.whl

Download URL craftground-2.8.0-cp39-cp39-win_amd64.whl
Size 406.5 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
d8b1d5ad7d1e56110d0065e5efadc83c6be62da633306c5bdbddbaf77d9576c3
BLAKE2b-256 checksum
How to use checksums
a32389be1b028273b3bfbad4d0959152243c0a98aa19fc2b995d1c5b135d1799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL craftground-2.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 628.9 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
499efb20377d2acc75c07da68a7344cce2493e07d805e87e0541a14de0b83e8d
BLAKE2b-256 checksum
How to use checksums
35c351cfcc8428e9fdd81eb5ead67245565c74412ef65e0789d999df13396a79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / craftground-2.8.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL craftground-2.8.0-cp39-cp39-macosx_11_0_arm64.whl
Size 399.7 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1306a6dbd313cedc0e444ea6f0073de49b890ef8c6e5379fb93a960c816c0ee7
BLAKE2b-256 checksum
How to use checksums
2045ea5bcfbbe8ef27df0e877eb00bfc391ce5eb08186148856f9ed9d6caa745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for craftground 2.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 14 files in this release have been uploaded with provenance metadata.

Select from 14 files

Attestation for craftground-2.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.8.0 This release

14 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page