Hello world

Challenge

In order to be considered professional python programmers on the Raspberry Pi, we have to do the time-honored hello world in Minecraft.

Start up an instance of Pi Minecraft and a terminal window. Write a program to send a hello world message to the minecraft console.

Extensions

Inspired by https://arghbox.files.wordpress.com/

Example Solution


import mcpi.minecraft as minecraft

world = minecraft.Minecraft.create()

message = "hello, minecraft world"
world.postToChat(message)

Read message from console


message = raw_input("enter a message") # or input in Python 3.x