Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=1
- turtle.select(1)
- function place()
- if turtle.getItemCount(i)>0 then
- turtle.placeDown()
- else
- i=i+1
- turtle.select(i)
- turtle.placeDown()
- end
- end
- function forward()
- while turtle.forward()==false do
- sleep(0.5)
- end
- end
- function up()
- while turtle.up()==false do
- sleep(0.5)
- end
- end
- function circle()
- turtle.turnLeft()
- for t=1,4,1 do
- for k=1,5,1 do
- place()
- forward()
- end
- turtle.turnRight()
- forward()
- turtle.turnLeft()
- place()
- forward()
- place()
- forward()
- turtle.turnRight()
- forward()
- place()
- forward()
- turtle.turnLeft()
- forward()
- place()
- forward()
- turtle.turnRight()
- forward()
- place()
- forward()
- place()
- turtle.turnLeft()
- forward()
- turtle.turnRight()
- forward()
- end
- turtle.turnRight()
- end
- function Cforward()
- up()
- circle()
- forward()
- end
- function CLeft()
- up()
- circle()
- turtle.turnLeft()
- forward()
- turtle.turnRight()
- forward()
- end
- function CRight()
- up()
- circle()
- turtle.turnRight()
- forward()
- turtle.turnLeft()
- forward()
- end
- function POS()
- for f=1,10,1 do
- forward()
- end
- turtle.turnRight()
- for f=1,6,1 do
- forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
- -------------------------------------------------------------------------------
- function Halfcircle()
- P()
- Cforward()
- Cforward()
- Cforward()
- Cforward()
- CLeft()
- Cforward()
- Cforward()
- CLeft()
- CLeft()
- Cforward()
- POS()
- CRight()
- CRight()
- CRight()
- Cforward()
- CRight()
- CRight()
- Cforward()
- Cforward()
- CRight()
- Cforward()
- Cforward()
- Cforward()
- O()
- end
- function P()
- turtle.turnLeft()
- turtle.turnLeft()
- for h=1,9,1 do
- forward()
- end
- turtle.turnLeft()
- forward()
- forward()
- turtle.turnLeft()
- end
- function O()
- for h=1,9,1 do
- forward()
- end
- turtle.turnLeft()
- forward()
- forward()
- turtle.turnRight()
- end
- Halfcircle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement