Cover image
Try Now
2021-12-08

Interface to connect Scratch and Minecraft. You can move the player, place blocks, send chat messages, etc. in Minecraft from visual programming environment, Scratch.

3 years

Works with Finder

14

Github Watches

26

Github Forks

52

Github Stars

Scratch2MCPI(Scratch2MinecraftPi)

日本語の情報

With Scratch2MCPI, you can control Minecraft Pi Edition from Scratch on Raspberry Pi.

On the latest 2.0, it supports Minecraft Graphics Turtle.

Demo Movie on YouTube

Tested Environments

  • NOOBS 2.9.0 (2018-10-11)
  • Raspberry Pi OS Bullseye (2021-12-8)

Installation

Install Minecraft Pi Edition if you don't have. You can either install from http://pi.minecraft.net/?p=68 or use the following installation script.(If you install Raspbian OS from the latest NOOBS, Minecraft Pi may be pre-installed. If the Minecraft Pi icon exists on the Desktop, skip this step.)

# curl http://scratch2mcpi.github.io/mcpi.sh | sh

Install Scratch2MCPI

# curl http://scratch2mcpi.github.io/install.sh | sh

Getting Started

  1. Start Minecraft, click "Start Game", then "Create New". Wait until the new world is generated.
  2. After the world is generated, double click Scratch2MCPI icon to start Scratch and Scratch2MCPI.
  3. On Scratch, click Green flag, and run the script. "hello minecraft" should be displayed on Minecraft chat window.

How to use

You can send the following commands by "broadcast" block of Scratch.

  • hello_minecraft: Send "hello minecraft" message to chat section.
  • setPos: Move the player to the position specified by Scratch variables: "mcpiX", "mcpiY", "mcpiZ".
  • setBlock: Place the block at the position specified by Scratch variables: "mcpiX", "mcpiY", "mcpiZ". The block type and block data can be specified by Scratch variables: "blockTypeId" and "blockData".
  • getPos: Get the current position of the player. The position values can be gotten by Scratch sensor values: "PlayerX", "PlayerY", "PlayerZ".
  • getHeight: Get the y position of the highest block at the position specified by Scratch variables: "mcpiX" and "mcpiZ". The y postion can be gotten by Scratch sensor value "posY".
  • pollBlockHits: Get the block event information of the last block hit by the player. The event info values can be gotten by Scratch sensor values: "blockEventX", "blockEventY", "blockEventZ", "blockEventFace", "blockEventEntityId".
  • reset: [WARNING] Reset the world. This will delete clean up the world, so please be aware to use it.

Reference

Requirements

相关推荐

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • 1Panel-dev
  • 💬 MaxKB is a ready-to-use AI chatbot that integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • Dhravya
  • Collection of apple-native tools for the model context protocol.

  • GLips
  • MCP server to provide Figma layout information to AI coding agents like Cursor

  • Mintplex-Labs
  • The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

  • adafruit
  • Python code to use the MCP3008 analog to digital converter with a Raspberry Pi or BeagleBone black.

  • idosal
  • Put an end to hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project

    Reviews

    2 (1)
    Avatar
    user_gxvoFogr
    2025-04-17

    Scratch2mcpi is an amazing tool for connecting Scratch to Minecraft: Pi Edition. Its ease of use and clear instructions make it perfect for educational purposes and creative projects alike. I've found it incredibly useful for teaching coding concepts in a fun and interactive way. Highly recommend!