你也可以自己试试吧!只需从桌面或应用程序菜单中打开Minecraft Pi并新建,然后打开一个终端窗口并输入以下命令:
git clone https://github.com/martinohanlon/minecraft-starwars
cd minecraft-starwars
python starwars.py
源码链接https://github.com/martinohanlon/minecraft-starwars
结构
starwars.py - 主程序
deathstar.py - 创建死星的类
planet.py - 创建行星的类
projectile.py - 创建弹丸的类
starwarscrafy.py - 工艺类(tie fighter,x wing,millenium falcon)
trench.py - 创建一个沟槽(带排气口!)的类
MCPI
mojang python库
minecraftstuff.py - 包含类以处理形状并在minecraft中绘制对象的模块