The goal of this project is to build an intelligent, collaborative assistant bot in the game of Minecraft1 that can perform a wide variety of tasks specified by human players. Its primary purpose is to be a tool for artifical intelligence researchers interested in grounded dialogue and interactive learning. This project is in active development.
A detailed outline and documentation is available in this paper
This release is motivated by a long-term research agenda described here.
Do this section before cloning the repo.
Make sure the following packages have already been installed before moving on:
- CMake
- Python3
- Glog
- Boost
- Eigen
- gcc version: 7.4.0 on ubuntu 18.04
- For Mac users:
- LLVM version < 10 to successfully use clang. Working with multiple versions of Xcode.
To build a conda environment that supports this release:
# Create a new env preloaded with the conda install dependencies
conda create -n minecraft_env python==3.7.4 pip numpy scikit-learn==0.19.1 pytorch torchvision -c conda-forge -c pytorch
conda activate minecraft_env
# Install all of the rest of the dependencies with pip
while read requirement; do echo $requirement; pip install $requirement; done < requirements.txt
Then activate this environment whenever you want to run the agent.
# OSX
brew install git-lfs
git lfs install
# On Ubuntu
sudo add-apt-repository ppa:git-core/ppa
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
Use this command, or your submodules will not be pulled, and your clone will take a very long time:
git lfs clone --recursive [email protected]:facebookresearch/craftassist.git
Now cd minecraft
and copy the large data file and untar it to the correct directories:
curl https://craftassist.s3-us-west-2.amazonaws.com/pubr/models_data_v0.0.tar.gz -o models_data_v0.0.tar.gz
tar -xzvf models_data_v0.0.tar.gz -C python/craftassist/models/ --strip-components 1
To build Cuberite and the C++ Minecraft client:
make
Run the following command
python ./python/cuberite_process.py
to start an instance of cuberite instance listening on localhost:25565
Buy and download the official Minecraft client.
You can inspect the world and view the Minecraft agent's actions by logging into the running Cuberite instance from the game client.
To connect the client to the running Cuberite instance, click in the Minecraft client:
Multiplayer > Direct Connect > localhost:25565
Minecraft has recently release v1.13, and our Cuberite system supports at most v1.12
Please follow these instructions to add a 1.12.x profile and use it to connect.
Assuming you have set up the Cuberite server and the client, in a separate tab, run:
python ./python/craftassist/craftassist_agent.py
You should see a new bot player join the game.
Chat with the bot by pressing t
to open the dialogue box, and Enter
to submit.
Use the w
, a
, s
, and d
keys to navigate, left and right mouse clicks to destroy and place blocks, and e
to open your inventory and select blocks to place.
./python/craftassist/test.sh
Download links to the datasets described in section 6 of Technical Whitepaper are provided here:
- The house dataset: https://craftassist.s3-us-west-2.amazonaws.com/pubr/house_data.tar.gz
- The segmentation dataset: https://craftassist.s3-us-west-2.amazonaws.com/pubr/instance_segmentation_data.tar.gz
- The dialogue dataset: https://craftassist.s3-us-west-2.amazonaws.com/pubr/dialogue_data.tar.gz
In the root of each tarball is a README that details the file structure contained within.
If you would like to cite this repository in your research, please cite the CraftAssist paper.
@misc{gray2019craftassist,
title={CraftAssist: A Framework for Dialogue-enabled Interactive Agents},
author={Jonathan Gray and Kavya Srinet and Yacine Jernite and Haonan Yu and Zhuoyuan Chen and Demi Guo and Siddharth Goyal and C. Lawrence Zitnick and Arthur Szlam},
year={2019},
eprint={1907.08584},
archivePrefix={arXiv},
primaryClass={cs.AI}
}
CraftAssist is MIT licensed.
1 Minecraft features: © Mojang Synergies AB included courtesy of Mojang AB