A powerful Minecraft programming library for education.
Project description
<a name="chinese"></a>🇨🇳 中文说明
关于项目
你好!我是 Eric Go,一名专注于少儿编程教育的老师。
在我的教学实践中,我发现由于种种环境限制,很多学生无法直接使用正式版的 Minecraft 进行复杂的 API 编程。为了让我的编程课堂更加有趣且高效,我基于 mcpi 和 minecraftstuff 这两个优秀的库,开发并封装了 mcri。
mcri 旨在降低 Minecraft Python 编程的门槛。它修复了原版库中的一些小 Bug,补全了常用的 3D 绘图方法,并提供了一套详尽的中英文对照 ID 常量表,非常适合作为编程启蒙的教学工具。
核心功能
- 基础交互:快速获取位置、放置方块,支持中英文常量名(如
mcri.金块)。 - 高级绘图:内置
setLine,setCircle,setSphere,setFace等方法,轻松实现 3D 建模。 - 3D 海龟艺术:全功能的
Turtle类,支持在 3D 空间中进行艺术创作。 - 物体动画:通过
Shape类实现物体的整体移动与平滑动画。 - 编码优化:针对 Windows 环境下的中文乱码问题进行了优化处理。
安装方法
pip install mcri
联系我
- 作者: Eric Go
- 邮箱: funkyeric.gou@gmail.com
<a name="english"></a>🇺🇸 English Description
About This Project
Hi there! I am Eric Go, a programming teacher dedicated to K-12 education.
In my classroom, I encountered challenges where students couldn't easily access the full potential of official Minecraft APIs due to technical constraints. To bridge this gap and make Python learning more engaging, I created mcri, a wrapper library built upon the foundations of mcpi and minecraftstuff.
mcri is designed to simplify Minecraft Python programming. It fixes common bugs, adds essential 3D drawing methods, and provides a comprehensive bilingual (English & Chinese) constant library, making it the perfect tool for educators and young learners.
Key Features
- Base Interaction: Fast teleportation and block placement with bilingual constants (e.g.,
mcri.GOLD_BLOCK). - Advanced Drawing: Built-in methods for
setLine,setCircle,setSphere, andsetFacefor easy 3D modeling. - 3D Turtle Art: A fully functional
Turtleclass for creating 3D artistic structures. - Object Animation: Smoothly move complex shapes across the world using the
Shapeclass. - Encoding Optimized: Specifically optimized to handle Chinese character display issues in Windows environments.
Installation
pip install mcri
Contact Me
- Author: Eric Go
- Email: funkyeric.gou@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcri-0.1.0.tar.gz.
File metadata
- Download URL: mcri-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c275a2002730d938eeb99138b6c2d08fc8c7dbea73283f332f34cdaafdefccd7
|
|
| MD5 |
b9c0d2225e86e7721075ba597622fbbd
|
|
| BLAKE2b-256 |
39035134cdcac92ab3309d9d5afdc1cdaf1cd4393893ad15f96002591c0d111d
|
File details
Details for the file mcri-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcri-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f992fcc9f028555c08a1c5522ce12cad9277c1667830ab16e8e4f364f7dd7c9
|
|
| MD5 |
5982379027d466da243f8095b6803892
|
|
| BLAKE2b-256 |
4433cd52b68e3eb273eed2e02f104ed9da7e9c2aaba9f7a80b1129e2da293783
|