[Python] Minecraft Pi Edition >> Sending message!

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
Note: Before the tutorial you will need to have Raspian Wheezy installed. Aswell as Minecraft.

So. Start off by running Minecraft. Load a world. Pause it.

Go to your Linux terminal. do this.

cd mcpi/api/python/mcpi

Now you need to connect.

python
Good. now you have python activated in the terminal. Now do this.

import minecraft as minecraft
Cool. Now do this.

mc = minecraft.Minecraft.create()

Now here comes your message!

mc.postToChat("Here. :p")

Hope this helps you getting used to using the API.
 

Users who are viewing this thread

Top