Skip to content

Instantly share code, notes, and snippets.

@PieCoder314
Last active November 21, 2016 18:24
Show Gist options
  • Save PieCoder314/60cbc91bf0660dc7816b to your computer and use it in GitHub Desktop.
Save PieCoder314/60cbc91bf0660dc7816b to your computer and use it in GitHub Desktop.
A script for Minecraft Pi Edition that adds a chat box.
#----------------------------------#
#---------Minecraft Pi Chat--------#
#----------By PieCoder314----------#
#--Bringing chat to minecraft pi!--#
#----------------------------------#
from mcpi import minecraft
mc = minecraft.Minecraft.create()
mc.postToChat("Go to python shell to chat.")
print "What is your username?"
name = raw_input()
mc.postToChat(name + " joined the game")
while 2 > 1:
chat = raw_input("Message: ")
mc.postToChat("<" + name + "> " + chat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment