Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (18 sloc) 704 Bytes
# These two lines are because of the folder the demos are located in, and aren't normally necessary
import os.path, sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
# Minecraft Turtle Example - Crazy Pattern
from minecraftstuff import MinecraftTurtle
from mcpi import minecraft
from mcpi import block
# Connect to minecraft server as player 'steve'
mc = minecraft.Minecraft.create(address="", name="steve")
# get players position
pos = mc.player.getPos()
# create minecraft turtle
turtle = MinecraftTurtle(mc, pos)
turtle.penblock(, 11)
for step in range(0, 50):