UPDATE: These instructions are likely out-dated, and Facebook has made the instructions on their GitHub easier as well, please follow those before attempting mine.
Facebook Research set out to create a virtual assistant bot in Minecraft and since I made this video on Reddit people have asked how to set it up, and because Facebook’s instructions on their GitHub aren’t the best I decided to write my own.
- Make sure to have some sort of a virtual Linux distro, I’m using WSL Ubuntu from the windows store.
- You can follow this guide from Microsoft or this guide from Ubuntu for setting up WSL Ubuntu
- Clone the GitHub repo so type “
git clone --recursive https://github.com/facebookresearch/craftassist.git
” into Ubuntu - Update Ubuntu’s packages, “
sudo apt-get update && sudo apt-get upgrade
“ - Install all the right dependencies to compile, “
sudo apt-get install cmake python3 python3-pip libgoogle-glog-dev libboost-all-dev libeigen3-dev gcc screen
“ - Install all the right dependencies for python to run the code, “
pip3 install numpy sentry_sdk torch scipy word2number snowballstemmer python-Levenshtein ipdb spacy
“ - Change the current directory to craftassist, “
cd craftassist
“ - Compile everything, “
make
“ - Start the server “
screen python3 ./python/cuberite_process.py
” then detach from the screen session by pressing ‘Ctrl + A‘ and ‘Ctrl + D‘- You can list the screen sessions by typing “
screen -list
“ - You can resume a screen session by typing “
screen -r [session number]
“
- You can list the screen sessions by typing “
- Change the version of Minecraft to 1.12.x by following this guide
- Connect to your server by clicking in the Minecraft client
Multiplayer > Direct Connect > localhost:25565
- Start the assistant “
screen python3 ./python/craftassist/craftassist_agent.py
”- The assistant should join the game and you can ask it to do random things.
Thanks for reading!
Steve.