A wrapper for Microsoft's Malmo Platform capable of creating automated agent action sequences in Minecraft.


Keywords
malmoext
License
MIT
Install
pip install malmoext==0.36.0.0.2

Documentation

MalmoExt

Pipeline Status License: MIT

The purpose of this project is to provide a wrapper for Microsoft's Malmo Platform, intended to serve the following purposes:

  • Allow for easier installation of Malmo
  • Provide a programming interface that streamlines the creation and execution of scenarios.
  • Provide a set of higher-order agent actions for developers to choose from.

malmoext


🔌 Getting Started

Ensure you have the necessary dependencies installed on your machine. The version of Python you need depends on your operating system given Malmo platform requirements.

Link Version
Java Development Kit
    8
Python
  • 3.5.x for Linux
  • 3.6.x for Windows
  • 3.7.x for MacOS

Install the package:

pip install malmoext

💻 Starting Malmo Minecraft

Malmo Minecraft must be started prior to running a scenario. At least one instance is required for each agent present in your scenario(s).

To spawn one or more instances of Malmo Minecraft:

python -m malmoext --ports 10000 10001 ...

Once running, these Malmo Minecraft servers can be reused across multiple scenarios.


🌍 Running a Scenario

Once one or more instances of Malmo Minecraft is running, you can execute one of your scenarios by running its script:

python myScenario.py

For examples on how to build scenarios, check out the examples folder.


⚙️ Environment Variables

The following environment variables can optionally be set:

Name Default Description
MALMO_INSTALL_DIR (the current working directory) The directory that the Malmo Platform should be installed to when starting Malmo Minecraft for the first time. It is recommended that users set this to a constant value in order to avoid having Malmo installed to multiple locations.

📃 Additional Documentation