Go to file
BoppreH 1e83a5adbb Add Scratch extension 2015-04-09 16:38:47 -03:00
bot Make movements relative to direction 2015-02-11 17:25:40 -02:00
.gitignore Add vim swap files to gitignore 2015-02-05 12:19:57 -02:00
README.md Update README.md 2015-03-13 16:10:49 -03:00
client.py Update client docs and comments 2015-03-13 16:30:15 -03:00
controller.py Change webserver API for Scratch compatibility 2015-04-09 16:27:47 -03:00
scratch_extension.s2e Add Scratch extension 2015-04-09 16:38:47 -03:00

README.md

minetesting

This project consists of a Python client for talking with a Minetest server, and a Minetest Mod that creates a chat-controlled robot. Those two parts are independent, but play well with each other.

The Python client (client.py) speaks the Minetest protocol and logs in as a regular user. It's not feature complete, but the basics are stable and it's easy to implement the missing commands. You can use it as a library and import MinetestClient, or run as python3 client.py *hostname* *username* *password*, where each message typed in the console is sent as a chat message to the server.

The Minetest mod (bot/) allows users to create and controls robots by speaking commands in the chat. These robots can move through the map, placing and removing blocks. To install it just copy the entire bot/ folder to .minetest/mods and activate in the world configuration.

Because the robots answer to regular chat commands, the Python client is able to login and say commands to the robot, giving a remote interface to control it.

controller.py is used as the glue between Scratch and the Minetest bot, creating an HTTP server and forwarding commands.