This is the start of a fork of MinecraftDawn's fork of zhuowei's RaspberryJuice plugin - updated to be compatible with post 1.12 Minecraft My goal is to get this working with @sprouviere's mcse update of @martinohanlon's mcpi which I've forked into mcpi2. I want to port @martinohanlon's minecraftstuff as well
A Minecraft Bukkit plugin which connect to python program
world.getBlock(x:int, y:int, z:int) -> str
world.getBlocks(x1:int, y1:int, z1:int, x2:int, y2:int, z2:int) -> list
world.setBlock(x:int, y:int, z:int, block:str) -> None:
world.setBlocks(x1:int, y1:int, z1:int, x2:int, y2:int, z2:int, block) -> None:
world.getHeight(x:int, z:int) -> int:
world.getPlayerEntityIds() -> list:
world.postToChat(*msg) -> None: -Print message to minecraft chat
world.setSign(x:int, y:int, z:int, signType:str, signDir:int, line1:str="", line2:str="", line3:str="", line4:str="") -> None:
world.setWallSign(x:int, y:int, z:int, signType:str, signDir:int, line1="",line2="",line3="",line4="") -> None:
world.spawnEntity(x:int, y:int, z:int, entityID:int) -> int:
world.createExplosion(x:int, y:int, z:int, power:int=4) -> None:
world.getPlayerEntityId(name:str) -> int:
world.create(address = "localhost", port = 4711):
player.getPos() -> Vec3:
player.setPos(x:float, y:float, z:float) -> None:
player.getTilePos() -> Vec3:
player.setTilePos(x:int, y:int, z:int) -> None: -Set player's integer position
player.getDirection() -> Vec3:
player.setDirection(x:float, y:float, z:float) -> None:
player.getRotation() -> float:
player.setRotation(yaw:float) -> None:
player.getPitch() -> float:
player.setPitch(pitch) -> None:
player.getFoodLevel() -> int:
player.setFoodLevel(foodLevel:int) -> None:
player.getHealth() -> float:
player.setHealth(health:float) -> None:
Set player's health
player.sendTitle(title:str, subTitle:str="", fadeIn:int=10, stay:int=70, fadeOut:int=20) -> None:
Send a title to player
entity.getPos(ID) -> Vec3:
entity.setPos(ID, x:float, y:float, z:float) -> None:
entity.getTilePos(ID) -> Vec3:
entity.setTilePos(ID, x:int, y:int, z:int) -> None:
entity.getDirection(ID) -> Vec3:
entity.setDirection(ID, x:float, y:float, z:float) -> None:
entity.getRotation(ID) -> float:
entity.setRotation(ID, yaw) -> float:
entity.getPitch(ID) -> float:
entity.setPitch(ID, pitch) -> None:
entity.getName(ID):
Modify config.yml:
To build RaspberryJuice2, download and install Maven, clone the repository, run `mvn package':
git clone https://github.com/lasteamlab/mc-python-mod
cd mc-python-mod
mvn package