# We have to import the minecraft api module to do anything in the minecraft world
from mcpi.minecraft import *


# Ensures that code in block is only run if script directly invoked
if __name__ == "__main__":

	"""
	First thing you do is create a connection to minecraft
	This is like dialling a phone.
	It sets up a communication line between your script and the minecraft world
	"""
	
	# Create a connection to Minecraft
	# Any communication with the world must use this object
	mc = Minecraft.create()
        
        # Get the block that the player is currently in
        playerPosition = mc.player.getTilePos()
	
        # create the output message as a string
        message = "You are at "+ str((playerPosition.x, playerPosition.y, playerPosition.z))
        
        # print to the python interpreter standard output (terminal or IDLE probably)
        print(message)
        
        # send message to the minecraft chat
        mc.postToChat(message) 


@@ -203,22 +203,28 @@
 in__%22:%0A%0A
-%09%22%22%22%0A%09
+    %22%22%22%0A    
 First th
@@ -270,17 +270,20 @@
 necraft%0A
-%09
+    
 This is 
@@ -305,17 +305,20 @@
  phone.%0A
-%09
+    
 It sets 
@@ -389,16 +389,21 @@
 rld%0A
-%09%22%22%22%0A%09%0A%09
+    %22%22%22%0A%0A    
 # Cr
@@ -433,17 +433,20 @@
 necraft%0A
-%09
+    
 # Any co
@@ -493,17 +493,20 @@
  object%0A
-%09
+    
 mc = Min
@@ -526,28 +526,24 @@
 ()%0A        %0A
-    
     # Get th
@@ -582,20 +582,16 @@
 ntly in%0A
-    
     play
@@ -630,14 +630,13 @@
 s()%0A
-%09%0A
     
+%0A
     
@@ -679,20 +679,16 @@
 ing%0A    
-  
-  
 message 
@@ -769,28 +769,24 @@
 ))%0A        %0A
-    
     # print 
@@ -859,20 +859,16 @@
 ly)%0A    
-   
- 
 print(me
@@ -883,20 +883,16 @@
        %0A
-    
     # se
@@ -924,20 +924,16 @@
 ft chat%0A
-    
     mc.p

Convert tabs to spaces