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)
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
# 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)
from mcpi.minecraft import Minecraft from time import sleep from random import randint from minecraftstuff import MinecraftTurtle mc = Minecraft.create() diamond = MinecraftTurtle(mc) diamond.setx(0) diamond.sety(56) diamond.setz(-47) diamond.left(90) diamond.penblock(50) diamond.forward(51)
# 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)