Last active
November 21, 2016 18:24
-
-
Save PieCoder314/60cbc91bf0660dc7816b to your computer and use it in GitHub Desktop.
A script for Minecraft Pi Edition that adds a chat box.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------# | |
#---------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