Skip to main content

High level Python framework for building Minecraft clients and bots

Project description

Build Status Docs Status Coverage Status

SpockBot currently supports Minecraft 1.8.8

Minecraft bot framework written in Python, currently under heavy development.

Client could loosely be called “event-driven”. By default plugins register handler functions to handle events that may or may not be emitted by other plugins. Everything is a plugin in SpockBot, including the event loop/framework itself, so you can feel free to rip out the entire back end and replace it with your framework or paradigm of choice. As long as you provide the same simple APIs, other plugins won’t know the difference.

We’re only just getting started with documentation so if you’re uncomfortable reading source code this might not be the framework for you. Or, better yet, hop on IRC and help us write some docs!

SpockBot officially supports Python 3.x and Python 2.7.x on *nix operating systems and requires cryptography. It also runs on Windows and under PyPy 2.6.x but that’s not regularly tested and could be broken at any given moment. If you support one of those use cases and SpockBot breaks for you, submit an issue with a stack trace and we’ll try to fix it.


  • World Interaction (finding, placing, breaking)

  • Vanilla Physics

  • Pathfinding

  • Inventory (player, chests, etc)

  • Crafting

  • Entity Tracking



python3 install

Note: The cryptography library has some extra dependencies to install, you can find detailed instructions here.


Current docs live here


Refer to the example bot for instructions on how to write a bot and a plugin that provides some common functionality.

Also see Extra examples and Bat bot for additional examples.

Projects Using SpockBot


#spockbot on Freenode
gamingrobot or nickelpro in #mcdevs on Freenode


Instructions for contributing to SpockBot can be found in CONTRIBUTING


Inspired by remyroy’s COPS, a Minecraft client in Python.

COPS was a service that tracked players on a minecraft server called Civcraft. It looked like this

Protocol implementation based on barneymc.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spockbot-0.1.5.tar.gz (73.5 kB view hashes)

Uploaded source

Built Distributions

spockbot-0.1.5-py3.4.egg (200.9 kB view hashes)

Uploaded 3 4

spockbot-0.1.5-py2.py3-none-any.whl (81.8 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page