Beispiel #1
0
def create_arch(playerInfo, turtleX, turtleY, turtleZ, archX):
    currentPlayerPosition = playerInfo[0].entity.getPos(playerInfo[1])

    skippy = MinecraftTurtle(playerInfo[0], currentPlayerPosition)
    skippy.penblock(block.SNOW_BLOCK.id, 1)
    skippy.speed(10)

    skippy.setposition(turtleX + archX - 1, turtleY, turtleZ - 1)
    skippy.up(90)
    skippy.forward(8)
    skippy.down(90)
    skippy.right(90)
    skippy.forward(11)
    skippy.down(90)
    skippy.forward(8)
    skippy.up(180)
    skippy.forward(8)
Beispiel #2
0
from time import sleep
from random import randint
from minecraftstuff import MinecraftTurtle
print("hi ok")
mc = Minecraft.create()
diamond = MinecraftTurtle(mc)
diamond.setx(201)
diamond.sety(71)
diamond.setz(102)

diamond.speed(10)
diamond.penblock(152)
diamond.forward(5)
#diamond.left(90)

diamond.up(35)
diamond.forward(10)
diamond.right(90)
diamond.forward(7)
diamond.right(90)
diamond.forward(15)
diamond.down(35)
diamond.forward(15)

diamond.left(180)
diamond.sety(89)
diamond.penblock(27)
diamond.forward(217)
diamond.right(90)
diamond.forward(1468)
Beispiel #3
0
mc = minecraft.Minecraft.create(address="127.0.0.1", name="steve")

# get players position
pos = mc.player.getPos()

# create minecraft turtle
turtle = MinecraftTurtle(mc, pos)

turtle.speed(0)
turtle.penblock(block.WOOL.id, 14)
S = 50
for j in range(0, 20):
    turtle.up(j * 10)
    turtle.forward(S)

    turtle.left(90)
    turtle.down(j * 10)
    turtle.forward(S)

    turtle.left(90)
    turtle.down(j * 10)
    turtle.forward(S)

    turtle.left(90)
    turtle.up(j * 10)
    turtle.forward(S)
    turtle.left(90)

    turtle.left(10)
    S = 0.9 * S
Beispiel #4
0
diamond.setx(201)
diamond.sety(71)
diamond.setz(102)

diamond.speed(10)
diamond.penblock(152)
diamond.forward(5)
#diamond.left(90)

diamond.up(35)# вверх
diamond.forward(10)
diamond.right(90)
diamond.forward(7)
diamond.right(90)
diamond.forward(15)
diamond.down(35)# ровно
diamond.down(35)#вниз
diamond.forward(34)
diamond.right(90)
diamond.up(35)# ровно
diamond.up(35)# вверх

diamond.forward(6)
diamond.right(90)
diamond.forward(15)
diamond.down(35)# ровно
diamond.down(35)#вниз
diamond.forward(18)
diamond.up(35)# ровно

from mcpi.minecraft import Minecraft
from time import sleep
from random import randint
from minecraftstuff  import MinecraftTurtle
print("hi ok")
mc = Minecraft.create()
diamond =  MinecraftTurtle(mc)
diamond.setx(181)
diamond.sety(65)
diamond.setz(68)
diamond.down(34)
diamond.speed(10)

dlina = 150

#ступеньки
diamond.penblock(89)
diamond.forward(dlina)

#факела
diamond.setposition(181, 66, 68)
diamond.penblock(50)
diamond.forward(dlina)

#воздух
diamond.setposition(181, 67, 68)
diamond.penblock(0)
diamond.forward(dlina)
# backward
turtle.speed(6)
turtle.backward(10)

# change pen
turtle.penblock("red_wool")

# pen up/down
turtle.penup()
turtle.forward(20)
turtle.pendown()

# change pen
turtle.penblock("green_wool")

# up, down, left
turtle.up(30)
turtle.forward(5)
turtle.right(72)
turtle.forward(5)
turtle.down(30)
turtle.left(72)
turtle.forward(5)

# change pen
turtle.penblock("light_blue_wool")

# walking
turtle.walk()
turtle.forward(10)
Beispiel #7
0
# backward
steve.speed(6)
steve.backward(10)

# change pen
steve.penblock(block.WOOL.id, 1)

# pen up/down
steve.penup()
steve.forward(20)
steve.pendown()

# change pen
steve.penblock(block.WOOL.id, 2)

# up, down, left
steve.up(30)
steve.forward(5)
steve.right(72)
steve.forward(5)
steve.down(30)
steve.left(72)
steve.forward(5)

# change pen
steve.penblock(block.WOOL.id, 3)

# walking
steve.walk()
steve.forward(10)