Code Monkey home page Code Monkey logo

mcpipy's People

Contributors

brooksc avatar claudiordgz avatar dj-foxxy avatar gelicia avatar jjinux avatar phillipcutter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcpipy's Issues

Minecraft.getBlocks() does not work

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

Adding functions to get info from minecraft player inventory, the state of live, etc?

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)

  • Location of the enemies/non players/players
    -event (if you click a mouse button the block is broken os not, etc)
    ...

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?

ConnectionRefusedError

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.