KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
minecraft-py
★ 8
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
bebop_vel_ctrl
:
Velocity controller for Parrot Bebop Drone (ROS package)
FastFit
:
A fast vertex fitter based on the eigen library and the kalman filter
PagerSlidingTabStrip
:
带箭头指示选中位置,底部箭头跟随滑动
encode
:
C++ cross-platform MP3 encoder utilising Lame library
go-upstream
:
GO代理转发服务中间件
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
minecraft-py
?
Download (.md)
# minecraft_py **This project is outdated, please use [MalmoEnv](https://github.com/microsoft/malmo/tree/master/MalmoEnv) instead.** Python wrapper for [Malmö](https://github.com/Microsoft/malmo), a platform for Artificial Intelligence experimentation and research built on top of Minecraft. ## Installation 1. Install the dependencies for your OS: [Windows](https://github.com/Microsoft/malmo/blob/master/doc/install_windows.md), [Linux](https://github.com/Microsoft/malmo/blob/master/doc/install_linux.md), [MacOSX](https://github.com/Microsoft/malmo/blob/master/doc/install_macosx.md). You can skip Torch, Mono and ALE parts. 2. Install the package itself: ``` git clone https://github.com/tambetm/minecraft-py.git cd minecraft-py pip install -e . ``` Installation automatically downloads the appropriate Malmo version and unzips it to package directory. 3. To precompile Minecraft classes so that subsequent starts will be faster run following snippet: ``` import logging logging.basicConfig(level=logging.DEBUG) import minecraft_py proc, port = minecraft_py.start() minecraft_py.stop(proc) ``` Basically Minecraft downloads and compiles everything on first start, this snippet just starts it in debug mode, so you can see if it gets stuck. You can use similar snippet later to start and stop the Minecraft process. ## Usage `minecraft_py` module exposes following functions: * `proc, port = start(port=None)` - start a new Minecraft process. If port argument is given, it determines the port that Malmo is going to listen, otherwise the first free port starting from 10000 is used. Returns process object and port. * `stop(proc)` - stops Minecraft started previously with `start()`. Sends `SIGTERM` to entire process group. In addition it adds `MalmoPython` module to `PYTHONPATH` that can be used to communicate with Minecraft process. `MalmoPython` API follows the [Malmo C++ API](http://microsoft.github.io/malmo/0.17.0/Documentation/annotated.html). You can also check the [tutorial](http://microsoft.github.io/malmo/0.17.0/Python_Examples/Tutorial.pdf) and [examples](https://github.com/Microsoft/malmo/tree/master/Malmo/samples/Python_examples). ## Known issues * Python 3 is not supported as Microsoft doesn't provide precompiled binaries for Python 3. If you happen to be using Ubuntu, you can try installing precompiled [Ubuntu 14.04](https://github.com/tambetm/minecraft-py34-ubuntu1404) or [Ubuntu 16.04](https://github.com/tambetm/minecraft-py35-ubuntu1604) version.