In [ ]:
#!/usr/bin/env python
#import the minecraft.py module from the minecraft directory
import mcpi.minecraft as minecraft
#import minecraft block module
import mcpi.block as block
#import time, so delays can be used
def main():
mc = minecraft.Minecraft.create()
# write the rest of your code here...
mc.postToChat("Hello MCPIPY World!")
if __name__ == "__main__":
main()