Contrôleur pour Minetest

Contrôleur pour Minetest.

Minetest : 4.1.4

1/ Installation de RaspberryJam Mod.

http://jeulibre.saventurier.science/minetest-installation-de-raspberryjammod-python/

2/ Téléchargement de appJar.

util01@station02:~$ cd JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy/
util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ wget https://pypi.python.org/packages/60/94/ab6432c05225c49518b7d38c0aa2aca5ccf86e8702ebe043cbe74b65e329/appJar-0.070.tar.gz

3/ Décompression de l’archive.

util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ tar xvfz appJar-0.070.tar.gz 

4/ Installation de appJar.

util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ mv appJar-0.070/appJar/ .

5/ Test.

Ouvrir :

gui.py

Ajouter :

from appJar import gui
from mcpi.minecraft import Minecraft

# function to send messages to minecraft server
def sendMsg(btn):
    msg = app.getEntry("Chat")
    mc.postToChat(msg)

mc = Minecraft.create() # minecraft connection

# main GUI block
app = gui("Minecraft") # GUI

app.addLabelEntry("Chat", 0, )
app.addButton("Send", sendMsg, 0, 1)

app.go()

6/ Lancement de l’application appJar de base.

util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ python ./gui.py 

7/ Téléchargement de l’exemple appJar pour Minetest.

util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ wget https://raw.githubusercontent.com/Nekrofage/magpi-issue57/master/MinecraftMakerGuide/GUI/code_5.py

8/ Exécution de l’application.

util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ python ./code_5.py 
util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ mv code_5.py appJarMinetest.py MinetestController.py
util01@station02:~/JEUX/MINETEST.v414/minetest/mods/raspberryjammod/mcpipy$ python ./MinetestController.py 

9/ Capture d’écran.

10/ Lien.

http://appjar.info/examples/minecraft/
https://www.raspberrypi.org/magpi-issues/MagPi58.pdf

Comments are closed, but trackbacks and pingbacks are open.