Forge + Raspberry Jam Mod + Python3

インストールと設定

2016-05-24 現在 マインクラフトの最新バージョン 1.9.4

Raspberry Jam Mod

Raspberry Jam Modの最新バージョン 1.9.4対応

Releases · arpruss/raspberryjammod · GitHub

This is the same as 0.66 basically, but repacked to also work with Forge for 1.9.4.

Forge

Forgeの最新バージョン 1.9.4 対応 Minecraft Forge

プロファイルを作成する データディレクトリをバージョンごとに分ける

"Use version" で、 release 1.9-forge・・・ を選択する。 f:id:pongsuke:20160524111601j:plain

mod フォルダに、RaspberryJamMod.jarを入れる。

python3-scripts.zip(Python2 なら、python2-scripts.zip なのかな?) を展開し、データフォルダ直下mcpipyフォルダに入れる。

動作テスト

ゲームを起動し、動作テストする。 ゲームモードは、クリエイティブが、無難。

/gamemode 1

動作テスト1

マインクラフトのチャットコマンドからスクリプトを実行する。

/py nt7s_sphere

f:id:pongsuke:20160524112739j:plain

結果 f:id:pongsuke:20160524112641j:plain

動作テスト2

Windowsコマンドラインから、Pythonスクリプトを実行して、マインクラフトを操作する。

スクリプトは、mcpipyフォルダに入れる。

hw.py

import mcpi.minecraft as minecraft

mc = minecraft.Minecraft.create()
mc.postToChat("Hello World!")
PS C:\Users\***\AppData\Roaming\.minecraft\forge.1.9\mcpipy> python.exe .\hw.py

結果 f:id:pongsuke:20160524113339j:plain