Skip to main content

Controlling minecraft with python

Project description

CraftPy

A package that allows to use functions to control minecraft built on pyautogui.

To make an instance of the player class, use:

CraftPy.Player({version_number}, {Cheats (True if enabled)})

Player methods:

  • def init(self, Float: version, Boolean: cheats)

  • def walk(self, Integer: seconds)

  • def hit(self)

  • def interact(self)

  • def look(self, String: direction, Integer: pixels)

  • def jump(self)

  • def sneak(self, Boolean: toggle)

  • def sprint(self, Boolean: toggle)

  • def crit(self)

  • def switchitem(self, Integer: slot)

  • def shield(self, Boolean: toggle)

  • def bow(self, Integer: load)

  • def mine(self, Boolean: toggle)

  • def throw(self)

  • def chat(self, String: message)

  • def inventory(self)

  • def offhand(self)

  • def perspective(self)

  • def reloadchunks(self)

  • def gamemode(self)

  • def chunkborders(self)

  • def togglehitboxes(self)

  • def coordinates(self)

  • def clearchat(self)

  • def renderdistance(self, Boolean: increase)

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

CraftPy-1.1.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

CraftPy-1.1.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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