[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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mcpi_e-0.2.1.tar.gz
.
File metadata
- Download URL: mcpi_e-0.2.1.tar.gz
- Upload date:
- Size: 11.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d7431ae0663badb453458b3d29f6d4bad10b456ce723d3b098f0e45378a92be |
|
MD5 | bff8a8c7c755a91c37124b3b0e852737 |
|
BLAKE2b-256 | 8a5b30ced40958521e78c05b3543027bb9dea8535ef27236eb9a97ff611f90f1 |
File details
Details for the file mcpi_e-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: mcpi_e-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40026ede234bff320846129932c077bac99939f4713f324df100c9b30d74932b |
|
MD5 | ac71dd988bebaf3bb991826bd3f843be |
|
BLAKE2b-256 | 7b4c870bd60d8f7d885634cccd74ff3e4c76474f4adc0ef14a320a9e114348d4 |