[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 --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")
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
mcpi_e-0.3.2006.2.tar.gz
(18.5 kB
view hashes)
Built Distribution
Close
Hashes for mcpi_e-0.3.2006.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9e9a757485bacb61b410f828b873dd15793ab47478f8f25d36af7297864f17 |
|
MD5 | 13eb91feb61c402fcbbe006a12ac7d7d |
|
BLAKE2b-256 | 462d1e834ee62af0d62f51860bdb2fe81bb9b47938ef113ffac873f412deec80 |