brooksc / mcpipy Goto Github PK
View Code? Open in Web Editor NEWPython scripts for controlling Minecraft Pi Edition on Raspberry Pi, as highlighted at mcpipy.com
Python scripts for controlling Minecraft Pi Edition on Raspberry Pi, as highlighted at mcpipy.com
Thank you for the nice python API!
I noticed that Minecraft.getBlocks() is broken--as the connection returns a comma-separated-list of block types, you cannot simply convert it by int()
. The following version works (around line 120 in minecraft.py):
def getBlocks(self, *args):
"""Get a cuboid of blocks (x0,y0,z0,x1,y1,z1) => [id:int]"""
b = self.conn.sendReceive(b"world.getBlocks", intFloor(args))
# server returns a string like '1,1,1,16,16,24,24,24,12,12,12'
ib = [int(x) for x in b.split(",")]
return ib
I can create a PR instead if you prefer!
Cheers,
Ott
Hi,
I've been thinking about using minecraft as an environment to develop reinforcement learning. I want to know if it's possible to get more specific information. Some examples are:
-Life status or hungry status
-Inventory components
-Exact point that the player is looking.
-Day/night ( or time of the day)
I had been looking for information about how to receive these information but i couldn't found anything. It's posible to obtain these data in the same way we receive the data with getBlock?
What are the odds of getting an update to support Minecraft 1.13 or 1.14?
Brooksc:
Once I from mcpi.minecraft import Minecraft, the feedback will be ConnectionRefusedError: [WinError 10061], what can I do? Waiting for your reply, thank you!
How d o I add an item to the game? How do I define the texture for the item? Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.