Skip to main content

[for python education] Python library for the Minecraft Pi edition and RaspberryJuice API Modified version

Project description

Minecraft: Pi edition API Python Library

This project mcpi-e is a fork from mcpi project [https://github.com/martinohanlon/mcpi] mcpi-e Python library for communicating with Minecraft: Pi edition and RaspberryJuice.

Visit github.com/stoneskin/mcpi-e for more information.

Installation

Windows

pip3 install mcpi-e

Note: you could use py or python -m to speify the python in your system

py -m pip install mcpi-e

Linux / MacOS

sudo pip3 install mcpi-e

Usage

from mcpi_e.minecraft import Minecraft
...
mc = Minecraft.create(servername,4711,playerName)

mcpi-e Change log

1. Enhancement for using mcpi in server with multiple users

  • User could pass player username as 3rd parameter when create a new Minecraft api instense.

    ex: mc=Minecraft.create(address,port,name)

  • Change mc.Player to use entity so it will not pick the first user in the server.

2. Limit the Usage of mcpi

  • Add the _send command 0.05s interval to slow down the speed
  • limit the useage of setBlocks
  • todo: limit the script usage range (x,y,z)

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

mcpi_e-0.3.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

mcpi_e-0.3.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file mcpi_e-0.3.0.tar.gz.

File metadata

  • Download URL: mcpi_e-0.3.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for mcpi_e-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9dd0c82271ac3838d7de4ffbd3b3822dcf85fdc5eefd8dfe225f64ba5833c252
MD5 795b725f0923429c763d68de7a8b6ec1
BLAKE2b-256 c159fa4a460edbf7fe047a7b2cf057981d6a9dff33bdee3264d6912c1fbfe4f9

See more details on using hashes here.

File details

Details for the file mcpi_e-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mcpi_e-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for mcpi_e-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b79a0e948e6065e0831f9bdf43111be9be68317b4c02808ad67853ccae1277a9
MD5 039adbfbdca0ac0c59194cfe31f059a7
BLAKE2b-256 9c1e414720d5a0bc798b80b4660275ad69e1f06cb17d7603d474bfa921ae6298

See more details on using hashes here.

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