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 --upgrade mcpi-e
Note: you could use py or python -m to speify the python in your system
py -m pip install --upgrade mcpi-e
Linux / MacOS
sudo pip3 install --upgrade 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)
3. Some improvement
- Add BlockEnum, Logger, Settings
ex:
mc.settings.SHOW_DEBUG=True print("Is show debug msg",mc.settings.SHOW_DEBUG) print("Is show log msg",mc.settings.SHOW_Log) print("system speed:",mc.settings.SYS_SPEED) mc.settings.SYS_SPEED=mc.settings.Speed.FAST (x,y,z)=pos=mc.player.getTilePos() debug("this is debug msg") log(pos) warn("warn")
Metadata
Release files for mcpi-e 0.3.2006.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcpi_e-0.3.2006.2.tar.gz | 18.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcpi_e-0.3.2006.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.2 kB
Release files / mcpi_e-0.3.2006.2.tar.gz
| Download URL | mcpi_e-0.3.2006.2.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
093dd6f52526f4897e38d93100d70f9270a8a72763e1b9490aa603b141753569
|
|
BLAKE2b-256 checksum How to use checksums |
d9223eed73ab932ced5bb5b462da070b23b5b4919dd22d5cc28f0cde3fe9a206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / mcpi_e-0.3.2006.2-py3-none-any.whl
| Download URL | mcpi_e-0.3.2006.2-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a9e9a757485bacb61b410f828b873dd15793ab47478f8f25d36af7297864f17
|
|
BLAKE2b-256 checksum How to use checksums |
462d1e834ee62af0d62f51860bdb2fe81bb9b47938ef113ffac873f412deec80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Security for mcpi-e 0.3.2006.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.