Code Monkey home page Code Monkey logo

minerl's Introduction

The MineRL Python Package

Documentation Status Downloads PyPI version "Open Issues" GitHub issues by-label Discord

Python package providing easy to use Gym environments and data access for training agents in Minecraft.

To get started please read the docs here!

MineRL Versions

MineRL consists of three unique versions, each with a slightly different sets of features. See full comparison here.

  • v1.0: [Code][Docs] This version you are looking at. Needed for the OpenAI VPT models and the MineRL BASALT 2022 competition.
  • v0.4: [Code][Docs] Version used in the 2021 competitions (Diamond and BASALT). Supports the original MineRL-v0 dataset. Install with pip install minerl==0.4
  • v0.3: [Code][Docs] Version used prior to 2021, including the first two MineRL competitions (2019 and 2020). Supports the original MineRL-v0 dataset. Install with pip install minerl==0.3

Installation

Install requirements (Java JDK 8 is required) and then install MineRL with

pip install git+https://github.com/minerllabs/minerl

Basic Usage

Can be used much like any Gym environment:

import gym
import minerl

# Uncomment to see more logs of the MineRL launch
# import coloredlogs
# coloredlogs.install(logging.DEBUG)

env = gym.make("MineRLBasaltBuildVillageHouse-v0")
obs = env.reset()

done = False
while not done:
    ac = env.action_space.noop()
    # Spin around to see what is around us
    ac["camera"] = [0, 3]
    obs, reward, done, info = env.step(ac)
    env.render()
env.close()

Check the documentation for further examples and notes.

Major changes in v1.0

  • New Minecraft version (11.2 -> 16.5)
  • Larger resolution by default (64x64 -> 640x360)
  • Near-human action-space: no more craft and smelt actions. Only GUI and mouse control (camera action moves mouse around).
  • Observation space is only pixels, no more inventory observation by default.

minerl's People

Contributors

madcowd avatar brandonhoughton avatar shwang avatar miffyli avatar pzhokhov avatar joosthuizinga avatar keisuke-nakata avatar adrienle avatar decodyng avatar raul-openai avatar jietang avatar trigaten avatar lbertge avatar magic-sword avatar tomsilver avatar skbly7 avatar djsamseng avatar olegklimov avatar thisisisaac avatar eambutu avatar lostmsu avatar tfzee avatar rohinmshah avatar hommus avatar oscmansan avatar nicomon24 avatar mrahtz avatar karolisram avatar jdubkim avatar glennpow avatar

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.