Use a teleporter in Minecraft Pi on Raspbian Wheezy by opening LXTerminal and typing cd mcpi/api/python/mcpi and then typing in nano teleporter.py.
The code is below.
from minecraft import Minecraft
from time import sleep
mc = Minecraft.create()
x, y, z = mc.player.getPos()
sleep(5)
mc.postToChat(“Teleporting in 3s”)
sleep(1)
mc.postToChat(“2s”)
sleep(1)
mc.postToChat(“1s”)
sleep(1)
mc.postToChat(“Wooooooooooo!”)
mc.setPos(x, y+1000, z)
Then press CTRL + O, and then save as teleporter.py. Then once on a world on Minecraft, go to LXTerminal and type python teleporter.py. Enjoy!
Epic Chas Gamer 🙂
I will definitely do a Feature on that
Epic Chas Gamer 🙂
LikeLike