Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function poloz()
- r = 2
- for h = 1, 4 do
- for c = 1, 4 do
- for i = 1, 20 do
- turtle.forward()
- kocka()
- end
- turtle.turnRight()
- end
- turtle.up()
- end
- end
- function kocka()
- if turtle.detectDown()==false then
- turtle.select(r)
- if turtle.getItemCount( turtle.getSelectedSlot() ) >1 then
- turtle.placeDown()
- else
- turtle.select(r)
- r = r + 1
- turtle.placeDown()
- end
- end
- end
- function strecha()
- for a = 1, 20 do
- for i = 1, 20 do
- kocka()
- turtle.forward()
- end
- if ((a % 2) == 1) then
- turtle.turnRight()
- kocka()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- kocka()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- end
- function start()
- turtle.refuel(64)
- turtle.forward()
- poloz()
- strecha()
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement