一馬力のメモ帳

MVSからLinuxまで。基盤屋さんは眠らない

(MCPIサンプルスクリプト)helloworld.py

毎度。一馬力です。

f:id:htbariki:20161105082601p:plain ※画像はMinecraft PEです。

今日はMinecraftPythonから操作する話です。
利用したMOD,ライブラリは以下の通り

  • [MOD] Raspberry Jam Mod
  • [ライブラリ] MCPI - Minecraft: Pi edition API Python Library

この記事はMCPIのPythonサンプルスクリプト “helloworld.py" の動作紹介ページです。

目次


 helloworld.py

  • スクリプト名 : helloworld.py
  • 処理概要   : 「ハローワールド」を出力

コマンド実行画面


MCPI - helloworld

参考 MCPIでMinecraftPythonから操作する方法

MCPIでMinecraftPythonから操作する方法については
下の過去記事を参考にして下さい

ichibariki.hatenablog.com

参考 MCPI - Minecraft: Pi edition API Python Library サンプルスクリプト一覧

サンプルスクリプト一覧については
下の過去記事を参考にして下さい

スクリプト名,概要を一覧にまとめています

ichibariki.hatenablog.com

試した環境

ホストOS

2500/15.4 MJLT2J/A MacBook Pro Retinaディスプレイ

MacBook Pro (Retina, 13-inch, Late 2013)
macOS Sierra
    システムのバージョン:     macOS 10.12.4 (16E195)
    カーネルのバージョン:     Darwin 16.5.0
Python 2.7.10

Minecraft

Minecraft 1.11.2
  Forge-1.11.2-13.20.0.2259
  Raspberry Jam Mod 0.88