Skip to content

fohria/maia

Repository files navigation

This project was part of my Master thesis at Lund University Cognitive Science.

The thesis paper itself can be found here

Maia install instructions

You need to install the following applications:

You also need these addons for Python:

With Python installed, install the following packages with PIP:

  • numpy (pip install numpy)
  • pillow (pip install pillow)
  • websockets (pip install websocket-client)
  • dill (pip install dill)

And, finally, the CanaryMod server (https://canarymod.net/releases/) with RaspberryJuice plugin (https://github.com/martinohanlon/CanaryRaspberryJuice). A prepared server with most settings done can be found here: minecraft-server.zip

Further instructions

  1. If Minecraft was not already installed on your computer, start it up and create a new single player game and then exit. This will create the option file.
  2. Edit options file, located in %appdata%/.minecraft/options.txt and set pauseOnLostFocus to false
  3. Run start.bat in minecraft-server folder, it should generate world and inform that raspberryjuice plugin is enabled
  4. Run server.js file in maia/api folder
  5. Run Minecraft, select multiplayer and connect to localhost
  6. In the Minecraft video settings, set particles to minimum
  7. Go to the console window running the Minecraft server and enter the following commands:
  • /give playername iron_sword (exchange playername with your name)
  • /time set day
  • /gamerule doDaylightCycle false
  • /weather clear 1000000
  • /gamerule doTileDrops false
  1. Exit Minecraft and shut down the server with the 'stop' command in the server console
  2. Open NBT Explorer, navigate to the worlds/players/UUID.dat file and open that
  3. Set 'invulnerability' to 1

The invulnerability setting is a workaround for an issue where player sometimes fell to its death, despite walking around on flat ground

If you downloaded CanaryMod and CanaryRaspberryJuice plugin on your own, these commands may also be useful to enter in the server console:

  • /effect playername 8 1000000 255 false
  • /op playername (or blocks will respawn instantly)

You may also want to edit the world config file and set these values: enable-experience=false enable-health=false spawn-villagers=false spawn-golems=false spawn-animals=true spawn-monsters=false difficulty=0

About

MAIA: Minecraft Artificial Intelligence Agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published