Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- tofu8
- -- surround four directions with walls
- -- ####### Define a function ########
- function placeSomeBlocks(n)
- for i=1,n do
- turtle.forward() -- move to next position
- turtle.placeDown() -- put a block in the ground
- end
- end
- -- ###### Main ########
- turtle.select(1) -- the usual phrase
- turtle.up() -- move up
- -- stack six squares
- for ronoji=1,6 do
- -- 1st stage is made with slot 1, 2nd stage is slot 2, ...
- turtle.select(ronoji)
- -- make 4 sides of a square
- for hen=1,4 do
- placeSomeBlocks(6) -- put 6 blocks in the ground
- turtle.turnRight() -- turn 90 degrees to the right
- end
- turtle.up() -- move up
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement