Teleporter for Minecraft Pi! Raspbian Wheezy Tutorial!

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 πŸ™‚

Advertisements

One Reply to “Teleporter for Minecraft Pi! Raspbian Wheezy Tutorial!”

Go on, you know you want to! Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s