Skip to content

ctakasaka/Minecraft-Integrated-AI-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

283 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UBC Data Science Addon for Minecraft: Education Edition

User-guided data collection, and Data Science Exploration in Minecraft: Education Edition


Image Showcasing the in-game Minecraft: Education Edition CodeBuilder with our REPL Environment app running inside

Integrate Data Science Lessons Directly Into MEE

Quick Start

❗️Important: Python 2 is not supported

Install Python 3.9

Install Flask, and several data science libraries with "pip"

pip install flask websockets jsonlines 
pip install numpy matplotlib pandas sklearn

Running the Project

  1. Clone this repo (main branch)!

  2. Locate and travel to the 'http_simple' directory

  3. Run 'main.py' in the 'python' directory!

Mac / Unix-like (and PowerShell)

cd path_to_repo/http_simple/
python python/main.py

Windows (Commandline)

cd path_to_repo\http_simple\
python python\main.py

This application is made to introduce students to datascience concepts. While these concepts are more suitable for upper middle-school ages and higschool ages, sufficiently computer literate students will be able to work with the application and begin to understand many fundamental ideas.

Learn how to collect data, and use it to enhance your gameplay!

Features:

  • 📁 Minecraft event data collection: Collects data as users play, tracking events such as breaking a wood block, or throwing a piece of cobblestone.

  • 📑 Data Importing: A simple function allows users to load all of their event data into a built-in Python environment.

  • 🐍 Python REPL Environment: A built-in REPL environment allows users to immediately work with their data after collectiong it, right inside of Minecraft!

  • 📈 Python Data Science Libraries: Preloaded Python libraries allow users easily visualize and sort their data, as well as train sophisticated models.

Lesson Plans

Lessons are written as default Markdown ( .md ) files. What this means is that you can write an entire lesson in Markdown (or Word / some other word processor, then convert), as if you were going to give users a normal handout for an assignment.

Example Lesson Plan

# Determine Optimal Mining Level with "Hierarchical Clustering"

## What You'll Need:

- A mine
- A pick
- 25 minutes

## Data Collection

To create this model, you need to mine some ores! Included with this lesson is some mining data collected by fellow Steves from around the world!

Begin by collecting some data of your own by going into a mine and collecting some coal, iron, gold, and redstone! If you can, mine yourself some diamonds too!

## Creating the Model

Lorem ipsum.. just kidding. Something about how hierarchical clustering is like a tree. 
It helps visualize how different or similar data is and how we should separate it into groups. 
This model will tell us exactly how it tells the ores apart (other than by name) so we can then use that logic in-game!

Start by reading in your data:

`
# read in your newly collected data
my_data = update_event_data()

# see how many different types of blocks you mined, and which ones you want to keep
print(my_data...)
...
`

A complete example lesson is included in the repo here!

Resources

About

This contains a modified behaviour pack where the agent actively follows the player.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors