Skip to main content

Installation

Dependenceis

  • Pyhton: v3.9
  • Node: v18

Prepare JDK 21>=

Download and Run Fabric Minecraft Server Launcher on local

chmod 751 scripts/*run*.sh

# If a server isn't installed
scripts/download_run_server.sh

# IF a server is already install
scripts/run_server.sh

Set world

  • seed: 637184628307790
  • coordinate: 63 94 168 Set the x y z position on the server command
/setworldspawn 63 94 168

server.properties: These settings will automatically set via download_run_server.sh.

difficulty=peaceful
gamemode=survival
online-mode=false
enable-rcon=true # Only needed if you wish to use RCON features
rcon.password=hunter2
rcon.port=25575
spawn-protection=0 # This is important, otherwise the bot can't do anything near the spawn

Prepare minecraft mods for client

Make python environment

conda create -n mw python=3.9 -y
conda activate mw
make install

Install mineflayer and additional minecraft interface library

npm install mineflayer

cd voyager/env/mineflayer
npm install -g npx
npm install
cd mineflayer-collectblock
npm install
npx tsc
cd ..
npm install

Set environment variables

Make .env file and set environment variables like .env.sample.