Minecraft 1.16.5 support

CraftGround can run Minecraft 1.16.5, the version MineRL 1.0 uses (VPT, BASALT 2022), so agents and results can be compared against MineRL on the same game version. MineRL 0.4.x and MineDojo use 1.11.2, which CraftGround does not support.

Install

python -m pip install 'craftground[mc1165]'

From a checkout:

python -m pip install ./minecraft/mc1165 '.[mc1165]'
import craftground

env = craftground.make(mc_version="1.16.5")

Differences from the 1.21 runtime

  • World creation. Worlds are created with MinecraftClient.createWorld instead of the 1.21 GUI, so seed, world_type, world_type_args (superflat generator settings), gamemode, difficulty, generate_structures and bonus_chest are applied. WorldType.SINGLE_BIOME is not available and falls back to the default world type.
  • Tick speed. 1.16.5 has no /tick command. The server’s 50 ms tick wait is removed by a mixin, so each step is paced only by the client/server tick synchronization.
  • Options. simulation_distance is ignored (1.16.5 has none).
  • Not ported. The experimental realistic-human entity.
  • Rendering. 1.16.5 renders through a legacy OpenGL 2.1 context. The shared capture code compiles GLSL 1.20 shaders when the context cannot compile GLSL 1.30+. RAW, PNG and depth capture have been tested on macOS and on Linux (NVIDIA, headless Xvfb with EGL). ZEROCOPY_TORCH has been tested on Apple Silicon (Metal) and on Linux with CUDA.

Smoke test

CRAFTGROUND_TEST_MC1165=1 python -m pytest tests/python/native_integration/mc1165_smoke.py
CRAFTGROUND_TEST_MC1165=1 CRAFTGROUND_TEST_METAL=1 python -m pytest tests/python/native_integration/mc1165_smoke.py

This site uses Just the Docs, a documentation theme for Jekyll.