Giter Site home page Giter Site logo

pycraft's Introduction

pyCraft

Minecraft Python Client!

When running start.py, make sure you duck.

#Requirements

  • pyCrypto 2.5 (Also in requirements.txt)

##PyCrypto on Windows Systems (32 bit) If you use Python 2.7 with win32 you're in luck, theres an installer right here for pyCrypto 2.5 otherwise you're gonna need to compile it, followed by some fancy instructions on how to install pyCrypto over here


On linux you'll need the build-essential and python-dev packages after which running pip install -r requirements.txt, should pull everything in.

Eventually we'll put some run instructions here but start.py --help should cover everything for now

#Writing Plugins for pyCraft pyCraft has some basic plugin support, as a developer making plugins is a simple process. In the plugins folder, simply create a .py file with your plugin's name as the file name. In your plugin.py file define a single class with the exact same spellings as your plugin file name. Now within your plugin class you'll be notified using certain methods when things happen in the minecraft world. See the PacketDumper plugin as an example. Currently these methods are used:

onEnable(self, parser, pluginloader) This fires when your plugin is loaded and passes the option parser as an argument allowing you to add custom command line options

onDisable(self) This fires when pyCraft is exited cleanly, use it for cleaning up

optionsParsed(self, parsedOptions) This fires when command line options have been parsed allowing you to get information from any parameters you may have added in onEnable

packetReceive(self, packetID, receivedPacket) This fires when pyCraft's networking core receives a packet

pycraft's People

Contributors

ammaraskar avatar kierdavis avatar resba avatar roblabla avatar seirll avatar x56 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.