MineRL is a research project started at Carnegie Mellon University aimed at developing various aspects of AI within minecraft.
To accesss MineRL dataset and Gym environments, you will need to install the main python package minerl.
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
pip3 install --upgrade minerl
Note: You may need the user flag: pip3 install --upgrade minerl --user to install properly.
In order to run minerl environments without a head i.e. without any external display monitor you need to installa software renderer.
sudo apt install xvfb
You can use the environment.yml file to install the conda environment on your system, which will install all of the Python libraries required for the sample codes in this repository.
Run the below command to copy the environment.
conda env create -f environment.yml
Before running above command make sure conda is installed on the system. If not, you can follow the instructions here to install conda.
Run the sample code to test the installation.
xvfb-run python3 random_agent.py
To create your first agent, you can follow the instructions here
On the server, go to path /mnt/ShareFolder/MineRL and activate the environment using below command:
conda activate minerl
You can now use the minerl package in your code.
MineRL sample code and datasets can be found in the directories listed below:
- Sample codes: /mnt/ShareFolder/MineRL/HowToUseMineRL
- MineRL dataset: /mnt/ShareFolder/MineRL/data
MineRL official documentation:
https://minerl.readthedocs.io/en/latest/